Skip to content

Invalid credentials error with passwords containing special character #159

@Kenny-54

Description

@Kenny-54

Hi !

Describe the bug
Unable to bind on Linux platform if password contains characters from extended ASCII table (eg. £ € §).

Same code with same password works well on Windows.
Works well too with ldapsearch command line.

To Reproduce
Attempt to bind (simply for credential verification) with :

cn.Bind(LdapAuthType.Digest, new LdapCredential
{
    UserName = "username",
    Password = "password"
});

Failed with :

Invalid credentials. 8009030C: LdapErr: DSID-0C090590, comment: AcceptSecurityContext error, data 52e, v2580. Result: 49. Method: BindSasl

Tried with LdapAuthType.Simple too (LDAP or LDAPS) ==> same error

Expected behavior
Calling bind method not raising exception

Desktop (please complete the following information):

  • OS: Debian 11
  • Library version 2.7.13
  • .NET core 6.0
  • LDAP server : Active Directory

Thanks for your help !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions