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