2

我目前正在处理 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;
    }
}

在这段代码中,我的连接LdapConnection来自DirectoryServices库。我想Novell.Directory.Ldap.LdapConnection改用。当我这样做时,该AuthType属性不存在,该属性也不存在SessionOptions

谢谢你的帮助 !

4

0 回答 0