Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #10329

Closed
Open
Created May 06, 2016 by Administrator@rootOwner

Ldap invalid credentials

Created by: nestoru

Hello,

I am unable to login using Ldap. When I enter my email ([email protected]) I get bad credentials in the UI apparently (per the logs in the ldap server) because only the username is extracted from the whole email.

Config:

      gitlab_rails['ldap_enabled'] = true
      gitlab_rails['ldap_host'] = 'ldapdev.sample.com'
      gitlab_rails['ldap_port'] = 10636
      gitlab_rails['ldap_method'] = 'ssl'
      gitlab_rails['ldap_bind_dn'] = 'uid=admin,ou=system'
      gitlab_rails['ldap_password'] = 'mypass'
      gitlab_rails['ldap_allow_username_or_email_login'] = true
      gitlab_rails['ldap_base'] = 'ou=people,o=sample'

Ldap logs:

[18:37:15] DEBUG [org.apache.directory.server.ldap.handlers.ReferralAwareRequestHandler] - Handling single reply request:     SearchRequest
        baseDn : 'ou=people,o=sample'
        filter : '(mail=nestor)'
        scope : whole subtree
        typesOnly : false
        Size Limit : 1
        Time Limit : no limit
        Deref Aliases : never Deref Aliases
        attributes : 

[18:37:15] DEBUG [org.apache.directory.server.ldap.handlers.ReferralAwareRequestHandler] - ManageDsaITControl NOT detected.
[18:37:15] DEBUG [org.apache.directory.server.ldap.handlers.SearchHandler] - Entry ou=people,o=sample is NOT a referral.
[18:37:15] DEBUG [org.apache.directory.server.ldap.handlers.SearchHandler] - Message received:      SearchRequest
        baseDn : 'ou=people,o=sample'
        filter : '(mail=nestor)'
        scope : whole subtree
        typesOnly : false
        Size Limit : 1
        Time Limit : no limit
        Deref Aliases : never Deref Aliases
        attributes : 

[18:37:15] DEBUG [org.apache.directory.server.core.DefaultOperationManager] - >> SearchOperation : SearchContext for DN 'ou=people,o=sample', filter :'(|(mail=nestor)(objectClass=referral))'
[18:37:15] DEBUG [org.apache.directory.server.core.DefaultOperationManager] - >> LookupOperation : LookupContext for DN 'ou=people,o=sample', attributes : <>
[18:37:15] DEBUG [org.apache.directory.server.core.authn.AuthenticationInterceptor] - Operation Context: LookupContext for DN 'ou=people,o=sample', attributes : <>
[18:37:15] DEBUG [org.apache.directory.server.core.DefaultOperationManager] - >> hasEntryOperation : EntryContext for DN 'ou=people,o=sample'
[18:37:15] DEBUG [org.apache.directory.server.core.partition.DefaultPartitionNexus] - Check if DN 'ou=people,o=sample' exists.
[18:37:15] DEBUG [org.apache.directory.server.core.DefaultOperationManager] - << HasEntryOperation successful
[18:37:15] DEBUG [org.apache.directory.server.core.DefaultOperationManager] - << LookupOperation successful
[18:37:15] DEBUG [org.apache.directory.server.core.authn.AuthenticationInterceptor] - Operation Context: SearchContext for DN 'ou=people,o=sample', filter :'(|(0.9.2342.19200300.100.1.3=nestor)(2.5.4.0=referral))'
[18:37:15] DEBUG [org.apache.directory.server.core.DefaultOperationManager] - >> hasEntryOperation : EntryContext for DN 'ou=people,o=sample'
[18:37:15] DEBUG [org.apache.directory.server.core.partition.DefaultPartitionNexus] - Check if DN 'ou=people,o=sample' exists.
[18:37:15] DEBUG [org.apache.directory.server.core.DefaultOperationManager] - << HasEntryOperation successful
[18:37:15] DEBUG [org.apache.directory.server.core.DefaultOperationManager] - << SearchOperation successful
[18:37:15] DEBUG [org.apache.mina.core.filterchain.IoFilterEvent] - Event MESSAGE_RECEIVED has been fired for session 3207
[18:37:15] DEBUG [org.apache.directory.server.ldap.LdapProtocolHandler] - Cleaning the LdapSession : <0.9.2342.19200300.100.1.1=admin,2.5.4.11=system,...> session

Thanks,

  • Nestor
Assignee
Assign to
Time tracking