Verify Username / Password combination

P

Peter Hurford

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
 
P

Peter Hurford

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
 
P

Patrice

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top