HighTechTalks DotNet Forums  

Verify Username / Password combination

Dotnet Framework microsoft.public.dotnet.framework


Discuss Verify Username / Password combination in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Peter Hurford
 
Posts: n/a

Default Verify Username / Password combination - 10-11-2007 , 11:55 AM






Hi,

I have a dialog which the user types a username and a password into.

The actual data is tucked away for later use (in fact it is used to
set the "run as" credentials for a web service pool on IIS6, but
that's unimportant).

My problem is that the user keeps on typing the wrong password in, and
the first I know about it is (some time later) when I see a message in
the event log.

I want to build some logic into the dialog to go away and check a
valid user/pwd combination at the time they type the values.

What is the most succinct way to achieve this?

TIA


Reply With Quote
  #2  
Old   
Peter Hurford
 
Posts: n/a

Default Re: Verify Username / Password combination - 10-11-2007 , 11:58 AM






On 11 Oct, 16:55, Peter Hurford <peter.hurf... (AT) microcrest (DOT) com> wrote:
Quote:
Hi,

I have a dialog which the user types a username and a password into.

The actual data is tucked away for later use (in fact it is used to
set the "run as" credentials for a web service pool on IIS6, but
that's unimportant).

My problem is that the user keeps on typing the wrong password in, and
the first I know about it is (some time later) when I see a message in
the event log.

I want to build some logic into the dialog to go away and check a
valid user/pwd combination at the time they type the values.

What is the most succinct way to achieve this?

TIA
sorry, in case of any doubt, everything is under AD



Reply With Quote
  #3  
Old   
Patrice
 
Posts: n/a

Default Re: Verify Username / Password combination - 10-11-2007 , 12:43 PM



Is this to configure a web service pool or to connect to a web service ?

If this is to connect to a web service, I would just connect to the web
service (possibly calling an empty method that is just for this purpose if
you ned to do real stuff at a later time) and either it works and it's good
or either it doesn't works and you know what happens.

If you really need to directly check the user credentials see :
http://support.microsoft.com/kb/326340/en-us
http://support.microsoft.com/kb/306158/en-us could also interest you.

As a side note, I'm a bit worried about the "credentials for a web service
pool". If you change the config of the web pool, what happens if multiple
people are using your web service at the same time. Keep in mind that you
could impersonate on a per request basis (and even perhaps in the portion of
code that needs it).


"Peter Hurford" <peter.hurford (AT) microcrest (DOT) com> a écrit dans le message de
news: 1192118101.313761.206460 (AT) k79g20...oglegroups.com...
Quote:
Hi,

I have a dialog which the user types a username and a password into.

The actual data is tucked away for later use (in fact it is used to
set the "run as" credentials for a web service pool on IIS6, but
that's unimportant).

My problem is that the user keeps on typing the wrong password in, and
the first I know about it is (some time later) when I see a message in
the event log.

I want to build some logic into the dialog to go away and check a
valid user/pwd combination at the time they type the values.

What is the most succinct way to achieve this?

TIA




Reply With Quote
  #4  
Old   
Peter Hurford
 
Posts: n/a

Default Re: Verify Username / Password combination - 10-12-2007 , 06:55 AM



Thanks Patrice, the first link had the snippet I needed.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.