I am running an ASP.NET application that changes a user's password. The PasswordException "The specified network password is not correct." is getting thrown every time the ChangePassword method is called, even when the current password has been validated. If I enter in an invalid current password, the exception gets thrown. [...] 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
We created the certificate request and the private key with openssl as follows req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key We sent the CSR out and after verification, we got back the spc file. Now I want to sign my code with signtool. Apparently, I need to generate [...] read more
I'm having some trouble getting a password protected PFX certificate to install through WiX. I'm using WiX 3.5.2519.0. I include a PFX file as follows: <Binary Id="My.Binary" SourceFile="$(var.ProjectDir)MyProject$(var.ConfigSuffix).pfx" /> The value of $(var.ConfigSuffix) varies based on solution configuration (e.g. " (Debug)", " (Stage)"). For "Release", it is set to an [...] read more
In windows cmd, I switched to the folder where the certificate is present and ran this command: certutil.exe -importpfx Root mitmproxy-ca-cert.p12 The output was: Enter PFX password: CertUtil: -importPFX command FAILED: 0x80070056 (WIN32: 86 ERROR_INVALID_PASSWORD) CertUtil: The specified network password is not correct. I had entered a random string of [...] read more
I have a button and it's click event run's through various validation code and then calls the method `ChangePassword', if you pass the validation. public void ChangePassword(string userName, string oldPassword, string newPassword) { try { new ApplusActiveDirectoryUtil().CheckParameter(ref userName, true, true, false, 21, "User Name"); DirectoryEntry userEntry = _directoryInfo.GetUserEntry(userName); userEntry.Invoke("ChangePassword", new [...] read more
I am trying to install a ssl certificate by using Import-PfxCertificate on my Windows2012 server, this is my script: $mypwd = ConvertTo-SecureString -String "$my!pa$$$word" -Force -AsPlainText Import-PfxCertificate -FilePath D:\Downloads\my-cert.pfx Cert:\LocalMachine\My -Password $mypwd After run it on my web server, following error reported: Import-PfxCertificate : The specified network password is not [...] read more
I have some C# code using System.DirectoryServices.AccountManagement that is used to allow a user to change their Active Directory user account password. It is currently using LDAP (:389) and I wanted to switch it to LDAPS (:636) for security purposes. However, when I switch to LDAPS the error messages returned [...] read more
I ma trying to create user on local system using following code: DirectoryEntry hostMachineDirectory = new DirectoryEntry("WinNT://localhost"); DirectoryEntries entries = hostMachineDirectory.Children; foreach (DirectoryEntry entry in entries) { if (entry.Name.Equals(userName, StringComparison.CurrentCultureIgnoreCase)) throw new Exception("User already exists"); } DirectoryEntry user = entries.Add(userName, "user"); user.Properties["FullName"].Add("Local user"); user.Properties["Description"].Add(description); user.Invoke("SetPassword", new object[] { password } [...] read more
I'm getting the error below, every once in a while, when I try to change the users password....not everytime, or even every 10 times.... it's only happening so far in our live produciton environment. the source is pretty straight forward, it's even in the stack trace ActiveDirectoryMembershipProvider.ChangePassword(String username, String oldPassword, [...] read more
I have 2 servers. SERVER 1: Linux server running Samba, that has a share called "Common". SERVER 2: Windows Server 2008. I created a GPO that maps drive R: to \\LINUXSERVER\Common. I set it to "Reconnect" and chose the "Create" option. I then run gpupdate /force. The client computer, after [...] read more