LogonUser

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Gabi (Gabi_at_discussions.microsoft.com)
Date: 06/28/04


Date: Mon, 28 Jun 2004 03:14:01 -0700


 Hi all,
im trying to use LogonUser as:

        SuFail = LogonUser("39664",
                               "domainname",
                                   "passwd",
                                    LOGON32_LOGON_INTERACTIVE,
                                    LOGON32_PROVIDER_DEFAULT,
                                    &HToken);

all the time i got the following error 0x522
"A required privilege is not held by the client."

im logging to myself and im sure i have all the privalage.

what can be the reason???
if you have your example ill be glad to see it.

Thanks



Relevant Pages

  • LogonUser
    ... im trying to use LogonUser as: ... "A required privilege is not held by the client." ... im logging to myself and im sure i have all the privalage. ...
    (microsoft.public.vc.mfc)
  • RE: LogonUser in XP Workgroup Environments
    ... If you have a machine A (workgroup) and B, calling LogonUser on the ... for a client and would like to impersonate that client. ... Do I need to enable some other auditing? ...
    (microsoft.public.platformsdk.security)
  • cache credential update
    ... LogonUser() does the job, but the problem is that the uplink from the client ... to the server/dc is very slow, hence either the DNS/KRB5 request timeout on ... credential when there is a password change/expired password. ...
    (microsoft.public.platformsdk.security)
  • Error with secedit.exe
    ... I have a Windows 2000 network and most of Workstations ... running Window 2000 with SP3. ... A required privilege is not held by the client. ...
    (microsoft.public.win2000.security)
  • Re: How to create a process with admin privilege?
    ... ImpersonateLoggedOnUser(), but on my test machine (Win2000 ... Prof) LogonUser() always failed with "A required privilege ...
    (microsoft.public.win32.programmer.kernel)