Hey
I have a problem with LDAP, I want to do a filter with a specific group : "PROJ_USERS".
But when I try to modify paramLdap_user_filter in parameters.php i have no idea what to write.
I try sAMAcountName=%USERNAME%,MemberOf="PROJ_USERS" or change to (&(objectclass=person)(memberof=PROJ_USERS) but it doesn't work.
help please
Hello,
You are not supposed to modify the parameters.php file.
With an administrator profile, you should use Global parameters, Authentication tab, and Ldap management parameters to change or use any filter of your choice.
Yes i know, but i have a bug with the save and my file parameters.php doesn't update
I think syntax should be something like
(&(sAMAccountName=%USERNAME%)(memberof=PROJ_USERS))
Bur best is to request an AD expert for correct syntax
it doesn't work
2023-01-13 09:18:14.357 ** ERROR ** [V10.2.1] ERROR **
2023-01-13 09:18:14.359 ** ERROR ** [V10.2.1] on file 'C:...projeqtormodelUserMain.php' at line (1547)
2023-01-13 09:18:14.360 ** ERROR ***** [V10.2.1] cause = ldap_search(): Search: Bad search filter
EDIT : ok, I did a fault hehe
2023-01-13 09:22:56.882 ===== TRACE ===== authenticate - Filter error : ldap_search returned no result for filter (& (sAMAccountName=XXX)(MemberOf=PROJ_USERS)))
2023-01-13 09:22:56.884 ===== TRACE ===== Login error for user 'XXX'
Here is some syntax found on the web.
Try something like that.
(&(objectCategory=Person)(sAMAccountName=%USERNAME%)(memberOf=cn=CaptainPlanet,ou=users,dc=company,dc=com))
sorry for the time to reply
After search and your answer it work with :
(& (sAMAccountName=%USERNAME%)(memberof=CN=NameOfgroups,OU=Groups,DC=example,DC=entreprise))
Ty for ur help ????