Kod tarafında önce şifre set edilip sonra domain user enable yapılmalıdır.
Örnek yazım:
newUserObject.Invoke("setPassword", pUserPassword);
newUserObject.CommitChanges();
newUserObject.Properties["userAccountControl"].Value = 0x0200;
newUserObject.CommitChanges();
Ayrıca:
A System.Runtime.InteropServices.COMException exception with ErrorCode 0x80072035 "Unwilling to perform" generally means that an LDAP password modification failed due to a password policy issue.
Kaynak:
http://www.informit.com/articles/article.aspx?p=474649&seqNum=4
http://en.csharp-online.net/User_Management_with_Active_Directory%E2%80%94How_Password_Modification_Dates_Are_Stored
http://www.rshelby.com/post/security-policies-and-password-complexity.aspx
http://www.rshelby.com/post/active-directory-manager-object.aspx
A System.Runtime.InteropServices.COMException exception with ErrorCode 0x80072035 "Unwilling to perform" generally means that an LDAP password modification failed due to a password policy issue.
Kaynak:
http://www.informit.com/articles/article.aspx?p=474649&seqNum=4
http://en.csharp-online.net/User_Management_with_Active_Directory%E2%80%94How_Password_Modification_Dates_Are_Stored
http://www.rshelby.com/post/security-policies-and-password-complexity.aspx
http://www.rshelby.com/post/active-directory-manager-object.aspx
Hiç yorum yok:
Yorum Gönder