Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access network shares through web?

Status
Not open for further replies.

atanoli

Technical User
Oct 28, 1999
156
PK
I have win2k server (myserver) with Active Directory. Another standalone server (printsrv), this is also my web server. I developed a site and hosted at (printsrv). Now I want to make a link at my site so that my Active Directory’s user can access their network drive which is located at (myserver) server.

I set windows authentication at my website (printsrv) and whenever a person will click that link it will ask for user name and password. Its all working fine. But now when I am programmatically going to access the share of user at (myserver) he is asking me for password and whatever password I am giving he is not authorizing me to access their network shares. Although I am giving my domain’s administrator password. Here is my code in c#:

string[] achDrives = Directory.GetDirectories("\\\\myserver\\username");

I am developing my site in ASP.Net. I have administrative rights.

How I can access my shares from domain controller server through web?

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top