Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

193
Visualizações
Unable to Configure LDAP in Gerrit

I was using Gerrit for quite some time, and I was using LDAP for login. At that time, the username didn't contain any special characters like '.'. But, as the policy changed, the new usernames contained '.' in them. Now, the new users are unable to login to Gerrit. The Gerrit configuration file is:

[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

Error log:

[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

I was using the correct username and password. Is there any additional configurations that need to be added?

Gerrit Version: Gerrit Code Review (2.9.1) Host machine: Ubuntu 12.04

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I have configured my gerrit int this way I think you need change auth type LDAP_BIND to 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
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda