Gitlab Community Edition
Gitlab LDAP login is working just fine, but suddenly our user got this error message above.
Error: Could not authenticate you from Ldapmain because “Invalid credentials for Account.svc”.
Troubleshooting done:
Checked that LDAP config is still the same as before
Changed the password for bind_dn user
Run gitlab-ctl reconfigure and gitlab-ctl restart > no go, still the same error
LDAP check log
LDAP: … Server: ldapmain
LDAP authentication… Failed. Checkbind_dn
andpassword
configuration values
LDAP users with access to your GitLab server (only showing the first 100 results)
LDAP settings
gitlab_rails[‘ldap_servers’] = YAML.load <<-‘EOS’
main: # ‘main’ is the GitLab ‘provider ID’ of this LDAP server
label: ‘LDAP’
host: ‘X.X.X.X’
port: 389
uid: ‘sAMAccountName’
bind_dn: ‘CN=Account Svc,OU=Software Dev,OU=Admin Accounts,OU=SampleOU Users,DC=internal,DC=com’
password: ‘MyAwesomePassword’
encryption: ‘plain’ # “start_tls” or “simple_tls” or “plain”
verify_certificates: false
smartcard_auth: false
active_directory: true
allow_username_or_email_login: true
lowercase_usernames: true
block_auto_created_users: false
base: ‘OU=Software Dev,OU=Admin Accounts,OU=SampleOU Users,DC=internal,DC=com’
user_filter: ‘’
EOS