Re: Accessing a network share with a non-domain account



call LogonUser with the NEW_CREDENTIAL option - you can pass in the username/password on the account on the target machine. Then impersonate and access the resource. Credentials will be checked when you fo the remote access.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Hi,

I have an ASP.NET 2.0 application that is trying to access a shared
drive.

The shared drive requires a username and password. The username and
password correspond to a local account on the W2K3 server where the
drive is located.

I have been looking at using impersonation to try and access the
resource but it seems that this will only work for domain accounts.

I also cannot create the same user on the web server due to password
restrictions.

Any thoughts/ideas on how I can access this resource would be
appreciated.



.



Relevant Pages

  • Re: Uploading web service
    ... You can still impersonate, but use one account -- domain or local, which has ... > I am making a web service which accesses a shared directory on the netwoek ... > give the userName & password of an authenticated user, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: how to pass nt password ?
    ... > f) the logonuser fucntion requires username, ... > Hope this explains why i want to pass my "password" onto other machines to impersonate. ... Services can have their own credentials. ... So long as the account exists on the local machine, ...
    (microsoft.public.dotnet.languages.vb)
  • RE: cannot log on to user account following password change
    ... cannot log on to user account following password change ... I changed the username on the account in ... | on the sbs box. ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot import resource into enterprise - invalid windows account
    ... Using an account of administrator in PWA, ... the Enterprise Resource Pool. ... Enter at least, the resource name, windows account in the format ... Create a different set of users from User1, 2, etc to ...
    (microsoft.public.project.pro_and_server)
  • Re: ADFS Web Server retrieving incorrect User name from ADFS resource server
    ... resource account mapping? ... login process by changing the UPN mappings in the UPN claim configuration ... <Transform Algorithm="http://www.w3.org/2001/10/xml-exc- ...
    (microsoft.public.windows.server.active_directory)