我需要在.NET Core应用程序中使用AD执行Basic Auth . 以前我使用System.DirectoryServices.AccountManagement和System.DirectoryServices.Protocols进行AD身份验证 . 但我们将在Linux环境中托管AWS上的应用程序 .
在浏览了一些博客后,我正在尝试使用Novell.Directory.Ldap.Standard进行AD集成 .
我使用了以下代码:

using (var connection = new LdapConnection())
                {
                   // connection.SecureSocketLayer = true;
                  connection.Connect(myip,80);
                    connection.Bind("111@mydomain.com", password);
                    if (connection.Bound)
                        return true;
                }

我能够执行line connction.Connect . 但在线路连接之后 . 绑定抛出错误:

{LdapException:连接丢失等待111.22.33.3:80的结果(91)连接错误System.IO.EndOfStreamException:BERDecoder:解码:Novell.Directory.Ldap.Asn1.Asn1Identifier..ctor(Stream in_Renamed)中的标识符中的EOF在Novell.Directory.Ldap.Connection.ReaderThread.Run()}

可能是什么问题?我在Bind方法中传递了用户名和密码 . 还有什么需要通过吗? .Net核心是否也有在Linux / Unix环境中支持AD / Ldap的特定库?