programmatically reading password policy or check the complexity?

Tech-Archive recommends: Speed Up your PC by fixing your registry



My project (written by c++) has a requirement that it needs to check the
password complexity before create the new account
I searched out the msdn and google, and got some findings, but none is the
perfect
1. RSOP_SecuritySettingNumeric and RSOP_SecuritySettingBoolean
it gets the password policy and works well on the system which is in a
domain, but it does not work in a workgroup
2. NetValidPasswordPolicy
it checks whether the password meet the complexity according to the
"password policy" and works well in 2003 server and vista, but it does not
work on XP

But there is no way to read the password policy or check the password
complexity on both domain/workgroup, or on both xp and vista.

Anybody has any idea on this issue?


--
river
.



Relevant Pages

  • Re: Password Policy Issue
    ... I have no complaints w/ security and the password complexity to enhance ... > The password policy can only be set at the domain level, ... >> Max password age 365 ... >> The password does not meet the password policy requirements. ...
    (microsoft.public.windows.server.active_directory)
  • Re: using dsadd remotely
    ... The problem with W2K3 is the password policy... ... Change password policy, or change your password to make it meet the ... complexity requirments of W2K3... ...
    (microsoft.public.windows.server.active_directory)
  • Re: programmatically reading password policy or check the complexi
    ... I think I sent you down the wrong path with the LSA APIs. ... I don't see one there that will get you whether or not password complexity is enabled. ... I searched out the Lsa* APIs, but i am not sure which one is what i need. ... I also have another solution to find out the password policy, ...
    (microsoft.public.windows.server.active_directory)
  • Re: Unable to create user after promote Windows 2003 Server DC
    ... but i have changed the password policy ... under the domain level, how come it doesn't change, what ... Regards ... >Does you password meet the password complexity ...
    (microsoft.public.windows.server.general)
  • Re: Security Risks on XPSP2 up to date
    ... to see effective password/account policy other than complexity. ... does give guidelines on password policy in the Threats and Countermeasures ... Microsoft articles on that subject. ...
    (microsoft.public.windowsxp.security_admin)