Skip to content

Linux Support - SSL Flag #25

@Rob4001

Description

@Rob4001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions