.net core 如何使用DirectoryServices.Protocols.AuthType库并与Novell协商AuthType?

.net core 如何使用DirectoryServices.Protocols.AuthType库并与Novell协商AuthType?,.net-core,ldap,directoryservices,sasl,novell,.net Core,Ldap,Directoryservices,Sasl,Novell,我目前正在处理LDAP连接。 代码使用的是DirectoryServices库,我只想使用Novell库。我已经用正确的请求和连接替换了所有请求和连接。 现在我陷入困境,因为我现在不知道如何定义我的身份验证类型。我特别希望使用“协商”身份验证协议 以下是我想改变的一个例子: using (var connection = new LdapConnection(identifier, credential, AuthMethod)) { connection.SessionOptions.

我目前正在处理LDAP连接。 代码使用的是
DirectoryServices
库,我只想使用Novell库。我已经用正确的请求和连接替换了所有请求和连接。 现在我陷入困境,因为我现在不知道如何定义我的身份验证类型。我特别希望使用“协商”身份验证协议

以下是我想改变的一个例子:

using (var connection = new LdapConnection(identifier, credential, AuthMethod))
{
    connection.SessionOptions.ProtocolVersion = 3;
    if (!NoSigning && ((AuthMethod == AuthType.Kerberos) || (AuthMethod == AuthType.Negotiate)))
    {
        connection.SessionOptions.Sealing = true;
        connection.SessionOptions.Signing = true;
    }
}
在这段代码中,我的连接是来自
DirectoryServices
库的
LdapConnection
。我想改用
Novell.Directory.Ldap.LdapConnection
。 执行此操作时,
AuthType
属性不存在,
SessionOptions
属性也不存在

谢谢你的帮助