Accessing a network share with a non-domain account

L

lf

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.
 
D

Dominick Baier [DevelopMentor]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top