Forum

[SOLVED] Specific g...
 
Notifications
Retirer tout

[SOLVED] Specific group for LDAP connections

7 Posts
3 Utilisateurs
0 Reactions
3,915 Vu
(@infra_kev)
Posts: 4
Active Member
Début du sujet
 
[#8702]

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 


 
Posté : 12 Jan PM 12:011
(@cecile)
Posts: 160
Membre Admin
 

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.


 
Posté : 12 Jan PM 13:011
(@infra_kev)
Posts: 4
Active Member
Début du sujet
 

Yes i know, but i have a bug with the save and my file parameters.php doesn't update


 
Posté : 12 Jan PM 14:011
(@babynus)
Posts: 14952
Membre Admin
 

I think syntax should be something like

(&(sAMAccountName=%USERNAME%)(memberof=PROJ_USERS))

Bur best is to request an AD expert for correct syntax


 
Posté : 12 Jan PM 20:011
(@infra_kev)
Posts: 4
Active Member
Début du sujet
 

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'


 
Posté : 13 Jan AM 11:011
(@babynus)
Posts: 14952
Membre Admin
 

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))

 
Posté : 13 Jan PM 18:011
(@infra_kev)
Posts: 4
Active Member
Début du sujet
 

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 ????


 
Posté : 23 Jan PM 12:011
Share:
Retour en haut