Click to See Complete Forum and Search --> : How to get "password policy requirement"?


Aleksan
January 20th, 2004, 03:49 AM
How to get "password policy requirement" for local computer, not for domain?
Can anybody help?

Mick
January 20th, 2004, 04:09 AM
Originally posted by Aleksan
How to get "password policy requirement" for local computer, not for domain?
Can anybody help?

NetQueryDisplayInformation(...) passing level 2 for NET_DISPLAY_MACHINE and null for the local computer name. You can look it up on msdn.microsoft.com

if I understand what you want correctly.

there may be an active directory equiv also.

Aleksan
January 20th, 2004, 04:37 AM
It is not exactly what i want to known.
I need

MinPasswordLength and PASSWORD_COMPLEX information
................................................
PASSWORD_COMPLEX:
The password must have a mix of at least two of the following types of characters:
- Upper case characters
- Lower case characters
- Numerals

Mick
January 20th, 2004, 04:48 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netvalidatepasswordpolicy.asp

NetValidatePasswordPolicy(...) ???

Aleksan
January 20th, 2004, 04:57 AM
This function for Windows Server 2003.

...............................................
Requirements

Server: Requires Windows Server 2003.
Header: Declared in Lmaccess.h; include Lm.h.
Library: Use Netapi32.lib.
...............................................................

I need for Windows 2000 and Windows XP

VuQ_Le
January 22nd, 2004, 06:55 AM
Originally posted by Aleksan
It is not exactly what i want to known.
I need

MinPasswordLength and PASSWORD_COMPLEX information
................................................
PASSWORD_COMPLEX:
The password must have a mix of at least two of the following types of characters:
- Upper case characters
- Lower case characters
- Numerals
If this is what you're looking for,
I think MinPasswordLength is a server object's property
that specifies the minimum allowable password length
if (str.size()<MinPasswordLength(MySir)){
std::cout<<"Short Password"<<std::endl;
MySir = YourSir;
}
and the other one, I don't know :)

Regards,

-Vu