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 / ASP.NET / Web Services / September 2006

Tip: Looking for answers? Try searching our database.

Web services and password change in AD.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luc - 19 Sep 2006 13:27 GMT
Hi everyone,

I had this strange problem.  We are using web services for our entreprise
applications.  We are using IIS as the host for our webservices and IIS is
configured to use integrated authentication.

The problem arise when the user's password changes and he has not done it at
logon time.  So it seams that at that specific time, the transaction goes to
IIS and bounces back with an http status 401: Unauthorized.

Since we cannot force the user to change his password at logon time on
WinXP, is there a way to protect ourself in making a web service transaction
in order for it not to return an http 401: unautorized?

Can someone explain how this process is working?

Any snippet of code supporting the solution?

Thank's for any help.
Abhi - 25 Sep 2006 19:28 GMT
Luc,

I am accessing AD using WS's. I am asking my clients to set the
UseDefaultCredentials property to true before calling any of the ws methods
and it works. for example:

MyWebServices service = new MyWebServcies;
service.UseDefaultCredentials = true.

This might help you.

> Hi everyone,
>
[quoted text clipped - 15 lines]
>
> Thank's for any help.
Luc - 26 Sep 2006 15:03 GMT
Thank's for this valuable answer.

Can you just tell me what this attribute means in order for me to better
understand how it work's

Thank's again

> Luc,
>
[quoted text clipped - 26 lines]
> >
> > Thank's for any help.
Abhi - 26 Sep 2006 15:47 GMT
By setting that property to true you are identifying yourself to IIS as an
authenticated windows users which IIS can use to access Active Directory
services and get you the results. There is an article in msdn.microsoft.com
for using active directory services via web services. That would be helpful
to further understand this thing.

-Abhi

> Thank's for this valuable answer.
>
[quoted text clipped - 33 lines]
> > >
> > > Thank's for any help.

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.