Integrated Authentication with the InstantKB.NET Active Directory...

Expand / Collapse
 

Integrated Authentication with the InstantKB.NET Active Directory...


One of the queries we most often receive from customers/users of our Active Directory Module, is "How can I bypass the login step altogether and use my Active Directory/Windows Credentials to authenticate to the system". This is certainly a feature we spent alot of time on in the development of our LDAP module, and this article will hopefully shed some light on this.

Client Configuration

Firstly, you should note that all clients must have their browsers configured to enable integrated windows authentication, without this, your browser will not send your existing credentials to the server for validation. To enable this in Internet Explorer, simply go to

Tools -> Internet Options -> Advanced

and ensure the option in the "Security" area of the tree 'Enable Integrated Windows Authentication' is checked.



Server Configuration

You will find a page added to the KB by the LDAP module "WinLogin.aspx", which handles all seamless logins, this page takes the passed windows credentials and feeds them into the LDAP module, which then processes authentication and uses several verification/safety steps to ensure that the system is not compromised.

It is Vital that any client attempting this, is already authenticated to the relevant active directory domain, if they are not, then you will need to trigger this at the server level. Ways to do this vary between IIS 5.0, 6.0 and 7.0, the most common is to set your IIS Security settings to require Windows Authentication to access WinLogin.aspx.

If you wish to be automatically logged in if you are authenticated, you will need to make this page your default page, however, in this case, any users non-authenticated (if you have correctly configured windows authentication on this file) will receive an HTTP 403.2 Error 'Read Access Denied', or a 401.3 Access forbidden area. as such you will need to access the custom errors tab of the website within IIS as illustrated:



Alternate Windows Integrated Access Strategies

Alternatively, you can have a sub0domain or some other method, which points towards WinLogin.aspx deliberately, exclusively for your Pre-Authenticated users, and everyone else may use the existing login/authentication system.

We reccomend for security reasons, that ONLY internal users use the WinLogin method, and that all external users use the provided authentication form, which may or may not authenticate via Active directory as per your specified configuration.

Further Reading for Advanced Administrators

The most complex configuration to run, is one with complete seamless windows authentication, and forms authentication, side by side within the same environment, this is made difficult because of the architecture of IIS and was chief among our considerations in the development of the Active Directory Module,

The related links below may be of use to you when configuring windows authentication with your installation of the AD Module.

Should you have any questions please don't hesitate to post your comment below or contact us.


Rate this Doc:
     

Related Links



User Comments

Click to subscribe to comments RSS feed...
No Member Photo by James Trott posted 20th August 2009
New Member with 11 recognition pointsNew Member with 11 recognition pointsNew Member with 11 recognition pointsNew Member with 11 recognition pointsNew Member with 11 recognition pointsNew Member with 11 recognition pointsNew Member with 11 recognition pointsNew Member with 11 recognition points
This comment was helpful. 0 This comment is not helpful.
In server 2008 they stopped this from functioning as it used to under 2003, however you can still achieve the desired configuration , and this is a known issue in web application development and web-server configuration circles. The best advice I can give is that you take a look at the article we linked to in our integrated authentication KB article, but I'll repost here for ease of access: http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx

Marked helpful 0 times based on 1 vote
No Member Photo by Dobromil Maly from http://www.cleverlance.com posted 20th August 2009
This comment was helpful. 0 This comment is not helpful.
I'm using W2008 Server, 64bit and IIS7, KB 2.0.6 with AD module.

For root of the web application (IIS virtual directory) I've enabled only Forms authentification. When I try to enable Windows Auth for WinLogin.aspx only, "challenge-based and login redirect-based authentication cannot be used simultaneously" warning appears. Then, when I try to open WinLogin.aspx page using browser, "Internet Explorer cannot display the webpage" appears. When I use Mozilla FF, then "Object moved to here." appears.

In my opinion, the problem is, that IIS7 sends HTTP 302 Login/Redirect code, unfortunately, forms auth cannot be disabled on lower level.  Do you know how to solve this issue?

Thanks a lot.

Add Your Comments


Name: *
Email Address:
Web Address:
   
  
 
 
   
Verification Code:
*
 

Details
Category: Active Directory
Product: InstantKB.NET
Version: 2.0
Type: HOWTO
Level: Intermediate
Article not rated yet.
Article has been viewed 5,460 times.
Last Modified By: Ryan Healey
Last Modified:13th May 2009
Options

Home | Products | Purchase | Services | Support | Company | Contact Us
Privacy Statement | © 1999-2009 InstantASP Limited. All Rights Reserved.