473,769 Members | 3,360 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2095
Ask them for it once and then put them in isolated storage.

Look at the docs for System.IO.Isola tedStorage, particularly
<ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.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****@discussi ons.microsoft.c om> wrote in
message news:1B******** *************** ***********@mic rosoft.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.Isola tedStorage, particularly
<ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.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****@discussi ons.microsoft.c om> wrote in
message news:1B******** *************** ***********@mic rosoft.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.Isola tedStorage, particularly
<ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.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****@discussi ons.microsoft.c om> wrote in
message news:1B******** *************** ***********@mic rosoft.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.m icrosoft.com> wrote in
message news:3B******** *************** ***********@mic rosoft.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.Isola tedStorage, particularly
<ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.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****@discussi ons.microsoft.c om> wrote in
message news:1B******** *************** ***********@mic rosoft.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
6975
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 mysql_connect(host, user, password) where the password is hardcoded into my PHP source file in clear text. I see two security problems with this:
3
2003
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) Thanks Gordon
6
1561
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 source of the app, so think about that too.
0
2394
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 which I update with a user's password on login using tdf.Connect, thereby keeping them from having to use the linked table manager or see the ODBC connection dialog. When a user logs out, I set the connect string back to a generic connect string...
2
2387
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 security considerations and I need to use SQL logins for each user, I decided to create a class CurrentUserClass (some what similar to the TTUser class in microsoft's ASP.NET sample Time Track application) with properties like Name, First Name, LastName,...
5
1188
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 page in the directory I can access the username using HttpContext.Current.User.Identity.Name, but I can't figure out how to access the password in plain text. Back at the logon.aspx page if I could store the password that is submitted the...
4
1879
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 the value? Any sample code or links would be helpful. Thanks!
2
1634
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 Active directory I need to reuse the inputted information over and over and again for various database tasks (using windows authtication). What is the best and most secure way to store the username and password for re-use? I have considered...
2
2006
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 attempting to create a web service from the web application and our goal is to have the user login to the web application and then, using the same credentials and/or authentication objects, access the web services to retrieve our data from other...
0
10201
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9851
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8862
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7398
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5439
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3554
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.