gitlabhq/gitlabhq — Issue #455: Can't login via LDAP
Author: andoriyu
Created: 2012-02-23 01:15:47+00:00
State: open

Here is code from config/initializers/devise.rb:
config.omniauth :ldap,
:host => '192.168.1.101',
:base => 'ou=People,dc=infinitycode,dc=com',
:uid => 'uid',
:port => 389,
:method => :plain,
:bind_dn => 'cn=admin,dc=infinitycode,dc=com',
:password => 'secret'

Gitlab flashes message that it can't log in because of "LdaError". OpenLDAP logs say: https://gist.github.com/1888954

Note: same config works with redmine (they don't use omniauth, but I used exact same values.