CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2005
    Location
    Chennai,India
    Posts
    136

    Arrow How to Verify / Identify a user is Valid

    Dear Gurus,

    I would like to verify or identify the user is valid or not. For that I moved on to LogonUser () Function. Its working fine for some logon but for some logon it says Error No: 1314 (Privilege Problem).

    I dont know how to solve it, could any one help me how to solve this. My next question is that, is there any other way to verify that the user is valid or not.

    Let me know if u need some more information

  2. #2
    Join Date
    Jun 2005
    Posts
    1,255

    Smile Re: How to Verify / Identify a user is Valid

    You could have a list of valid users in a file or in a database and look up if the userID is in that file or table.

  3. #3
    Join Date
    Aug 2005
    Location
    Chennai,India
    Posts
    136

    Arrow Re: How to Verify / Identify a user is Valid

    I can't get you what you are saying.

    Let me explain it clearly. I had developed an application which can be accessible only by valid users.

    To test the user is valid or not. I need some api for that i prefer LogonUser() API, which authenticate some user correctly.

    While authenticating it says Error No:1314 for some other user. What might be problem?

    Is there any other way to authenticate the user is valid or not.

    Let me know if u need some more information

  4. #4
    Join Date
    Aug 1999
    Posts
    586

    Re: How to Verify / Identify a user is Valid

    Quote Originally Posted by Revolution
    I can't get you what you are saying.

    Let me explain it clearly. I had developed an application which can be accessible only by valid users.

    To test the user is valid or not. I need some api for that i prefer LogQ180548
    onUser() API, which authenticate some user correctly.

    While authenticating it says Error No:1314 for some other user. What might be problem?

    Is there any other way to authenticate the user is valid or not.

    Let me know if u need some more information
    On Win2000 or NT you need the SE_TCB_NAME privilege. See KB article 180548 for another way to do it (no special privileges required):
    http://support.microsoft.com/default...b;EN-US;180548

  5. #5
    Join Date
    Aug 1999
    Posts
    586

    Re: How to Verify / Identify a user is Valid

    Quote Originally Posted by Sef
    On Win2000 or NT you need the SE_TCB_NAME privilege. See KB article 180548 for another way to do it (no special privileges required):
    http://support.microsoft.com/default...b;EN-US;180548
    Sorry, didn't realize you already cited that article. If you're experiencing the problem on WinXP or Win2003 then it may be a Windows bug.

  6. #6
    Join Date
    Nov 2004
    Posts
    28

    Re: How to Verify / Identify a user is Valid

    As its clearly mentioned in documentation of LogonUser.... the application must be runs under Administrative privileges.

    As per my experience if your application runs under local Admin / NT system user then it will work fine and i had tried it very well.

    Reply if you get your solution or feel free to ask for furthur query.

    Thanks...

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