I am developing an application based on .net core (2.2.103) which must connect to an LDAP server. On my development machine running Windows, I used the System.DirectoryServices namespace to do so.
However, the application will have to run on Linux (Ubuntu) and I got a PlatformNotSupportedException, so I added a reference to
<PackageReference Include="Novell.Directory.Ldap" Version="2.2.1" /> and used that.
Unfortunately, this throws another PlatformNotSupportedException (but because of Thread abort) when the Connection is disposed:
Unhandled Exception: System.PlatformNotSupportedException: Thread abort is not supported on this platform.
at System.Threading.Thread.Abort()
at Novell.Directory.Ldap.Connection.Dispose(Boolean disposing, String reason, Int32 semaphoreId, InterThreadException notifyUser)
at Novell.Directory.Ldap.Connection.destroyClone(Boolean apiCall)
at Novell.Directory.Ldap.LdapConnection.Finalize()
Is there any reliable LDAP implementation for dotnet core on Linux?