[Linux] DirectoryServices.Protocols does not connect to AD-Server #102310
Labels
area-System.DirectoryServices
needs-author-action
An issue or pull request that requires more info or actions from the author.
Hello dear Developers
Im made a Microservice, which should update/insert User data in the AD.
To be able to do this, I need to establish a connection. You can see my code below (it works successfully on windows, but fails on linux docker container):
csproj:
The Microservice should run in a Linux container with Ubuntu 22.04 (mcr.microsoft.com/dotnet/aspnet:6.0-jammy).
I have used 6.0.27 DirectoryService.Protocols cause it was one of a few version which are not throwing an Error that it couldn´t find the Version.
I applied many known workarounds for the linux problem.
For example:
or applied the workaround from https://stackoverflow.com/questions/77109472/c-sharp-how-to-connect-to-ldap-ad-dc-server-using-ssl-or-tls-from-linux-ubuntu
which states that you should:
When my code execution hits LdapDirectoryIdentifier then the following error will be thrown:
"System.DirectoryServices.Protocols is not supported on this platfrom"
Overview:
DirectoryService.Protocols Version: 6.0.27
.Net Framework Version: net6.0
Ubuntu: 22.04
The text was updated successfully, but these errors were encountered: