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

System.DirectoryServices.Protocols - FastConcurrentBind does not work on linux #41617

Open
null-d3v opened this issue Aug 31, 2020 · 1 comment
Labels
area-System.DirectoryServices tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly
Milestone

Comments

@null-d3v
Copy link

Description

LdapSessionOptions.FastConcurrentBind() does not work on linux.

Valid or invalid credentials will result in the following:

System.DirectoryServices.Protocols.LdapException: The LDAP server returned an unknown error.
    at System.DirectoryServices.Protocols.ErrorChecking.CheckAndSetLdapError(Int32 error)
    at System.DirectoryServices.Protocols.LdapSessionOptions.FastConcurrentBind()

Sample:

var connection = new LdapConnection(
    new LdapDirectoryIdentifier(
        LdapOptions.Server),
    credential,
    AuthType.Negotiate);

connection.SessionOptions.ProtocolVersion = 3;

userConnection.SessionOptions
    .FastConcurrentBind();

Configuration

  • .NET 5.0.0-preview.820414.8
  • aspnet:5.0-alpine docker image
  • x86_64
  • libldap 2.4
  • Windows Server 2019 DC

Regression

The exact code is functional when executing from the docker container's Windows host.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.DirectoryServices untriaged New issue has not been triaged by the area owner labels Aug 31, 2020
@ericstj
Copy link
Member

ericstj commented Sep 9, 2020

I believe this is known to not work:

LDAP_OPT_FAST_CONCURRENT_BIND = 0x41, // Not Supported in Linux

The option doesn't appear to be known by libldap. I think the right place to file this request would be https://github.com/openldap/openldap/.

@joperezr do you agree?

@ericstj ericstj added tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly and removed untriaged New issue has not been triaged by the area owner labels Sep 9, 2020
@ericstj ericstj added this to the Future milestone Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.DirectoryServices tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly
Projects
No open projects
Development

No branches or pull requests

3 participants