IIS 基本身份验证和 Active Directory
我试图弄清楚在选择基本身份验证时如何在 IIS 中设置默认域。我有一个 LDAP 字符串,但我对如何从中提取设置默认域设置所需的信息一无所知。
当我以编程方式连接到 Active Directory 时,我使用以下字符串:
DirectoryEntry _entry = new DirectoryEntry ("LDAP://xx.xx.xx.xx/CN=Users,DC=dc1,DC=dc2,DC=dc3", "用户”、“密码”);
对于 IIS 中的默认域设置,我需要从该字符串中提取哪些信息?
任何帮助将不胜感激。谢谢。
I am trying to figure out how to set the default domain in IIS when choosing basic authentication. I have an LDAP string but I'm quite clueless as to how to extract the information I need from it for setting the default domain setting.
When I programatically connect to an Active directory I use the string:
DirectoryEntry _entry = new DirectoryEntry ("LDAP://xx.xx.xx.xx/CN=Users,DC=dc1,DC=dc2,DC=dc3", "user", "password");
What information do I need to pull from this string for the default domain setting in IIS?
Any help would be appreciated. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您提供的(经过清理的)LDAP 字符串猜测,您的 Windows Active Directory 域将类似于 dc1.dc2.dc3 - 假设如果 dc1 是“site”,dc2 是“company”,dc3 是“net”,那么该域是“site.company.net”。
或者在命令提示符下输入
echo %USERDNSDOMAIN%
并看到相同的内容。Guessing from the (sanitized) LDAP string you gave, your Windows Active Directory domain would be like dc1.dc2.dc3--say if dc1 is "site", dc2 is "company", and dc3 is "net" then the domain is "site.company.net".
Or on a command prompt you could type
echo %USERDNSDOMAIN%
and see the same thing.