确认密码对Active Directory策略 [英] Check Password against Active Directory Policy
问题描述
我有一个前端,它允许用户更改它的AD密码。
I have a frontend which allows the User to change it's AD Password.
-
有没有一种方法来获取密码策略(例如细粒)为特定的用户和它的属性(长度,复杂...)
Is there a Way to get the password policy (for example fine grained) for a specific user and its properties (Length, Complexity...)
有没有一种方法来检查字符串xyz121针对这个具体的政策?
Is there a Way to check the string "xyz121" against this specific policy?
编辑: 我不想核对存储在Active Directory中的当前密码。 我要检查,如果新密码就可以萨法德到Active Directory。 例如:。在他的新密码xyz121用户类型和想改变它,但活动目录只允许使用的密码至少为8个字符
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.
推荐答案
尾随通过SO和谷歌想出了这一点 - 的http://blogs.msdn.com/b/david_leblanc/archive/2007/10/11/checking-password-complexity.aspx
Trailing through SO and google came up with this - http://blogs.msdn.com/b/david_leblanc/archive/2007/10/11/checking-password-complexity.aspx
开始从这个SO后 - <一个href="http://stackoverflow.com/questions/4992474/determine-ad-password-policy-programmatically">Determine AD密码策略编程
Started from this SO post - Determine AD password policy programmatically
而导致这种SO回答 - http://stackoverflow.com/a/10549823/416574
Which led to this SO answer - http://stackoverflow.com/a/10549823/416574
这导致了上述博客文章。希望有所帮助。
which led to that above blog post. Hope that helps.
(随时没有upvote,这只是似乎太多文本注释,但实际上这里没有工作,但谷歌搜索)。
(Feel free to not upvote, this just seemed like too much text for a comment, but really no work here but googling).
这篇关于确认密码对Active Directory策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!