Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2007

Tip: Looking for answers? Try searching our database.

connecting to a cifs or windows share on a nas device using a specific username and password

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carl - 27 Dec 2007 20:33 GMT
In ASP.Net, how can we connect to a nas that uses cifs for its file
sharing protocol.  Currently we should be able to provide the ip address
or hostname of the nas, the sharename along with any directories to go
directly into that sharename, and the username and password.  This
username and password will not be on the server hosting the asp.net
pages from the local usernames and password.

Currently we can only try to impersonate a local username and password
that is already on the local server.  What we want to do is normally
when trying to connect to a windows share, it tries your normal username
and password, and if that doesn't work, it asks for a username and
password.  Rather we want to be able to access it by telling it what
username and password to use like you can with mounting a drive letter.

The server is windows 2003.  The nas might also be part of a domain, but
if it's not and we can only put in just the username instead of the
domainname/username, that's fine too.

It is the dotnet 2.0 framework we are using here.  We'd rather not use
3.0 right now.
Alvin Bruney [MVP] - 31 Dec 2007 02:17 GMT
Why post to so many newsgroups? One approach is to create an account that
has the necessary permissions and then impersonate that from your Web page.

Signature

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99

> In ASP.Net, how can we connect to a nas that uses cifs for its file
> sharing protocol.  Currently we should be able to provide the ip address
[quoted text clipped - 16 lines]
> It is the dotnet 2.0 framework we are using here.  We'd rather not use 3.0
> right now.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.