Existing users cannot login with ldap accounts
Hi,
I've enabled the Active Directory authentication on our existing GitLab 7.6.2-ce omnibus installation, with an ldap filter to restrict users to members of an AD group.
The "new" users (authorized but have never used GitLab) can login successfully.
The "legacy" (standard, internal users) users have:
- a "standard" (GitLab internal) login created previously and different than the LDAP one
- the email address assigned to this account matching their email address setup in their AD account
The "legacy" users cannot login, returning:
- the error "Could not authorize you from Ldapmain because "Undefined method `provider' for nil:nilclass"." on the login page
- the following events in unicorn/unicorn_stdout.log:
I, [2015-01-06T10:17:13.787366 #4087 (closed)] INFO -- omniauth: (ldapmain) Callback phase initiated. E, [2015-01-06T10:17:13.969527 #4087 (closed)] ERROR -- omniauth: (ldapmain) Authentication failure! ldap_error: NoMethodError, undefined method `provider' for nil:NilClass
Laurent.