win32net.NetValidatePasswordPolicy
NetValidatePasswordPolicy(Server, Qualifier, ValidationType, arg)
Allows an application to check
password compliance against an application-provided account database and
verify that passwords meet the complexity, aging, minimum length, and
history reuse requirements of a password policy.
Parameters
Server : string/PyUnicode
Name of server on which to execute (None or blank uses local)Qualifier : None
Reserved, must be NoneValidationType : int
The type of password validation to performarg : dict/tuple
Depends on the ValidationType param - either
a PyNET_VALIDATE_AUTHENTICATION_INPUT_ARG, PyNET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG
or PyNET_VALIDATE_PASSWORD_RESET_INPUT_ARG
tuple or dict.Comments
Will raise NotImplementedError if not available on this platform, or
raise win32net.error if the function fails.
Return Value
Returns a tuple of (PyNET_VALIDATE_PERSISTED_FIELDS, int) with
the integer being the ValidationResult.