我需要在SSL上配置AD,我正在尝试每一篇文章,因为这两天这个http://erlend.oftedal.no/blog/?blogid=7看起来是合理的,但是我不得不为证书授予AD实例读取权限。
这是官方文章,第一步真的很模糊,不知道该怎么做1
我正在使用Windows 2012 r2
发布于 2016-04-05 14:42:31
我首先配置了Enterprise,然后在这个页面上使用了指南
http://social.technet.microsoft.com/wiki/contents/articles/2980.ldap-over-ssl-ldaps-certificate.aspx#Reasons
按以下顺序排列
为什么我需要SSL上的ADLDS连接?
由于我希望用户更改他/她的ADLDS密码,使用PrincipalContext的非SSL连接不允许我这样做。所以现在我正在使用下面的代码,它的工作就像一种魅力。
PrincipalContext pc = new PrincipalContext(
ContextType.ApplicationDirectory,
"YourServerUrl:YourSSLPort",
"CN=YourPartitionName,DC=partition,DC=com",
ContextOptions.SimpleBind | ContextOptions.SecureSocketLayer,
"FullDistinguisedNameOfUser",
"PasswordOfUser");
bool IsUserValidated = pc.ValidateCredentials(
"FullDistinguisedNameOfUser",
"PasswordOfUser",
ContextOptions.SimpleBind | ContextOptions.SecureSocketLayer);
if (IsUserValidated)
{
UserPrincipal up = UserPrincipal.FindByIdentity(
"FullDistinguisedNameOfUser",
"PasswordOfUser");
up.ChangePassword("UserOldPassword", "UserNewPassword");
}https://stackoverflow.com/questions/36402069
复制相似问题