Security Error LogonUser

G

Guest

I use LogonUser for user authentication against AD. When I run this in XP is
works fine. But it gives me a Win32 Error 1314 (ERROR_PRIVILEGE_NOT_HELD) in
Win 2000. Any idea why and how do I solve it?
 
F

Frank Hickman [MVP]

Sajid said:
I use LogonUser for user authentication against AD. When I run this in XP
is
works fine. But it gives me a Win32 Error 1314 (ERROR_PRIVILEGE_NOT_HELD)
in
Win 2000. Any idea why and how do I solve it?

From the online help:

Windows 2000: The process calling LogonUser requires the SE_TCB_NAME
privilege. If the calling process does not have this privilege, LogonUser
fails and GetLastError returns ERROR_PRIVILEGE_NOT_HELD. In some cases, the
process that calls LogonUser must also have the SE_CHANGE_NOTIFY_NAME
privilege enabled; otherwise, LogonUser fails and GetLastError returns
ERROR_ACCESS_DENIED. This privilege is not required for the local system
account or accounts that are members of the administrators group. By
default, SE_CHANGE_NOTIFY_NAME is enabled for all users, but some
administrators may disable it for everyone. For more information about
privileges, see Privileges.

--
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top