現在、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
。
ご協力いただきありがとうございます !