Advertisement

05.07.2008 at 08:23PM PDT, ID: 23384968
[x]
Attachment Details

C#, Windows Authentication custom authentication to IIS6 (Windows 2003)

Asked by whorsfall in Visual Studio 2008, Programming for ASP.NET, .NET Framework 3.x versions

Hi,

Configuration:

1. Windows 2003 R2 - IIS 6.0.
2. Visual Studio 2008 C#.

Problem:

Authenticate users to allow / disallow them to connect to a particular web site.
Specifically only users from a particuar OU in Active Directory can connect.
(I know IIS allows for this). However here is the catch, I need to record the time
when they first connect. Then disable there account 7 days after they connect.
Note this has to be after they initially log on..

Possible Solutions ???:

Ok what I am figuring the way todo this is via the .NET Http module.
(http://msdn.microsoft.com/en-us/library/bb398986.aspx)
So AD lets them through then it goes into the Http module and it can perform a database
lookup to see if the user can still log on or not. (I will then have a schenduled program that iterates through
the accounts and disables them after the 7 days period).

Am I on the right track here any sample code somebody can point me to? (Even
if it just how todo the authentication). Or, am I best writing an ASPI filter?

Any input greatly appreciated,

Ward.
Start Free Trial
[+][-]05.08.2008 at 11:23AM PDT, ID: 21527150

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio 2008, Programming for ASP.NET, .NET Framework 3.x versions
Sign Up Now!
Solution Provided By: tedbilly
Participating Experts: 1
Solution Grade: B
 
 
[+][-]05.08.2008 at 04:35PM PDT, ID: 21529355

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 04:44PM PDT, ID: 21529424

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 01:37AM PDT, ID: 21538242

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 09:32AM PDT, ID: 21539562

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 02:26PM PDT, ID: 21540525

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.28.2008 at 09:44PM PDT, ID: 21666449

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.28.2008 at 10:20PM PDT, ID: 21666543

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628