For Programmers: Free Programming Magazines  


Home > Archive > C# > May 2005 > Active Directory Authentication Newbie









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Active Directory Authentication Newbie
nightstar@gmail.com

2005-05-19, 8:58 pm

Hello all,

We are currently writing a web application that needs to be
authenticated based on users in our domain. Once this is done other
stuff will be moved over to this login feature. I found an article at
microsoft.com
(http://support.microsoft.com/defaul...b;EN-US;Q316748)
called How to authenticate against the AD by using forms authentication
and Vis C# .NET.

This seems to work almost perfect on the local IIS machine itself but
once you goto a remote machine on/off our network you can not
authenticate. In this article in the "Write the Authentication Code"
section there is a procedure "public string GetGroups()" that gets
called. This is there the exception is thrown for the error. If I
comment out the line of code in the catch statement it goes through
perfectly. We will need to know the groups in the near future for
limiting who sees what. What may be causing this to happen?

Also are there any other good examples (source code included and
possible working test online). Should I include Sessions with this and
how should I go about it if so? How do I create a "logout" feature?
Any resources would help. It looks like this is what we want, or maybe
there is better.

Thanks,
Mark

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com