Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!