|
-
April 21st, 2006, 04:44 AM
#1
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
-
April 21st, 2006, 05:02 AM
#2
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.
-
April 21st, 2006, 06:05 AM
#3
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
-
April 22nd, 2006, 10:08 AM
#4
Re: How to Verify / Identify a user is Valid
 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
-
April 22nd, 2006, 10:14 AM
#5
Re: How to Verify / Identify a user is Valid
 Originally Posted by Sef
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.
-
April 25th, 2006, 06:07 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|