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.

Problems with LDAP
 
Notifications
Clear all

Problems with LDAP

3 Posts
2 Users
0 Reactions
2,365 Views
(@acalderon)
Posts: 6
Active Member
Topic starter
 
[#4231]

Hi. good day.
I have configured LDAP and everything is fine.
The problem is when I try to login with LDAP users.
It generates an error like the following one:
2017-03-22 13: 46: 45.697 ** ERROR ** cause = ldap_search (): Search: Bad search filter

My question is what data should I put on the line:
$ ParamLdap_user_filter = '';

What is in the file:
../config/parameters.php

regards,


 
Posted : 22 Mar 2017 21H35
(@babynus)
Posts: 14952
Member Admin
 

All depends on your LDAP configuration.

Here are some exemples

$paramLdap_user_filter = 'uid=%USERNAME%';

Default value. Should works with most "ldap" such as Open Ldap

$paramLdap_user_filter = 'sAMAccountName=%USERNAME%';

Best guess for AD

$paramLdap_user_filter = 'cn=%USERNAME%';

May also work for AD

$paramLdap_user_filter = '(&(objectCategory=person)(objectClass=user)(givenName=*)(sn=*))';

An exemple that worked for a user.

NB : search for $paramLdap_user_filter in the forum...


 
Posted : 22 Mar 2017 22H07
(@acalderon)
Posts: 6
Active Member
Topic starter
 

okay. It works well. regards


 
Posted : 22 Mar 2017 22H52
Share:

Scroll to Top