Exception on LDAP/AD connection with .NET 8 on MacOs and Docker with StartTransportLayerSecurity #110391
Labels
area-System.DirectoryServices
needs-further-triage
Issue has been initially triaged, but needs deeper consideration or reconsideration
os-mac-os-x
macOS aka OSX
Milestone
Description
On
MacOs Sonoma 14.5 (23F79)
andDocker Debian mcr.microsoft.com/dotnet/aspnet:8.0-bookworm-slim
I cannot connect to our Active Directory withSystem.DirectoryServices.Protocols 8.0.0
. I get an exception when callingStartTransportLayerSecurity(null)
. It works as soon, as I use version7.0.1
instead of8.0.0
.Reproduction Steps
MacOs
MacOs Sonoma 14.5 (23F79)
System.DirectoryServices.Protocols
package in version 8.0.0 in your projectDocker
System.DirectoryServices.Protocols
package in version 8.0.0 in your project5.1 Installing libldap-2.5-0
5.2 Installing libldap-2.5-0 and creating symbolic links (commented in dockerfile)
5.2 Without installing and linking
Expected behavior
I can connect to AD and no exception is thrown when "StartTransportLayerSecurity" method is called.
Actual behavior
MacOS
Exception is thrown when calling "StartTransportLayerSecurity" method:
Docker
When installing libldap 2.5 and linking it or not (5.1 and 5.2), I get basically the same error as on MacOs:
without installing I get the following:
Regression?
Works with
System.DirectoryServices.Protocols 7.0.1
Known Workarounds
Using v 7.0.1
Configuration
MacOs Sonoma 14.5 (23F79)
on arm64 with .Net v8.0.403Docker Debian mcr.microsoft.com/dotnet/aspnet:8.0-bookworm-slim
, running as x64 on MacOs arm64 HostSystem.DirectoryServices.Protocols 8.0.0
Other information
The text was updated successfully, but these errors were encountered: