Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] Specific g...
 
Notifications
Clear all

[SOLVED] Specific group for LDAP connections

7 Posts
3 Users
0 Reactions
3,964 Views
(@infra_kev)
Posts: 4
Active Member
Topic starter
 
[#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 


 
Posted : 12 Jan 2023 12H49
(@cecile)
Posts: 161
Active Member 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.


 
Posted : 12 Jan 2023 13H41
(@infra_kev)
Posts: 4
Active Member
Topic starter
 

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


 
Posted : 12 Jan 2023 14H12
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

I think syntax should be something like

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

Bur best is to request an AD expert for correct syntax


 
Posted : 12 Jan 2023 20H13
(@infra_kev)
Posts: 4
Active Member
Topic starter
 

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'


 
Posted : 13 Jan 2023 11H20
babynus
(@babynus)
Posts: 14966
Main Contributor 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))

 
Posted : 13 Jan 2023 18H46
(@infra_kev)
Posts: 4
Active Member
Topic starter
 

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


 
Posted : 23 Jan 2023 12H11
Share:

Scroll to Top