My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1556: Gerrit does not work with non-default LDAP port
3 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by nikki.ka...@gmail.com, Sep 12, 2012
Affected Version: Powered by Gerrit Code Review (2.4)
What steps will reproduce the problem?
1. I am running Gerrit on  Ubuntu 11.10 (GNU/Linux 3.0.0-12-server x86_64 and using LDAP for authentication with a non-default port 
2. Snippet from gerrit.config
[auth]
	type = LDAP
[container]
	user = root
	javaHome = /opt/jdk/jdk1.6.0_16/jre
	javaOptions = -Djava.naming.referral=follow
[sshd]
	listenAddress = *:29418
[httpd]
	listenUrl = https://*:9090/
[cache]
	directory = cache
[ldap]
	server = ldap://blah-02.corp.abc.net:50002
        username = CN=bind,OU=Users,DC=Gerrit,DC=corp,DC=abc,DC=net
        password = abcpass
        sslVerify = false
        accountBase = DC=Gerrit,DC=corp,DC=abc,DC=net
        accountPattern = (sAMAccountName=${username})
        accountSshUserName = ${sAMAccountName.toLowerCase}
        groupBase = DC=Gerrit,DC=corp,DC=abc,DC=net
        accountFullName = cn
        accountEmailAddress = mail
        referral = follow
        localUsernameToLowerCase = true

What is the expected output? What do you see instead?
Expected output is that it should allow me to login but instead I can't see any log in error_log file.  

Please provide any additional information below.
Note that when I use an LDAP rpoxy on default port, something like this: 
	server = ldap://blah-02.corp.abc.net:389
It works just fine. Also doing an LDAP search for my username from the linux box which runs gerrit returns the same response for both these ldap proxies. Both my ldapsearch queries which return the same result from the box are as follows:
ldapsearch -h blah-02.corp.abc.net -p 389 -D "CN=bind,OU=Users,DC=Jenkins,DC=corp,DC=abc,DC=net" -w 'abcpass' -b DC=Jenkins,DC=corp,DC=abc,DC=net sAMAccountName=nikkik

ldapsearch -h blah-02.corp.abc.net -p 50002 -D "CN=bind,OU=Users,DC=Gerrit,DC=corp,DC=abc,DC=net" -w 'abcpass' -b DC=Gerrit,DC=corp,DC=abc,DC=net sAMAccountName=nikkik



Jun 6, 2013
#1 kambiz.d...@gmail.com
I just tried to connect the current version of Gerrit (2.5.4) to an LDAP server running on port 10389 and cannot observe this behaviour.

The server was specified in gerrit.config as:

server = ldap://<server-ip>:10389


Sign in to add a comment

Powered by Google Project Hosting