Re: Send Login Info

From: Jelle Druyts (noreply_at_dummy.org)
Date: 03/28/04


Date: Sun, 28 Mar 2004 09:01:00 +0200

You can impersonate another user through unmanaged Win32 calls, take a look
at http://www.thecodeproject.com/csharp/cpimpersonation1.asp for more
information on that.

Another option (but I haven't tried that) could be to launch a WebRequest
for the file on the server. You can pass credentials with that, but I don't
know if it will work without a webserver.

Hope that helps,

-- 
Jelle Druyts - .NET consultant & trainer
http://jelledruyts.homeip.net
"Terry Olsen" <tolsen64@hotmail.com> wrote in message
news:ux6dpbHFEHA.1368@TK2MSFTNGP11.phx.gbl...
> I want to log to a default admin share on a server.  The user running the
> app doesn't have admin rights, but my program needs to grab files from
say,
> \\server\d$\tmp.  How can I send admin credentials so that my app can get
> the files it needs?  I'll need to send UserName, Password, and DomainName.
>
> Thanks!
>
>


Relevant Pages

  • Send Login Info
    ... I want to log to a default admin share on a server. ... app doesn't have admin rights, but my program needs to grab files from say, ... How can I send admin credentials so that my app can get ...
    (microsoft.public.dotnet.languages.vb)
  • Re: XP & W2K server User rights need help
    ... before did not install the apps as admin. ... >behaved app. ... >> server non of the users had accounts only the computers ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Administrator Logon to 1 DC only
    ... Okay, no, I am past the limiting admin privileges.... ... Over the weekend I am going to create another DC on VMware Server and then ... app on the DC i.e. making them members of the Builtin administrators group. ... leaving 3rd party app on its own or vice versa. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Manifests and requestedExecutionLevel
    ... The existing app is a single executable, ... Since you already have the small .exe running, ... And Admin user priviledge is High MIC. ... The manifest has the capability of telling Vista that it needs to be started ...
    (microsoft.public.vc.mfc)
  • Re: BYPASS privilege !!
    ... demarkation between OS Admins and App Admins, ... less simple to stop a Sys Admin from messing with the App (again, ... under/over/around/through the same security. ... Equally obvious, to a user with BYPASS privilege, it matters not how ...
    (comp.os.vms)