Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check Password against Active Directory Policy [duplicate]

I have a frontend which allows the User to change it's AD Password.

  1. Is there a Way to get the password policy (for example fine grained) for a specific user and its properties (Length, Complexity...)

  2. Is there a Way to check the string "xyz121" against this specific policy?

EDIT: I don't want to check against the current password stored in the active directory. I want to check if the new password would could be safed into active directory. For Example: User types in his NEW password "xyz121" and wants to change it but active directory just allows passwords with at least 8 chars.

like image 747
mabstrei Avatar asked Feb 25 '13 13:02

mabstrei


People also ask

Is there a way to see Active Directory passwords?

Yes, you can check the Last Password Changed information for a user account in AD. The information for the last password changed is stored in an attribute called “PwdLastSet”. You can check the value of “PwdLastSet” using the Microsoft “ADSI Edit” tool.

How do I find my GPO password policy?

Right click on the domain and select properties. Select the Group Policy tab. Select the domain group policy object and select Edit. Expand the 'Computer Configuration' branch - 'Windows Settings' - 'Security Settings' - 'Account Policies' - 'Password Policy'

How do you check if fine grained password policy is applied?

To confirm which fine-grained policy is applied to a user, search for them in the Global Search in the Active Directory Administrative Center then choose 'view resultant password settings' from the tasks menu.


1 Answers

Trailing through SO and google came up with this - http://blogs.msdn.com/b/david_leblanc/archive/2007/10/11/checking-password-complexity.aspx

Started from this SO post - Determine AD password policy programmatically

Which led to this SO answer - https://stackoverflow.com/a/10549823/416574

which led to that above blog post. Hope that helps.

(Feel free to not upvote, this just seemed like too much text for a comment, but really no work here but googling).

like image 168
pstrjds Avatar answered Nov 15 '22 14:11

pstrjds