Hi.
I’m trying to connect my GitLab instance to my Samba LDAP/AD. GitLab seems to able to communicate with it just fine, but the authentification keeps failing, no matter what I try:
root@gitlab:/# gitlab-rake gitlab:ldap:check
Checking LDAP ...
Server: ldapmain
LDAP authentication... Failed. Check `bind_dn` and `password` configuration values
LDAP users with access to your GitLab server (only showing the first 100 results)
Checking LDAP ... Finished
I have tried all different possible combinations of the user name:
CN=gitlab,CN=Users,DC=company,DC=local
cn=gitlab,cn=Users,dc=company,dc=local
gitlab
COMPANY\gitlab
company\gitlab
Additionally I tried it with active-directory
disabled and my personal account where I’m 1000% certain I used the correct password.
(Of course I ran gitlab-ctl reconfigure
after changing the config every time)
And the gitlab-rake gitlab:ldap:check
test always outputs the same as above.
Weirdly enough I also can’t authenticate using ldapsearch
!
Attempts
-
Results inldapsearch -D "cn=myuser,cn=Users,dc=company,dc=local" -w "<password>" \ -p 389 -h 10.128.1.254 \ -b "cn=Users,dc=company,dc=local"
ldap_bind: Strong(er) authentication required (8) additional info: BindSimple: Transport encryption required.
-
Results inldapsearch -D "cn=myuser,cn=Users,dc=company,dc=local" -w "<password>" \ -p 389 -h 10.128.1.254 \ -b "cn=Users,dc=company,dc=local" \ -Y NTLM
SASL/NTLM authentication started ldap_sasl_interactive_bind_s: Invalid credentials (49) additional info: SASL:[NTLM]: NT_STATUS_OBJECT_NAME_NOT_FOUND
-
Results in the nothing saying errorldapsearch -D "cn=myuser,cn=Users,dc=company,dc=local" -w "<password>" \ -p 389 -h 10.128.1.254 \ -b "cn=Users,dc=company,dc=local" \ -Y GSSAPI
SASL/GSSAPI authentication started ldap_sasl_interactive_bind_s: Local error (-2) additional info: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_0))
More on that issue here: connection - ldapsearch - Strong(er) authentication required - Transport encryption required - Super User
They might be related…
Active Directory Explorer is having no issues whatsoever and other windows services work just fine with it too, so I don’t think it’s an issue on the AD side.
Which btw runs on a Synology, if that makes any difference.
Any idea on how to further investigate this issue are greatly appreachiated!