Storing a user's password

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm writing a program for a college to use to allow students to register their computers for use on the network. Aside from a bunch of security related checks I would like the program to offer to store the users network username and password so when they access network servers they are not prompted for their username every time. I can do it manually through the user accounts control panel -> Advanced Tab -> "Manage Passwords" button, but obviously that doesnt' work from within a C# program. Is there any way I can do this automatically?
 
Ask them for it once and then put them in isolated storage.

Look at the docs for System.IO.IsolatedStorage, particularly
<ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconusingisola
tedstorage.htm>

(watch for the link break)

But there's no way to actually obtain the user's password unless he/she
gives it to you.

--
Klaus H. Probst, MVP
http://www.vbbox.com/


Jefferson Cowart said:
I'm writing a program for a college to use to allow students to register
their computers for use on the network. Aside from a bunch of security
related checks I would like the program to offer to store the users network
username and password so when they access network servers they are not
prompted for their username every time. I can do it manually through the
user accounts control panel -> Advanced Tab -> "Manage Passwords" button,
but obviously that doesnt' work from within a C# program. Is there any way I
can do this automatically?
 
That gets me part way there. It will let me store the password securely within the program. However I want to store it into windows so the user can later type in \\server\share and connect to the network server without having to type in a username and password.
 
I am prompting the user for the password. What i'm looking for is a way to store that in the same place that the user accounts control panel stores network passwords. This way for all future connections to network servers on the domain their password will be saved.
 
I'd think that is going to be hard. I know the OS can cache credentials for
LAN access in certain cases (certainly in my home network there are shares I
don't need to authenticate against more than once), but I don't know if
that's exposed through an API or something like that.


--
Klaus H. Probst, MVP
http://www.vbbox.com/


Jefferson Cowart said:
I am prompting the user for the password. What i'm looking for is a way to
store that in the same place that the user accounts control panel stores
network passwords. This way for all future connections to network servers on
the domain their password will be saved.
 
Back
Top