Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2007

Tip: Looking for answers? Try searching our database.

Verify Username / Password combination

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Hurford - 11 Oct 2007 16:55 GMT
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
Peter Hurford - 11 Oct 2007 16:58 GMT
> Hi,
>
[quoted text clipped - 14 lines]
>
> TIA

sorry, in case of any doubt, everything is under AD
Patrice - 11 Oct 2007 17:43 GMT
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).

> Hi,
>
[quoted text clipped - 14 lines]
>
> TIA
Peter Hurford - 12 Oct 2007 11:55 GMT
Thanks Patrice, the first link had the snippet I needed.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.