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

Linux Support - SSL Flag #25

Open
Rob4001 opened this issue May 4, 2021 · 2 comments
Open

Linux Support - SSL Flag #25

Rob4001 opened this issue May 4, 2021 · 2 comments

Comments

@Rob4001
Copy link

Rob4001 commented May 4, 2021

As of .NET 5 System.DirectoryServices.Protocols has linux support, using the openldap c libraries.

These libraries do not support the UseSSL Flag: dotnet/runtime#36888 (comment) which causes a PlatformNotSupportedException when trying to use this library

Could we put a runtime specific case around the setting of this flag ?

connection.SessionOptions.SecureSocketLayer = UsesSsl;

https://github.com/dotnet/runtime/blob/c5ae5bf75635cb395d05567f6f37be2dc4a90afd/src/libraries/System.DirectoryServices.Protocols/src/System/DirectoryServices/Protocols/ldap/LdapSessionOptions.Linux.cs#L13

My current workaround is to duplicate the connection factories and override the BuildConnection call.

Thanks

@MiC11w
Copy link

MiC11w commented Dec 23, 2021

I encountered the same problem, would really appreciate fixing this issue.

@rklec
Copy link

rklec commented May 23, 2024

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

No branches or pull requests

3 participants