Here are the key note for gerrit.conf file
[auth]
type = LDAP
[ldap]
server=
accountBase= ou=people,dc=*,dc=*
accountPattern=(&(objectClass=person)(uid=${username}))
accountFullName= mail
accountEmailAddress = mail
[httpd]
listenUrl=http://*:8180/
also tried apache2 proxy to LDAP. key note
created a new virtual host with port 8082, have to add this to the port.conf
the gerrit port is still 8180.
in gerrit.conf
canonicalWebUrl = http://192.168.1.30:8082/
[httpd]
listenUrl = proxy-http://127.0.0.1:8180/
listenUrl = proxy-http://127.0.0.1:8180/
the LDAP way is easier to config, the proxy one is working halfway, can only login first user and creat admin. I don't have time to figure out why
another lessons learned here for gerrit username.
User names cannot contain spaces. Currently they are restricted to be
strings that match the following regular expression:
strings that match the following regular expression:
^[a-zA-Z][a-zA-Z0-9._-]*[a-zA- Z0-9]$
otherwise, gerrit login will give "name does not conform" error.
No comments:
Post a Comment