Hi Johan!
Under the [ldap] section, please try to set the username and password fields for the account/credentials with which you want to use for LDAP queries as well. That should authenticate you successfully to be able to perform queries.
--
Best regards,
Fredrik Luthander
Sony Mobile Communications AB
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
Hej Johan!
I'm sorry, I really must've misread your error message. (When I read it now, it doesn't say what I thought it said last time, haha. Very confusing.)
I'm unfortunately a little bit out of ideas as to what you can do. Instinctively, I'd double check the casing on the OU value, what if the LDAP server is case sensitive.. OTOH, you've already made it work with the regular ldapsearch comannd with the exact same casing.
Sorry I can't be of any more help than this.. I don't have as much experience of LDAP as I wish I had. :)
It seems your groupBase is a bit off since the user was found (if I read your stacktrace right). Try using the same parameters in ldapsearch, but query for memberOf instead:
ldapsearch "(memberOf=<a group cn you know exists>)" -b "<your groupBase>"
/G
From: repo-d...@googlegroups.com [mailto:repo-d...@googlegroups.com] On Behalf Of Johan Martinsson
Sent: den 30 oktober 2012 16:57
To: repo-d...@googlegroups.com
Cc: 'Johan Martinsson'
Hi Team,
I am trying to configure LDAP with gerrit Version – 2.10.2, But getting below errors, Kindly help me on this,
My gerrit.config settings are follows,
[auth]
type = LDAP
[ldap]
accountPattern = (&(objectClass=person)(uid=${username}))
accountFullName = displayName
accountEmailAddress = mail
Only highlighted part I have modified. But My Gerrit web shows à Authentication unavailable at this time. Error.
[2015-04-07 16:06:38,385] ERROR com.google.gerrit.server.auth.ldap.LdapRealm : Cannot query LDAP to authenticate user
javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C090728, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v2580]; remaining name 'ou=people,dc=sisldomain,dc=com'
Thanks,
Mohan
> <mailto:repo-discuss+unsub...@googlegroups.com>.
Hi David,Yes LDAP server is pining. No problem with LDAP Server access.
Do I need to update in MYSQL database for LDAP Authentication? Bcoz earlier my gerrit setting was pointing to http.
Hello,
I didn't want to create new thread because my problem is similar to this topic.
So my gerrit just stopped work and error I get now is:
[HTTP-48] ERROR com.google.gerrit.server.auth.ldap.LdapRealm : Cannot query LDAP to authenticate user
javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
During to my knowledge, nothing changes on ldap side, because other services works. So what could change on gerrit side and cause this problem?
Best regards,
Jacek Ziora