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.

Error Login LDAP
 
Notifications
Clear all

Error Login LDAP

4 Posts
2 Users
0 Reactions
3,289 Views
(@benzaoual-hamza)
Posts: 5
Active Member
Topic starter
 
[#4778]

Hello,
I have an issue with LDAP configuration. I can't login with LDAP User. Please check the log and Global Parameters :

connection with LDAP user: Yes
LDAP base dn : DC=MYDOMAIN,DC=com
LDAP host : My Domain Server IP Address
LDAP port : 389
LDAP version : 3
LDAP user : CN=FirstName LastName ,CN=Users,DC=My Domain,DC=com
LDAP password : Admin user password
LDAP user filter : %USERNAME%
default profile for Ldap users : Project Members

Log file :
2017-11-15 12:38:20.302 ** ERROR ** [V6.4.4] ERROR **
2017-11-15 12:38:20.302
** ERROR ** [V6.4.4] on file '/var/www/html/project/model/UserMain.php' at line (1113)
2017-11-15 12:38:20.302
** ERROR ***** [V6.4.4] cause = ldap_search(): Search: Bad search filter

thanks
Hamza


 
Posted : 15 Nov 2017 16H48
babynus
(@babynus)
Posts: 14957
Main Contributor Admin
 

Error is clear : ldap_search(): Search: Bad search filter

Contact your Ldap administrator to know how to filter query


 
Posted : 16 Nov 2017 1H46
(@benzaoual-hamza)
Posts: 5
Active Member
Topic starter
 

thanks you for your replay,

that what i use in glpi filter and this is working :

(&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

log on Projeqtor with same filter:
2017-11-16 08:21:32.901 ===== TRACE ===== authenticate - Filter error : ldap_search returned no result for filter (&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2))))


 
Posted : 16 Nov 2017 11H22
babynus
(@babynus)
Posts: 14957
Main Contributor Admin
 

You filter is not correct as it does not look for corresponding user, using %USERNAME%


 
Posted : 18 Nov 2017 4H30
Share:

Scroll to Top