No matter what I'm trying to throw at it, this method here always results in the following exception: var retVal = this.DirectoryEntry.Invoke("ChangePassword", new object[] { oldPassword, newPassword }) == null; InnerException = {"The password does not meet the password policy requirements. Check the minimum password length, password complexity and password [...] read more
Im trying to get the following code to work, problem is, sometimes it does, sometimes it doesnt. when it fails it gives the error 0x800704F1 "the system cannot contact a domain controller to service the authentication request" I'd say about 90% of the time it fails. I have tried giving [...] read more
I have a webapp that uses Forms Authentication using ActiveDirectoryMembershipProvider. That works fine... users can do login successfully. Once the user do login, he can change the password. We use a ChangePassword control that retrieve the Membership information and uses the OLD and new password to change the user's password. [...] read more
I'm trying to give my SharePoint 2010 users to change their AD passwords using the following C# on an application page (.aspx): using (HostingEnvironment.Impersonate()) { ctx = new PrincipalContext(ContextType.Domain); user = UserPrincipal.FindByIdentity(ctx, IdentityType.SamAccountName, userName); if (user != null) { user.ChangePassword(oldPw, newPw); user.Save(); } } Which works fine on my development [...] read more
Installing Azure AD Connect 1.1.647.0 in express or custom mode fails with the following error: The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements. (Exception from HRESULT: 0x800708C5) enter image description here [https://i.stack.imgur.com/Zpbhl.png] This error prompts when the AADC [...] read more
I have a password reset page that I created for my employees and for the UserPrincipal object, I perform the following: UserPrincipal user = Helpers.LDAPHelper.GetUserPrincipal(model.EmailAddress); string temporary = Membership.GeneratePassword(12, 4); user.SetPassword(temporary); user.ChangePassword(temporary, model.ConfirmPassword); The user.SetPassword call works fine, but does not trigger that the password has changed, so any password [...] read more
I need to set up a couple of users on our domain but they need to have 6 character passwords (apparently using 7 would be just too much hassle and unfortunately due to their positions its not a battle the IT dept are going to win) We are using server [...] read more
I'm using ActiveDirectoryMembershipProvider in an ASP.Net Application that allows users to manage their AD accounts (Create, Change Password, etc..). The problem is, When I try to reset the password using UserPrincipal.ChangePassword() method, it throws the following exception although there are no password policies specified on AD level: > {"The password [...] read more