Use below mentioned configuration in LDAP(Active Directory) authentication for Gerrit.
Prerequisite:
Prerequisite:
- You should have your work LDAP for authentication.
- You should aware with Gerrit configuration file(gerrit.config)
[auth]
type = LDAP
gitBasicAuthPolicy = LDAP
[ldap]
server = ldap://xxx.OurDomain.com/local
username = CN=test,OU=users,OU=India,OU=Users,DC=OurDomain, DC=com/local
accountBase = OU=users,OU=India,OU=Users,DC=OurDomain, DC=com/local
accountPattern = (&(objectClass=user)(sAMAccountName=${username}))
accountFullName = displayName
accountEmailAddress = mail
groupBase = OU=users,OU=India,OU=Users,DC=OurDomain, DC=com/local
2) Save this file and restart your gerrit server.
Tested above mentioned code with Gerrit 2.15.3 version and it was working fine.
type = LDAP
gitBasicAuthPolicy = LDAP
[ldap]
server = ldap://xxx.OurDomain.com/local
username = CN=test,OU=users,OU=India,OU=Users,DC=OurDomain, DC=com/local
accountBase = OU=users,OU=India,OU=Users,DC=OurDomain, DC=com/local
accountPattern = (&(objectClass=user)(sAMAccountName=${username}))
accountFullName = displayName
accountEmailAddress = mail
groupBase = OU=users,OU=India,OU=Users,DC=OurDomain, DC=com/local
2) Save this file and restart your gerrit server.
Tested above mentioned code with Gerrit 2.15.3 version and it was working fine.
No comments:
Post a Comment