Skip to content

LDAP Authentication not working #1293

@foamrider

Description

@foamrider

Hi

I'm trying to get the LDAP authentication to work. I'm using the following LDAP settings

Bind Search:

{"filter": "(&(objectclass=person)(sAMAccountName=#{username}))", "scope": "sub", "userDN": "bind@domain.local", "password": "passwd"}

Distinguished Name (DN):

DC=domain,DC=local

When I try logging in, I get the "username not found or incorrect password".

If I type the incorrect password (seems like LDAP is correct):

Bind before search bind@domain.local passwd
LDAP search dn DC=domain,DC=local
LDAP search options { filter: '(&(objectclass=person)(sAMAccountName=john))',
  scope: 'sub' }
Attempt to bind CN=John Doe,OU=Users,OU=Parent,DC=domain,DC=local
{ [InvalidCredentialsError: 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1]
  dn: [Getter],
  code: [Getter],
  name: [Getter],
  message: [Getter] }
{ [Error: 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1 [49]]
  error: 49,
  reason: '80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1\u0000',
  details: undefined,
  message: '80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1\u0000 [49]',
  errorType: 'Meteor.Error' }

Which is kinda expected, but it shows that the LDAP search is working. Now, if I type the correct password:

Bind before search bind@domain.local passwd
LDAP search dn DC=domain,DC=local
LDAP search options { filter: '(&(objectclass=person)(sAMAccountName=john))',
  scope: 'sub' }
Attempt to bind CN=John Doe,OU=Users,OU=Parent,DC=domain,DC=local

And there it stops, and I receive (client side) the same error as if the password was incorrect.

Am I missing something, or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions