【发布时间】:2020-09-15 09:12:06
【问题描述】:
我正在使用创建目录条目对象
System.DirectoryServices.DirectoryEntry dirEntry = new System.DirectoryServices.DirectoryEntry(path,
null, null, System.DirectoryServices.AuthenticationTypes.Sealing))
它给了我警告:The Secure flag must also be set to use sealing.
我需要做什么 ?我可以通过使用来抑制上述警告
#pragma warning disable S4433 // LDAP connections should be authenticated
你能解释一下我错过了什么吗? 请注意,我使用 AuthenticationTypes.Sealing 是因为我想从性能角度在一次提交中创建和设置 AD 中的用户密码。
请解释一下。
【问题讨论】:
标签: c# authentication active-directory directoryentry