Re: security
From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 12/15/04
- Next message: thechaosengine: "Should I return an int or an enum?"
- Previous message: sunstarwu_at_yahoo.com: "View Excel Data in DropDownList"
- In reply to: ivang: "Re: security"
- Next in thread: ivang: "Re: security"
- Reply: ivang: "Re: security"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Dec 2004 14:15:38 +0100
"ivang" <ivan_gavrilyuk@hotmail.com> wrote in message
news:eadMWRq4EHA.3864@TK2MSFTNGP15.phx.gbl...
> Hello, Willy!
>
> Thanks for reply.
>
> Yes, it's file server. But i can't check access using file access
> functions,
> this doesn't work when I use impersonation feature (impersonated tokens
> doesn't have access to network shares at all).
No they dont, but if you specify the correct logontype when calling
LogonUser (NETWORK_CLEARTEXT) you will get a direct token with network
access privileges!
If you're like me and don't like impersonation, you simply have to establish
a network logon session (use record) using the "net use" command (from the
command line a logon script), or by calling Win32 API NetUseAdd through
PInvoke.
Willy.
- Next message: thechaosengine: "Should I return an int or an enum?"
- Previous message: sunstarwu_at_yahoo.com: "View Excel Data in DropDownList"
- In reply to: ivang: "Re: security"
- Next in thread: ivang: "Re: security"
- Reply: ivang: "Re: security"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|