Estuve usando Gerrit durante bastante tiempo y estaba usando LDAP para iniciar sesión. En ese momento, el nombre de usuario no contenía ningún carácter especial como '.'. Pero, a medida que cambió la política, los nuevos nombres de usuario contenían '.' en ellos. Ahora, los nuevos usuarios no pueden iniciar sesión en Gerrit. El archivo de configuración de Gerrit es:
[gerrit] basePath = git canonicalWebUrl = http://xxx.xxx.xxx.xxx:8080/ [database] type = mysql hostname = localhost database = reviewdb username = root [index] type = LUCENE [auth] type = LDAP_BIND [ldap] server = ldap://xxx.xxx.xxx.xxx accountPattern = (sAMAccountName=${username}) accountBase = OU=XXXX USERS,DC=xxx,DC=xxxx,DC=xxx accountScope = sub referral = follow accountEmailAddress = ${username}@xxxxxx.com [sendemail] smtpServer = smtprelay.xxxxx.com smtpServerPort = 25 [container] user = root javaHome = /usr/lib/jvm/java-7-openjdk-amd64/jre [sshd] listenAddress = *:29418 [httpd] listenUrl = http://*:8080/ [cache] directory = cache
Registro de errores:
[2016-02-11 18:08:56,560] INFO com.google.gerrit.httpd.auth.ldap.LdapLoginServlet : 'xxx.xxxx' failed to sign in: Incorrect username or password
Estaba usando el nombre de usuario y la contraseña correctos . ¿Hay alguna configuración adicional que deba agregarse?
Versión de Gerrit: Gerrit Code Review (2.9.1) Máquina host: Ubuntu 12.04
He configurado mi gerrit int de esta manera. Creo que necesita cambiar el tipo de autenticación LDAP_BIND a LDAP.
[auth] type = LDAP [LDAP] server = ldap://XXX.XXX.XXX.XXX:XXXX username = CN=XXX,CN=Users,DC=XXX,DC=local password = XXXXX accountBase = DC=XXX,DC=local accountScope = subtree accountPattern = (&(objectClass=user)(sAMAccountName=${username})) groupBase = DC=XXX,DC=local accountFullName = displayName sslVerify = false referral = follow