I am doing LDAP authentication for the user. Steps are - 1. when users enter his username on the login screen. 2. The request goes to the LDAP server and will try to validate the user against its corresponding group
filter :="(|(employeeNumber=deeps)(memberOf=CN=DEV_Admin,OU=LDAP,DC=TEMP,DC=com))"
This filter works fine and giving me the employee details of the relevant group.
Now the requirement changes -
When the user enters his employeeNumber =deeps
we have to validate him against different groups for example
- (memberOf=CN=DEV_Admin,OU=LDAP,DC=TEMP,DC=com)
- (memberOf=CN=DEV_View,OU=LDAP,DC=TEMP,DC=com)
- (memberOf=CN=DEV_Partial,OU=LDAP,DC=TEMP,DC=com)
Can anyone help me with writing a proper filter which checks against all those groups and gives me the user in one filter rather than writing three LDAP requests?