473,382 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Storing a user's password

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?
Nov 16 '05 #1
4 2072
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" <Jefferson Co****@discussions.microsoft.com> wrote in
message news:1B**********************************@microsof t.com...
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?
Nov 16 '05 #2
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.

"Klaus H. Probst" wrote:
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" <Jefferson Co****@discussions.microsoft.com> wrote in
message news:1B**********************************@microsof t.com...
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?

Nov 16 '05 #3
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.

"Klaus H. Probst" wrote:
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" <Jefferson Co****@discussions.microsoft.com> wrote in
message news:1B**********************************@microsof t.com...
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?

Nov 16 '05 #4
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" <Je*************@discussions.microsoft.com> wrote in
message news:3B**********************************@microsof t.com...
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.
"Klaus H. Probst" wrote:
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" <Jefferson Co****@discussions.microsoft.com> wrote in
message news:1B**********************************@microsof t.com...
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?

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bob | last post by:
Hi, I have a website in a Linux/Apache shared hosting environment and have been given access to the MySQL server running on the same machine. To access this database from PHP, I have to call...
3
by: Gordon Knote | last post by:
Hi In my application I need to store a password the user enters (unfortunately not a hash of it, but the password as a plaintext string). Is there any secure way to do so (by Visual Basic .NET) ...
6
by: zika | last post by:
I want to create e-mail app, and store user password localy in a file. So when user starts app, he can check e-mail without having to enter pass manually. How do I do that? I want to distribute...
0
by: ericellsworth | last post by:
Hi all, I'm wondering if there's a way to remove the password Access (2003) has stored for an ODBC linked table without quitting and reopening the application. I have a set of linked tables...
2
by: Shyam | last post by:
Hi, I wanted some advice on the following. All the users who log in to the system are created in the SQL Server. As I am not keen to store any user information on the web.config file for...
5
by: - Steve - | last post by:
I have a website that uses forms based authentication. In the logon.aspx page a user enters a username and password. It is then authenticated against Active Directory. After that point on any...
4
by: VB Programmer | last post by:
I am using SQL Server as the database for my ASP.NET app. I have a users table with a password field. What is the best way to encrypt it before it goes into the table, then decrypt it to read...
2
by: Steve Lloyd | last post by:
Hi, I am looking for a bit of advice. I have an application that can be installed on users home PC's that authenticates to a windows domain server over a VPN. Once authenticated against the...
2
by: Mythran | last post by:
We followed an example found on MSDN to create an encrypted FormsAuthenticationTicket and storing the ticket in a cookie. Is this the "correct" way to store the authentication ticket? We are...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.