View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - AD-LDAP login with ProjeQtor 5.0.0 - ProjeQtOr
 
 

AD-LDAP login with ProjeQtor 5.0.0

More
19 Jun 2015 13:25 #1 by Eric26
Hi,

I'm testing this web application (lastest 5.0.0 RC version) and it seems to be exactly what I need. But I'm facing an issue with LDAP authentication.
I've an Active Directory LDAP and i've this error in log file when attemping to login :

2015-06-19 09:05:51.492 ===== TRACE ===== Login error for user 'myusername'


I set this as parameters :
connection with LDAP user :
LDAP base dn : dc=domain,dc=local
LDAP host : [IP of primary DC]
LDAP port : 389
LDAP version : 3
LDAP user : cn=[administrator name],cn=Users,dc=domain,dc=local
LDAP password : [administrator password]
LDAP user filter : sAMAccountName=%username%

These settings are working with other Web application that uses LDAP authentication (like GLPI). The log file does not tell me what's wrong except a login error but i'm sure the login typed in is correct and matches sAMAccountName field.

Any help will be greatly appreciated.

Regards.

Eric

Please Log in or Create an account to join the conversation.

More
19 Jun 2015 13:41 #2 by Eric26
Additional point : If I change the LDAP user filter with something wrong, log file shows

2015-06-19 13:39:47.942 ***** ERROR ***** cause = ldap_search(): Search: Bad search filter


So, in my mind, it seems my initial user filter is OK.

Please Log in or Create an account to join the conversation.

More
19 Jun 2015 15:43 #3 by babynus
I'm not an AD expert.
But I think AD does not always use default LDAP port.
I've heard of 626 for secured connection.
Could you try this port ?

It also seems that in some cases, neither the filter 'uid=' nor the filter 'sAMaccountName=' work.
Have a look at existing post : www.projeqtor.org/fr/forum-fr/10-feedbac...ection-problems#8488
Maybe it can help you

Lookin at the error, I'd bet on second solution.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
23 Jun 2015 08:31 #4 by Eric26
Hi and thanks for your quick reply.

AD uses the standard LDAP port 389 and authentification works fine with this setting for other web app like GLPI. I tried secured port 626 but without success. In GLPI's case, I use successfully this connexion filter :

(&(objectClass=user)(objectCategory=person))


I tried with different syntax like

(&(objectClass=user)(objectCategory=person))=%username%

But it doesn't work with ProjeQtor and generates this error in log file :

***** ERROR ***** cause = ldap_search(): Search: Bad search filter


The only way to not have a bad search filter error is to use

sAMAccountName=%username%

but then I have

Login error for user 'myusername'

.

About the second solution, I'm using Windows 2008r2 AD controler and not 2012r2. But anyway, I checked the LDAP connexion string as explained and all is OK. In my AD, the connexion username is set in "sAMAccountName" key. Tried other filled keys like CN (gives "FirstName LastName"), displayName (gives "LastName FirstName") or Name (gives "FirstName LastName"), without any success and always the same

Login error for user 'myusername'

.

This is going to drive me crazy... :S

Please Log in or Create an account to join the conversation.

More
23 Jun 2015 08:39 #5 by Eric26
I got it !!! :woohoo:

It was simply a case sensitive behavior ! In LDAP user filter, I used the bad :

sAMAccountName=%username%


But the good one is :

sAMAccountName=%USERNAME%

!!!

Seems this solution is only available for Projeqtor v5.0. Maybe the case of %username% does not matter in version 4.x ?

Please Log in or Create an account to join the conversation.

More
23 Jun 2015 08:53 #6 by babynus
Great you found the solution :woohoo:
Strange issue as there was no change from V4.5 to V5.0 about case sensibility of %USERNAME%. :huh:
I changed filter to accecpt either %USERNAME% or %username% in patch V5.0.1 in order to avoid this issue for other users. B)

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.038 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.