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
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 ?
LinqToLdap/LinqToLdap/ConnectionFactoryBase.cs
Line 138 in af31876
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