PC Review


Reply
Thread Tools Rate Thread

Check user's password of MSDE

 
 
ad
Guest
Posts: n/a
 
      12th Feb 2005
I am using MSDE as the database of my program.

At the begin of my program, it must display a form for user to enter the
password

After the user enters the password, I will check the password, if it is the
correct password of a user of MSDE

..

In order to check the password; I must get the password of a user of MSDE in
the first.



How can I get the password of a user of MSDE? Like that I have a sa2 in MSDE
, how can I get the password of sa2?



 
Reply With Quote
 
 
 
 
psg
Guest
Posts: n/a
 
      12th Feb 2005
"ad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In order to check the password; I must get the password of a user of MSDE
> in
> the first.


Why don't you try to connect with username and password that user provided
and let MSDE to check if they are correct? Then you won't need to know user
passwords.

RGDS PSG


 
Reply With Quote
 
Amy L.
Guest
Posts: n/a
 
      12th Feb 2005
From a security perspective that's a very bad approach. You should attempt
to log in with those credentials passed and than let MSDE check the
Password. If the password is an error an exception will be thrown.

Amy.

"ad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I am using MSDE as the database of my program.
>
> At the begin of my program, it must display a form for user to enter the
> password
>
> After the user enters the password, I will check the password, if it is

the
> correct password of a user of MSDE
>
> .
>
> In order to check the password; I must get the password of a user of MSDE

in
> the first.
>
>
>
> How can I get the password of a user of MSDE? Like that I have a sa2 in

MSDE
> , how can I get the password of sa2?
>
>
>



 
Reply With Quote
 
ad
Guest
Posts: n/a
 
      12th Feb 2005
But there are many situations when we fail to login MSDE, like the MSDE is
stop or the net is disconnected

How can I confirm the failure is caused by incorrect password?





"Amy L." <(E-Mail Removed)> ¼¶¼g©ó¶l¥ó·s»D
:(E-Mail Removed)...
> From a security perspective that's a very bad approach. You should

attempt
> to log in with those credentials passed and than let MSDE check the
> Password. If the password is an error an exception will be thrown.
>
> Amy.
>
> "ad" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I am using MSDE as the database of my program.
> >
> > At the begin of my program, it must display a form for user to enter the
> > password
> >
> > After the user enters the password, I will check the password, if it is

> the
> > correct password of a user of MSDE
> >
> > .
> >
> > In order to check the password; I must get the password of a user of

MSDE
> in
> > the first.
> >
> >
> >
> > How can I get the password of a user of MSDE? Like that I have a sa2 in

> MSDE
> > , how can I get the password of sa2?
> >
> >
> >

>
>



 
Reply With Quote
 
psg
Guest
Posts: n/a
 
      12th Feb 2005
"ad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> But there are many situations when we fail to login MSDE, like the MSDE is
> stop or the net is disconnected
>
> How can I confirm the failure is caused by incorrect password?


Just handle an exception message (message from MSDE about error type).
When MSDE is down you will probably get error no. 17 "Connection failed...
Server does not exist or access denied.", when it is up, but wrong
user/password error no. 18456 "Login failed for user ...".

RGDS PSG


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change user password in ADS and check the password policy? Volkan Senguel Microsoft C# .NET 0 19th Aug 2009 07:49 PM
check a user password webrod Microsoft C# .NET 9 4th Jan 2007 07:53 AM
No check box to allow user to save user name and password.. =?Utf-8?B?Y2FsbG1hbg==?= Microsoft Frontpage 4 7th Jun 2005 02:53 PM
Accessing NetSDK MSDE instance installed by Net Framework with user/ password NWx Microsoft ASP .NET 1 4th Feb 2004 03:32 PM
Stop MSDE to ASK me User name and Password? TF Microsoft Access ADP SQL Server 1 2nd Oct 2003 04:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:46 AM.