Re: security

From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 12/15/04


Date: Wed, 15 Dec 2004 18:26:29 +0100


"ivang" <ivan_gavrilyuk@hotmail.com> wrote in message
news:u4YYuur4EHA.1452@TK2MSFTNGP11.phx.gbl...
> Hello, Willy!
> You wrote on Wed, 15 Dec 2004 14:15:38 +0100:
>
> WDM> No they dont, but if you specify the correct logontype when calling
> WDM> LogonUser (NETWORK_CLEARTEXT) you will get a direct token with
> network
> WDM> access privileges!
> Will this api work under asp.net process account on windows servers lower
> than 2003?
>
*** No, on W2K "LogonUser" can only be called by users having "Act as part
of the Operating System" privilege, by default only SYSTEM has this
privilege is, that means asp.net should run as "Localsystem" .
This restriction does not exists any longer on XP and higher.

> WDM> If you're like me and don't like impersonation, you simply have to
> WDM> establish a network logon session (use record) using the "net use"
> WDM> command (from the command line a logon script), or by calling Win32
> WDM> API NetUseAdd through PInvoke.
> I'm not sure this will be fast enough to map different network share for
> each function call :(
*** You shouldn't use this from asp.net, use impersonation instead.

See inline ***

Willy.



Relevant Pages

  • RE: Desktop Support Access
    ... Level 1 is the default user EXEC privilege, ... Subject: Desktop Support Access ... Better Management for Network Security ...
    (Security-Basics)
  • RE: custom privileges
    ... Windows API does have such API for creating customized ... Can you tell me why do you want to customize a privilege for user accounts? ... Microsoft Online Community Support ...
    (microsoft.public.platformsdk.security)
  • Re: Privilege-escalation attacks on NT-based Windows are unfixable
    ... language that made it difficult for programmers to get around the ... then complaining that it doesn't protect you from all your mistakes. ... powerful API for communications between applications. ... with great privilege comes great responsibility). ...
    (comp.security.misc)
  • Re: Privilege-escalation attacks on NT-based Windows are unfixable
    ... language that made it difficult for programmers to get around the ... then complaining that it doesn't protect you from all your mistakes. ... powerful API for communications between applications. ... with great privilege comes great responsibility). ...
    (comp.os.ms-windows.nt.admin.security)
  • Re: Least User Priviledges for Network Administrators
    ... While implementing the principle of least privilege is a noble goal I think ... network, disable Windows Updates because they read somewhere it would slow ... users that need administrator access to logon as a regular user and then use ... administrative rights. ...
    (microsoft.public.windowsxp.security_admin)