You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running Test-IsAdUserPasswordCompromised on a system with "System cryptography: Use FIPS compliant algorithms for encryption, hashing, and signing" option enabled produces this error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
at System.Security.Cryptography.MD5CryptoServiceProvider..ctor()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
at System.Security.Cryptography.MD5.Create()
at DSInternals.Common.Cryptography.DirectorySecretDecryptor.ComputeMD5(Byte[] key, Byte[] salt, Int32 saltHashRounds)
at DSInternals.Replication.ReplicationSecretDecryptor.DecryptSecret(Byte[] blob)
at DSInternals.Common.Data.DSAccount.LoadHashes(DirectoryObject dsObject, DirectorySecretDecryptor pek)
at DSInternals.Replication.DirectoryReplicationClient.GetAccount(Guid objectGuid)
at Lithnet.ActiveDirectory.PasswordProtection.PowerShell.TestIsADUserPasswordCompromised.ProcessRecord() in D:\github\lithnet\ad-password-protection\src\PasswordProtectionPS\TestIsADUserPasswordCompromised.cs:line 55
at System.Management.Automation.CommandProcessor.ProcessRecord()
As this cannot be fixed in your code, I propose to unwrap TargetInvocationException in ProcessRecord() to make the cause for the error more visible.
The text was updated successfully, but these errors were encountered:
Running Test-IsAdUserPasswordCompromised on a system with "System cryptography: Use FIPS compliant algorithms for encryption, hashing, and signing" option enabled produces this error:
As this cannot be fixed in your code, I propose to unwrap TargetInvocationException in ProcessRecord() to make the cause for the error more visible.
The text was updated successfully, but these errors were encountered: