If you’re having trouble, here are some tips:
- Query all the users by using the following command:
dsquery user -limit 1000 > users.txt
- Find the
bind_dnuser from this list and copy and paste the entire line. It will be a format similar to:'CN=Name\, Display,OU=Some Organizational Unit,OU=Another Organizational Unit,DC=domain,DC=com'
- Lastly, edit the config file below and ensure the appropriate config options.
And here’s my config (/opt/bitnami/apps/gitlab/htdocs/config/gitlab.yml):
ldap:
enabled: true
host: ad.domain.com
port: 389
uid: 'sAMAccountName'
method: 'plain' # "tls" or "ssl" or "plain"
bind_dn: 'CN=Name\, Display,OU=Some Organizational Unit,OU=Another Organizational Unit,DC=domain,DC=com'
password: 'some_password'
active_directory: true
allow_username_or_email_login: false
base: 'DC=domain,DC=com'
user_filter: ''
Good luck!