Advertisement
Guest User

Untitled

a guest
Apr 11th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. gitlab_rails['ldap_enabled'] = true
  2. gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
  3. main:
  4. label: 'ldap'
  5. host: '10.x.x.x'
  6. port: 389
  7. # uid: 'gitldap'
  8. uid: 'sAMAccountName'
  9. method: 'plain'
  10. # bind_dn: 'c3\gitldap'
  11. bind_dn: 'CN=GIT LDAP,OU=C3_APP_USERS,OU=C3_USER_REPO,DC=C3,DC=LOCAL'
  12. password: 'password'
  13. active_directory: true
  14. allow_username_or_email_login: false
  15. block_auto_created_users: false
  16. base: 'DC=C3,DC=LOCAL'
  17. user_filter: ' (&(objectCategory=user)(objectClass=user)(memberOf=CN=C3_GIT_Admin,OU=C3_PAAS_SUPPORT_TEAM,OU=C3_USER_REPO,DC=C3,DC=LOCAL))'
  18. attributes:
  19. username: 'sAMAccountName'
  20. # email: ['mail', 'email', 'userPrincipalName']
  21. name: 'cn'
  22. first_name: 'givenName'
  23. last_name: 'sn'
  24. EOS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement