Created
October 30, 2014 11:48
-
-
Save pcholakov/01dce069b2576c24fb1d to your computer and use it in GitHub Desktop.
Gerrit ActiveDirectory LDAP_BIND authentication example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To log in, use "[email protected]" and NT password in the Gerrit login form. To confirm the pattern for your directory, test with: | |
# ldapsearch -h adldap -s sub -s sub -b 'dc=example,dc=com' "(&(objectClass=person)([email protected]))" | |
[auth] | |
type = LDAP_BIND | |
[ldap] | |
server = ldap://adldap | |
accountBase = DC=example,DC=com | |
accountPattern = (&(objectClass=person)(userPrincipalName=${username})) | |
#accountPattern = (&(objectClass=person)(sAMAccountName=${username})) | |
accountScope = sub | |
groupBase = DC=example,DC=com | |
accountFullName = displayName | |
accountMemberField = memberOf | |
accountEmailAddress = mail | |
accountSshUserName = ${sAMAccountName.toLowerCase} | |
referral = follow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment