Affected Version: stable-2.11, master
What steps will reproduce the problem?
1. try to use LDAP login
What is the expected output? What do you see instead?
Webinterface: user is unknow or password incorrect
logs/error_log:
2015-03-05 10:05:31,260] INFO com.google.gerrit.httpd.auth.ldap.LdapLoginServlet : 'pedersen' failed to sign in: No such user: pedersen
Please provide any additional information below.
using git bisect, it seems like
commit c81291fde0fc9f978782c86ea739a1502e6b2f3f
Author: Saša Živkov <sasa.zivkov@sap.com>
Date: Wed Feb 4 17:19:20 2015 +0100
Configurable ldap.fetchMemberOfEagerly to optimize LDAP login
is the first commit where I observe this behaviour.
I kept the config (below) unchanged for git bisect.
[ldap]
server = ldap://<...>/
accountBase = ou=People,dc=<...>,dc=de
groupBase = ou=Group,dc=<...>,dc=de
accountPattern = (&(objectClass=posixAccount)(uid=${username}))
groupMemberPattern = (&(gidNumber=${gidNumber})(|(uid=${username})(memberUid=${username})))
accountFullName = cn
accountEmailAddress = ${mail.toLowerCase}
fetchMemberOfEagerly = true (does not work with and without this setting)
Mergedinto: 3201