473,785 Members | 2,794 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP Login Failure - Database Password

Thank you for taking your time to read my question... please offer
your knowledge it will be appreciated!

I'm writing a ASP Web page to access a Access Database that has a
Database Password set. If I remove the password I'm able to read and
work with the database.

Here is the code that I have to open the connection to the Database:

Set objDB = Server.CreateOb ject("ADODB.Con nection")

sDBName = "Driver={Micros oft Access Driver (*.mdb)};" & _
"Dbq=" & Request.ServerV ariables("APPL_ PHYSICAL_PATH") &
"fpdb\plogons.m db;" & _
"Uid=admin; " & _
"Pwd=test"

Open sDBName

Here is the error that is returned:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.
The database password is "test"

Nov 13 '05 #1
6 2393

"N. Graves" <ng*****@REMOVE yahoo.com> wrote in message
news:cb******** *************** *********@4ax.c om...
Thank you for taking your time to read my question... please offer
your knowledge it will be appreciated!

I'm writing a ASP Web page to access a Access Database that has a
Database Password set. If I remove the password I'm able to read and
work with the database.

Here is the code that I have to open the connection to the Database:

Set objDB = Server.CreateOb ject("ADODB.Con nection")

sDBName = "Driver={Micros oft Access Driver (*.mdb)};" & _
"Dbq=" & Request.ServerV ariables("APPL_ PHYSICAL_PATH") &
"fpdb\plogons.m db;" & _
"Uid=admin; " & _
"Pwd=test"

Open sDBName

Here is the error that is returned:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.
The database password is "test"


Don't confuse the two types of password you can have. You can have one
using JET user-level security where you have an account comprising username
and password - this is what you have coded for. Alternatively, you can have
the simplest password where everyone has the same.
see the following for details: http://support.microsoft.com/kb/191754
Both passwords are easily cracked, but the second one is almost worthless,
particularly if the database is being held on a web server anyway.

Nov 13 '05 #2
Eric your the man!

I did not understand the difference in the passwords and you where a
big help. I know about the security issue too.

This Web page that I'm working on is my own and will reside only on my
PC. This application is to keep up with the many passwords and logins
I have to maintain.

Thanks again for you help!
On Thu, 27 Jan 2005 15:16:57 +0000 (UTC), "Eric Schittlipz"
<er**@schittlip z.com> wrote:

"N. Graves" <ng*****@REMOVE yahoo.com> wrote in message
news:cb******* *************** **********@4ax. com...
Thank you for taking your time to read my question... please offer
your knowledge it will be appreciated!

I'm writing a ASP Web page to access a Access Database that has a
Database Password set. If I remove the password I'm able to read and
work with the database.

Here is the code that I have to open the connection to the Database:

Set objDB = Server.CreateOb ject("ADODB.Con nection")

sDBName = "Driver={Micros oft Access Driver (*.mdb)};" & _
"Dbq=" & Request.ServerV ariables("APPL_ PHYSICAL_PATH") &
"fpdb\plogons.m db;" & _
"Uid=admin; " & _
"Pwd=test"

Open sDBName

Here is the error that is returned:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.
The database password is "test"


Don't confuse the two types of password you can have. You can have one
using JET user-level security where you have an account comprising username
and password - this is what you have coded for. Alternatively, you can have
the simplest password where everyone has the same.
see the following for details: http://support.microsoft.com/kb/191754
Both passwords are easily cracked, but the second one is almost worthless,
particularly if the database is being held on a web server anyway.


Nov 13 '05 #3
Eric or anyone following this note:

OK I was able to get past the password issue but now I have another
issue. Hopefully I can explain my issue clearly

I was using a Driver instead of the Provider to connect to the
database. When the database did not have a password I could use
SELECT, DELETE UPDATE AND INSERT. Now that I'm using the Provider
with the password I'm only able to use SELECT.

Here is the error for using "Delete from tbl_Logons"

Microsoft JET Database Engine error '80004005'
Could not delete from specified tables.

Are there limitation to using the Provider to connect to the Database
or am I doing something else wrong?

I would appreciate you help and knowledge

Thanks
N. Graves
On Thu, 27 Jan 2005 10:41:36 -0500, N. Graves
<ng*****@REMOVE yahoo.com> wrote:
Eric your the man!

I did not understand the difference in the passwords and you where a
big help. I know about the security issue too.

This Web page that I'm working on is my own and will reside only on my
PC. This application is to keep up with the many passwords and logins
I have to maintain.

Thanks again for you help!
On Thu, 27 Jan 2005 15:16:57 +0000 (UTC), "Eric Schittlipz"
<er**@schittli pz.com> wrote:

"N. Graves" <ng*****@REMOVE yahoo.com> wrote in message
news:cb****** *************** ***********@4ax .com...
Thank you for taking your time to read my question... please offer
your knowledge it will be appreciated!

I'm writing a ASP Web page to access a Access Database that has a
Database Password set. If I remove the password I'm able to read and
work with the database.

Here is the code that I have to open the connection to the Database:

Set objDB = Server.CreateOb ject("ADODB.Con nection")

sDBName = "Driver={Micros oft Access Driver (*.mdb)};" & _
"Dbq=" & Request.ServerV ariables("APPL_ PHYSICAL_PATH") &
"fpdb\plogons.m db;" & _
"Uid=admin; " & _
"Pwd=test"

Open sDBName

Here is the error that is returned:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.
The database password is "test"


Don't confuse the two types of password you can have. You can have one
using JET user-level security where you have an account comprising username
and password - this is what you have coded for. Alternatively, you can have
the simplest password where everyone has the same.
see the following for details: http://support.microsoft.com/kb/191754
Both passwords are easily cracked, but the second one is almost worthless,
particularl y if the database is being held on a web server anyway.


Nov 13 '05 #4

"N. Graves" <ng*****@REMOVE yahoo.com> wrote in message
news:2i******** *************** *********@4ax.c om...
Eric or anyone following this note:

OK I was able to get past the password issue but now I have another
issue. Hopefully I can explain my issue clearly

I was using a Driver instead of the Provider to connect to the
database. When the database did not have a password I could use
SELECT, DELETE UPDATE AND INSERT. Now that I'm using the Provider
with the password I'm only able to use SELECT.

Here is the error for using "Delete from tbl_Logons"

Microsoft JET Database Engine error '80004005'
Could not delete from specified tables.

Are there limitation to using the Provider to connect to the Database
or am I doing something else wrong?

I would appreciate you help and knowledge

Thanks
N. Graves


The choice of connection string is the choice between using Jet OLE DB 4.0
driver instead of an ODBC driver. The former is the newer technology but
perhaps you have a compelling reason to use the other. Anyway, both should
work, but you need some error handling and if an error occurs, you need to
delve into the Errors collection of the connection object and inspect the
SqlState of the error before you can find out what's going on. Database
Engine error '80004005' does not help much, does it?
As this is really an ASP question you might be better off in another
newsgroup, or I could send you a demo of this to your e-mail if it's valid -
mine isn't.

Nov 13 '05 #5

Thanks Eric. I would like to see your code! I have been using and
developing code to access SQL and Access Database for several years
and with a lot of success. This Database password has presented new
challenges for me to say the least.

My Email is ng*****@REMOVEY ahoo.com ... Remove the REMOVE for the
correct address.

On Fri, 28 Jan 2005 16:17:59 +0000 (UTC), "Eric Socialize"
<er**@schittlip z.com> wrote:

"N. Graves" <ng*****@REMOVE yahoo.com> wrote in message
news:2i******* *************** **********@4ax. com...
Eric or anyone following this note:

OK I was able to get past the password issue but now I have another
issue. Hopefully I can explain my issue clearly

I was using a Driver instead of the Provider to connect to the
database. When the database did not have a password I could use
SELECT, DELETE UPDATE AND INSERT. Now that I'm using the Provider
with the password I'm only able to use SELECT.

Here is the error for using "Delete from tbl_Logons"

Microsoft JET Database Engine error '80004005'
Could not delete from specified tables.

Are there limitation to using the Provider to connect to the Database
or am I doing something else wrong?

I would appreciate you help and knowledge

Thanks
N. Graves


The choice of connection string is the choice between using Jet OLE DB 4.0
driver instead of an ODBC driver. The former is the newer technology but
perhaps you have a compelling reason to use the other. Anyway, both should
work, but you need some error handling and if an error occurs, you need to
delve into the Errors collection of the connection object and inspect the
SqlState of the error before you can find out what's going on. Database
Engine error '80004005' does not help much, does it?
As this is really an ASP question you might be better off in another
newsgroup, or I could send you a demo of this to your e-mail if it's valid -
mine isn't.


Nov 13 '05 #6
Br
N. Graves wrote:
Eric or anyone following this note:

OK I was able to get past the password issue but now I have another
issue. Hopefully I can explain my issue clearly

I was using a Driver instead of the Provider to connect to the
database. When the database did not have a password I could use
SELECT, DELETE UPDATE AND INSERT. Now that I'm using the Provider
with the password I'm only able to use SELECT.

Here is the error for using "Delete from tbl_Logons"

Microsoft JET Database Engine error '80004005'
Could not delete from specified tables.

Are there limitation to using the Provider to connect to the Database
or am I doing something else wrong?

I would appreciate you help and knowledge

Thanks
N. Graves
Perhaps you need to set the cursor type or something when you open the
recordset?

Br@dley


On Thu, 27 Jan 2005 10:41:36 -0500, N. Graves
<ng*****@REMOVE yahoo.com> wrote:
Eric your the man!

I did not understand the difference in the passwords and you where a
big help. I know about the security issue too.

This Web page that I'm working on is my own and will reside only on
my PC. This application is to keep up with the many passwords and
logins I have to maintain.

Thanks again for you help!
On Thu, 27 Jan 2005 15:16:57 +0000 (UTC), "Eric Schittlipz"
<er**@schittlip z.com> wrote:

"N. Graves" <ng*****@REMOVE yahoo.com> wrote in message
news:cb******** *************** *********@4ax.c om...
Thank you for taking your time to read my question... please offer
your knowledge it will be appreciated!

I'm writing a ASP Web page to access a Access Database that has a
Database Password set. If I remove the password I'm able to read
and work with the database.

Here is the code that I have to open the connection to the
Database:

Set objDB = Server.CreateOb ject("ADODB.Con nection")

sDBName = "Driver={Micros oft Access Driver (*.mdb)};" & _
"Dbq=" & Request.ServerV ariables("APPL_ PHYSICAL_PATH") &
"fpdb\plogons.m db;" & _
"Uid=admin; " & _
"Pwd=test"

Open sDBName

Here is the error that is returned:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.
The database password is "test"

Don't confuse the two types of password you can have. You can have
one using JET user-level security where you have an account
comprising username and password - this is what you have coded for.
Alternatively, you can have the simplest password where everyone
has the same.
see the following for details:
http://support.microsoft.com/kb/191754
Both passwords are easily cracked, but the second one is almost
worthless, particularly if the database is being held on a web
server anyway.

Nov 13 '05 #7

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

Similar topics

1
5516
by: Wayne Smith | last post by:
Applies to: Microsoft FrontPage 2000, Microsoft Access 2000, IIS 5.0 Operating System: Microsoft Windows 2000 Professional I am trying to protect a portion of a web site by allowing users to register a username and password & then login with those details, but so far I am having only marginal success. I am far from an expert on ASP programming, indeed the code I am using comes from "Sams Teach Yourself E-Commerce Programming with ASP" but it...
5
2637
by: calaha | last post by:
Hi all, I have been working with this since last night, and can't quite figure out why it's not working. I have a simple login box form that is set to be my startup form in my Access app (upon successful authentication, it opens the Switchboard). All it does is get the username and password, pull up a recordeset of the usernames and sets the UserId to be used throughout the session. The table Userlist is a SQL 2000 linked table. I can...
7
1539
by: Cemal Karademir | last post by:
Hi, I'm workin on a small Login page/program with asp.net. It uses an MS-Access database that looks like this: USERID | NAME | PASSWORD _________________________________ 1 | John | hello 2 | Paul | hello2 I don't understand why it doesn't work. I think i'm doing something wrong
12
6575
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I have added the new user to the database and have given the user access to the database for the app. But everytime I try and login using this users ID, I always get the error: Login failed for user Christian.Gaut If I login using my userid and...
2
3624
by: Shakun | last post by:
Hi All, This is my 1st posting to this group. Can any1 help me with the "Remember Me" which is there in a login form. Im pasting the code below. Im not able to set a cookie.. Thanks, Shakun Vohra
2
1763
by: dubdave | last post by:
Hi I wrote a very basic login script which acesses a mySQL database, like this:- <?php // compares values entered in login page form with mySQL database, and then directs either to protected page or to a failure page
0
912
by: kuldeep singh sethi | last post by:
Hi All, I am facing a problem from many days. and need to help me. i am a local machine user. I am developing a site in which login page is as start page. and there is sql server as database. so i am writing this code:- using system data.sqlclient; sqlconnection objcon= new ("Connection string"); sqlcommand objcom= new ("select * from tab_login where username= '"+txtusername.text+"' and password = '"+txtpassword.text+"'",objcon)
4
4082
tolkienarda
by: tolkienarda | last post by:
Hi all I work for a small webdesign company and we have remote hosting. i built a mysql database with phpmyadmin on the server. i then downloaded and modified a php login page. i am continuing to get the ---invalid username or password--- i am not getting the E_USER_ERROR so i don't know if there is a problem with the php, how i set up the database or mabe somthing in between. so everyone knows all of my server interface is GUI. I use a company...
3
6226
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it has to tell then them its wrong information but currently it takes then to a next page and then tells them its incorrect information. This is tedious as every time they enter wrong they will be redirected to a different page and then they have to...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10329
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
9950
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
8974
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
7500
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
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3650
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.