Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding Always Fails #135

Open
nove1398 opened this issue Jul 20, 2021 · 5 comments
Open

Binding Always Fails #135

nove1398 opened this issue Jul 20, 2021 · 5 comments
Labels

Comments

@nove1398
Copy link

Describe the bug
Unable to bind on Linux platform, but works on windows

To Reproduce
simply attempt to bind
cn.Bind(LdapForNet.Native.Native.LdapAuthType.Digest, new LdapCredential { UserName = "user@domain", Password = "password", AuthorizationId = "u:user" });

Expected behavior
A successful binding

Desktop (please complete the following information):

  • OS: Linux Ubunto 20.4

Additional context
Using to LDAP into Active Directory

@flamencist
Copy link
Owner

Did you install the prerequisites? For Linux\OSX you must ensure you have the latest OpenLDAP client libraries installed from http://www.openldap.org. Also you should install libsasl modules for digest-md5 (libsasl2-modules)

@nove1398
Copy link
Author

I will look into it now, I really love how slim this library is personally, I just want it to work so I can use basic searching functionality.

@nove1398
Copy link
Author

nove1398 commented Jul 21, 2021

I installed the libs for sasl2-modules.
My Bind call looks like this:

cn.Bind(LdapForNet.Native.Native.LdapAuthType.Digest, new LdapCredential
            {
                UserName = "logonName",
                Password = "password",
                AuthorizationId = "dn:CN=First Last,DC=first,DC=second,DC=third"
            });

Not sure if that is the correct format, it may be my incorrect input. Please advise.

Update
The error returned looks like this LdapForNet.LdapInvalidCredentialsException: Invalid credentials. 8009030B: LdapErr: DSID-0C0904DC, comment: AcceptSecurityContext error, data 0, v1db1. Result: 49. Method: BindSasl

@flamencist
Copy link
Owner

You dont need AuthorizationId. Example:

connection.Bind(LdapAuthType.Digest, new LdapCredential

@flamencist
Copy link
Owner

Is authentication work on linux?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants