CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2004
    Posts
    8

    How to get "password policy requirement"?

    How to get "password policy requirement" for local computer, not for domain?
    Can anybody help?

  2. #2
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537

    Re: How to get "password policy requirement"?

    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.

  3. #3
    Join Date
    Jan 2004
    Posts
    8
    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

  4. #4
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537
    http://msdn.microsoft.com/library/de...wordpolicy.asp

    NetValidatePasswordPolicy(...) ???

  5. #5
    Join Date
    Jan 2004
    Posts
    8

    Requires Windows Server 2003 ((:

    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

  6. #6
    Join Date
    Jun 2003
    Location
    Heck-:D-Hokkaido.
    Posts
    47
    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
    PHP Code:
    if (str.size()<MinPasswordLength(MySir)){ 
        
    std::cout<<"Short Password"<<std::endl
        
    MySir YourSir;
        } 
    and the other one, I don't know 

    Regards,

    -Vu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured