473,396 Members | 1,707 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,396 software developers and data experts.

Password Login

Hey does anybody know of anywhere where I can read up or download some
exaples of setting up a multi user password system, using access?

Ta
Si
Nov 20 '05 #1
9 1242
Sorry may have not explained correctly ......

I basically have a VB project and want to have the front screen look at a
table in a access database to get the username and then verify the password
from another table.

"Newbie!" <s_************@yahoo.co.uk> wrote in message
news:Ey********************@karoo.co.uk...
Hey does anybody know of anywhere where I can read up or download some
exaples of setting up a multi user password system, using access?

Ta
Si

Nov 20 '05 #2
"Newbie!" <s_************@yahoo.co.uk> schrieb
Sorry may have not explained correctly ......

I basically have a VB project and want to have the front screen look
at a table in a access database to get the username and then verify
the password from another table.


I've never seen a screen looking at something. Apart from this, what exactly
is the problem? How to access a database? (answer:
http://msdn.microsoft.com/library/en...withadonet.asp)
How to store an encrypted password? (sorry, no answer (I'd look for
'encrypt'))
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
Cor
Hi Newbie,

Windowforms or Webforms?

Cor
Nov 20 '05 #4
windows forms

"Cor" <no*@non.com> wrote in message
news:uO**************@TK2MSFTNGP12.phx.gbl...
Hi Newbie,

Windowforms or Webforms?

Cor

Nov 20 '05 #5
Cor
Hi Newbie,

Make a project with two forms

The second form is your dialog in form1 you do in the load event
\\\
dim frm as new form2
if frm.showdialog <> dialogresult.ok then
me.close
exit sub
end if
frm.dispose
////
\\\
In form2 you make two textboxes, and check the name and password against
your database.
if the result is ok you do
\\\
return dialogresult.ok and if not dialogresult.cancel (or whatever)
me.close
////

This is all roughly typed, just ment as a kind of pseudo code.

That is all.
Cor
Nov 20 '05 #6
Cor i`ve got basically this but its the bit where i select my name and
password from the database that is confusing me, i guess I have to have a
Database connection and a SQL command but im stuck as to what to do.

My database name is Excellence.MDB and I have a table within it called
Users. The Users Table has 3 Feilds in it:

ID - Primary Key, UserName, & Password

Thanks for you help so far, I`ve looked on the NET but carn`t seem to find
anything

Regards
Si

"Cor" <no*@non.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
Hi Newbie,

Make a project with two forms

The second form is your dialog in form1 you do in the load event
\\\
dim frm as new form2
if frm.showdialog <> dialogresult.ok then
me.close
exit sub
end if
frm.dispose
////
\\\
In form2 you make two textboxes, and check the name and password against
your database.
if the result is ok you do
\\\
return dialogresult.ok and if not dialogresult.cancel (or whatever)
me.close
////

This is all roughly typed, just ment as a kind of pseudo code.

That is all.
Cor

Nov 20 '05 #7
Cor
Hi Newbie,

Very roughly as I do it.
\\\
Dim conn As OleDb.OleDbConnection = New OleDb.OleDbConnection
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\test1\db.mdb;User Id=admin;Password=;"
Dim cmd As New OleDb.OleDbCommand("Select * from tbl1 Where id='" &
txtId.text & "'",conn)
Dim da As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter(cmd)
Dim ds As DataSet = New DataSet
da.Fill(ds)
conn.Close()
(here some encryptingcode)
if myencryptedpassword = ds.tables(0).rows(0).item('mypasword').tostring
then
return dialogresult.ok
else
do something else
end if
////

I hope this helps?

Cor
Nov 20 '05 #8
* "Newbie!" <s_************@yahoo.co.uk> scripsit:
Cor i`ve got basically this but its the bit where i select my name and
password from the database that is confusing me, i guess I have to have a
Database connection and a SQL command but im stuck as to what to do.


Post this question in the ADO.NET group, there you will more likely get
an answer:

<news://msnews.microsoft.com/microsoft.public.dotnet.framework.adonet>

Web interface:

<http://msdn.microsoft.com/newsgroups/default.asp?url=/newsgroups/loadframes.asp?icp=msdn&slcid=us&newsgroup=microso ft.public.dotnet.framework.adonet>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #9
Just so we're all clear, the preference is for a one-way transformation on
the passwords (hash rather than reversable block or stream cipher
encryption).
That way, the passwords can never be unencrypted - after all, you only need
to see if they match. That means the password is only in "clear text" in the
user's head and nowhere else (of course we all know the dumb user will
probably tape a sticky note with the password to his monitor...).
Also, a list of hashed passwords can be suseptable to dictionary attacks,
which is why you should also enforce strong passwords (include
caps/lowercase + non-alphanumeric characters, try to avoid common words, and
enforce a decent minimum length).

-Rob Teixeira [MVP]

"Cor" <no*@non.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Hi Newbie,

Very roughly as I do it.
\\\
Dim conn As OleDb.OleDbConnection = New OleDb.OleDbConnection
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\test1\db.mdb;User Id=admin;Password=;"
Dim cmd As New OleDb.OleDbCommand("Select * from tbl1 Where id='" &
txtId.text & "'",conn)
Dim da As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter(cmd)
Dim ds As DataSet = New DataSet
da.Fill(ds)
conn.Close()
(here some encryptingcode)
if myencryptedpassword = ds.tables(0).rows(0).item('mypasword').tostring
then
return dialogresult.ok
else
do something else
end if
////

I hope this helps?

Cor

Nov 20 '05 #10

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

Similar topics

1
by: magda muskala | last post by:
hi, I have a little problem with the following part of my code. I use post method to get the password from the form . Because there is an encrypted password in mysql database, I check with $pass...
6
by: Lou | last post by:
Please can someone put me out my misery! Im trying to find a multiple user/password protection script that will redirect the specific user to a specific directory. At the moment I have set up...
3
by: bill | last post by:
I need to open a asp.net web form from a classic asp page, and pass a username and password to the asp.net page. The username and password exist as session variables in the classic asp...
2
by: mankolele | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Simple Database Connection</title> </head> <body bgcolor="white"> <?php $connection =...
5
by: Afshar | last post by:
Hi everybody there, I have a special Login page that wants users to enter 3 passwords rather than a single password. But can't do it with Login control. I tried following scenarios: 1. Put an...
1
by: roshina | last post by:
Hi Iam facing a problem in my project, developing a web site for online shopping in ASP on windows XP using IIS server. All the validations are ok but the new password is not upadated in the data...
20
by: _mario.lat | last post by:
hallo, I use PHP and I'd like to not write in hardcoded way password and login to access to mysql. how to not write password in code for access to mysql? How can I do? I'd like that who see my...
30
by: diane | last post by:
I've got an application running with table-based security: i capture the user's windows login with fOsusername, then have them enter a password checked against their username/login in my own table....
10
by: priyakollu | last post by:
hi guyz! please help me in sorting out error as im unable to find it... my requirement is there will be userid field and password field and "login" button after clicking button certain validations...
5
ddtpmyra
by: ddtpmyra | last post by:
I need some help to review my code add more security on in. Scenario: Login Page enter username enter password Display Page if log-in success display all the records from mysql server
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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,...

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.