Re: [Chris P.[MVP]] I can use Local System under I call API LogonUser(

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

From: Chris P. [MVP] (msdn_at_chrisnet.net)
Date: 08/28/04


Date: Sat, 28 Aug 2004 10:29:10 -0400

Teddy wrote:
> That mean I can run my application under "Local System" logon
> service, when I create a thread in my application and it call API
> LogonUser() first, then I can call WNetConnection2 successfully?

Yes. You must grant the Local System account the "Act as part of operating
system" right in the system policy editor if it is not already.



Relevant Pages

  • RE: Validating an NT password
    ... Note LogonUser Win32 API does not require TCB privilege in Microsoft ... const long LOGON32_LOGON_INTERACTIVE = 2; ... string lpszUsername, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: LogonUser problem...
    ... > combination of Username and Password for a user account, ... > Which API do you think is better? ... I have tried LogOnUser ... > in Interactive mode, it is pretty fast when compared to ...
    (microsoft.public.win2000.security)
  • Re: LogonUser fails with no password in W2k3
    ... > I have an application which authenticates users by using the username and password that the user enters and trying to validate the user by calling LogonUser() API. ... The only time it does not work is when a user account is created with no password in W2k3 (Windows Server 2003). ... I am surprised that W2k3 allows users to logon to windows without entering any password but if you try the same using the LogonUserAPI it fails. ...
    (microsoft.public.platformsdk.security)
  • Re: LogonUser()
    ... I tried this but the application seems to abend at the call to GetLastError, ... > You still need to call LogonUser() API to get the token in .NET. ...
    (microsoft.public.dotnet.security)