-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test-IsAdUserPasswordCompromised fails on an account with no password #10
Comments
@mickpoz sorry for the delay in getting back to you. Is this still a problem for you? If so, when the error occurs, could you send me the result from the following command
Immediately after the error condition |
Hi Ryan, System.NullReferenceException: Object reference not set to an instance of an object. |
@mickpoz thanks so much for getting back to me. I suspect it's choking on a user that has no password. I'll look into this further and confirm. |
Hi Ryan, The latest release fixed the error! However it isn't running for all users. It completes without error but the csv only has about a third of my users in there. Can confirm that they definitely do not have no passwords, my own account is in the list. |
That sounds like an issue enumerating the users in the domain. Are they all in the same domain? |
Hi Ryan, |
Looking into this further, the script only logs details for users who have a compromised password. If the user's password is not compromised, they are not added to the list. Could it be as simple as the gact that the 2/3 of users appearing in the list do not have passwords that are known to be compromised? |
I've copied the powershell script from here: https://github.com/lithnet/ad-password-protection/wiki/Audit-existing-passwords
I'm running it directly on the DC with a domain admin account.
I get the following output (this runs through the user list with the same result for every one):
WARNING: User Administrator has a null UPN
WARNING: User Guest has a null UPN
WARNING: User krbtgt has a null UPN
Test-IsADUserPasswordCompromised : Object reference not set to an instance of an object.
At C:\users\xxxx\Desktop\password_audit.ps1:31 char:15
IsADUserPasswordCompromised
The get-pwned-users.csv is created but there is nothing in the file except for the column headers.
I'm able to run the Test-IsADPasswordCompromised module directly from the command line, so thats working.
Thanks.
The text was updated successfully, but these errors were encountered: