Did you read 
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/ldap.md 
?

>From a quick glance:

   - You have a typo in bind_dn (d*e*rectory manager, in your PHP example 
   you use "d*i*rectory manager")
   - base should be "ou=Users,dc=empresa", like the userContainer in your 
   PHP example
   - You're using sAMAccountName as the uid, but I don't see a 
   sAMAccountName attribute in the return of your find user method. You should 
   probably use "uid" instead.

PS.: You forgot to redact your LDAP password :-)

HTH,
Daniel Serodio

On Thursday, January 15, 2015 at 3:35:34 PM UTC-2, Kleber Moraes wrote:
>
> config PHP code (work)
>
> host = "127.0.0.1";
> port = 389;
> bindDN = "cn=directory manager";
> bindPW = "xptopassword!";
> baseDN = "dc=empresa";
>
> no metodo findUser
>
> userContainer = "ou=Users,dc=empresa";
> domainSID = "S-1-5-21-266806700-2237704003-2603971549";
>
> return method find user
>
>     [dn:User:private] => uid=uiduser,ou=Users,dc=empresa    
>      [objectClass:User:private] => Array
>         (
>             [0] => inetOrgPerson
>             [1] => posixAccount
>             [2] => sambaSamAccount
>             [3] => organizationalPerson
>             [4] => top
>             [5] => person
>         )
>
>     [cn:User:private] => uiduser
>     [uid:User:private] => uiduser
>     [sn:User:private] => surn
>     [mail:User:private] => [email protected] <javascript:>
>     [telephoneNumber:User:private] => 
>     [uidNumber:User:private] => 13597
>     [gidNumber:User:private] => 513
>     [homeDirectory:User:private] => /home/nusr
>     [sambaSID:User:private] => 
> S-1-5-21-266806700-2237704003-2603971549-13597
>     [sambaHomePath:User:private] => 
>     [sambaHomeDrive:User:private] => 
>     [sambaLogonScript:User:private] => 
>     [employeeNumber:User:private] => 
>     [o:User:private] => 4234252
>     [sambaAcctFlags:User:private] => [U]
>     [userPassword:User:private] => 
>     [sambaNTPassword:User:private] => 31D6CFE0D16AE931B73C59D7E0C089C0
>     [sambaLMPassword:User:private] => AAD3B435B51404EEAAD3B435B51404EE
>
>
> my config gitlab.rb
>
>      gitlab_rails['ldap_enabled'] = true
>  gitlab_rails['ldap_servers'] = YAML.load <<-EOS # remember to close this 
> block with 'EOS' below
>    main: # 'main' is the GitLab 'provider ID' of this LDAP server
>      label: 'Login Bellinati'
>      host: '192.168.200.35'
>      port: 389
>      uid: 'sAMAccountName'
>      method: 'plain' # "tls" or "ssl" or "plain"
>      bind_dn: 'cn=derectory manager,ou=Users,dc=bellinatiperez'
>      password: '_vF27ck8!'
>      active_directory: true
>      allow_username_or_email_login: false
>      base: 'uid=root,ou=Users,dc=bellinatiperez'
>      user_filter: ''
> #     ## EE only
> #     group_base: ''
> #     admin_group: ''
> #     sync_ssh_keys: false
>
> #   secondary: # 'secondary' is the GitLab 'provider ID' of second LDAP 
> server
> #     label: 'LDAP'
> #     host: '_your_ldap_server'
> #     port: 636
> #     uid: 'sAMAccountName'
> #     method: 'ssl' # "tls" or "ssl" or "plain"
> #     bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
> #     password: '_the_password_of_the_bind_user'
> #     active_directory: true
> #     allow_username_or_email_login: false
> #     base: ''
> #     user_filter: ''
> #     ## EE only
> #     group_base: ''
> #     admin_group: ''
> #     sync_ssh_keys: false
>
> no have SSL
>
>

-- 
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/6d6533a5-7f0c-4572-b3e6-733f68ccc0d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to