I've managed to accomplish what I want with this modification
---
/opt/gitlab/embedded/service/gem/ruby/1.9.1/gems/gitlab_omniauth-ldap-1.0.4/lib/omniauth/strategies/ldap.rb.bak
2014-04-21
09:01:05.551189021 +1100
+++
/opt/gitlab/embedded/service/gem/ruby/1.9.1/gems/gitlab_omniauth-ldap-1.0.4/lib/omniauth/strategies/ldap.rb
2014-04-21
09:01:15.370066398 +1100
@@ -6,5 +6,5 @@
include OmniAuth::Strategy
@@config = {
- 'name' => 'cn',
+ 'name' => 'sAMAccountName',
'first_name' => 'givenName',
'last_name' => 'sn',
On Monday, 21 April 2014 08:49:43 UTC+11, Александр Костырев wrote:
>
> Good day!
> I've setup gitlab-6.7.5_omnibus-1.el6.x86_64.rpm and configured ldap
> authentication.
> Everything seems to be ok but
> when ldap user logins in gitlab creates new user using DN attribute and
> that is not very convenient for my environment.
> Is there any possibility to force gitlab to use another attribute
> e.g. sAMAccountName
>
> thanks in advance!
>
--
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].
For more options, visit https://groups.google.com/d/optout.