.net-core - 如何使用 DirectoryServices.Protocols.AuthType 库并与 Novell 协商 AuthType?
问题描述
我目前正在处理 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
。
谢谢你的帮助 !
解决方案
推荐阅读
- javascript - 画布:clearRect() 不清除 drawImage()
- css - 使用 Play Framework org.webjars 时如何在 Foundation 中定义自定义主题
- javascript - 如何仅选择 for 循环中使用的奇数或偶数变量?
- scala - 如何使用 ScalaCheck 生成两个相同大小的集合
- c - 8051 MCU 的嵌入式 C 编程问题
- android - Xamarin Forms android标签页自定义渲染器不同颜色
- scala - 如何从文本文件中的单词创建元音组合图
- mysql - 从两个以上的表中检索数据
- python - 使用内部连接的python mysql更新
- r - 用 ggmap 和 geom_path 绘制街道