I didn't have any problems setting up LDAP (AD, actually) auth either. I 
suggest you test on the CLI using ldapsearch(1) and take a look at the 
Gitlab's logs to see more details about the error. My LDAP settings in 
/etc/gitlab/gitlab.rb are:

gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_host'] = 'ldap.example.com'
gitlab_rails['ldap_port'] = 636
gitlab_rails['ldap_uid'] = 'sAMAccountName'
gitlab_rails['ldap_method'] = 'ssl' # 'ssl' or 'plain'
gitlab_rails['ldap_bind_dn'] = '[email protected]'
gitlab_rails['ldap_password'] = '#####'
gitlab_rails['ldap_allow_username_or_email_login'] = true
gitlab_rails['ldap_base'] = 'ou=Users,dc=example,dc=com'
gitlab_rails['gitlab_signin_enabled'] = false


HTH,
Daniel Serodio

On Monday, November 17, 2014 11:02:33 AM UTC-2, Alex Earl wrote:
>
> I didn't have any trouble setting up LDAP support with Gitlab. The things 
> I would check would be the port and method. Make sure that you have the 
> correct security setting (ssl, tls, etc) and that the port that you are 
> using matches with that setting. You could try using the command line ldap 
> tools to check connectivity with the exact settings you are using with 
> Gitlab from the same machine, as the same user to make sure things are all 
> setup correctly.
>
> On Mon Nov 17 2014 at 1:44:24 AM Oskar Emil Skeide <[email protected] 
> <javascript:>> wrote:
>
>>
>> Lurking to see if anyone has the answer. I have the same setup as 
>> @Maneesh here and I can not get GitLab LDAP authentication to work. I get 
>> the same error message.
>>
>> I use a Windows Server 2008 DC as LDAP server and that part is working; I 
>> have a router and printer using that LDAP server to read users.
>>
>> I also see this tip appearing in some other posts to check LDAP settings:
>>
>>     sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
>>
>> When I try to run that command it fails with Could not locate Gemfile
>>
>>
>> ...
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "GitLab" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/gitlabhq/f162a787-bfe4-4f77-8afd-b6b99dd26511%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/gitlabhq/f162a787-bfe4-4f77-8afd-b6b99dd26511%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/dc99dd56-acc1-4bee-8ac7-22a38574f931%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to