I am currently setting up an intranet using DNN in replacement of our previous software. One of the features that my users really like is having it automatically log them in so they don't have to do jack.
With that in mind, I decided to look in to the active directory method by Tam and the other guy (sorry other guy, can't remember your name). While their method is really good, it had some things that I really didn't like about it. For one, it automatically registered an active directory user in the portal the second they attempted to access it, whether I want them to be able to or not. Additionally, it creates the users with "domain\username" format which is really undesirable.
As part of my process, I'm writing my own import routine because I have to put people in to security roles based on which department they work in, if they are a manager, etc. So, I already have users in the DB... I really don't want duplicates.
My solution? I came up with a sneaky way to continue with the forms authentication but still figure out who they are. I have no idea if this works with firefox or other browsers since I don't have to care about that (all computers in the company are loaded with IE and nobody has rights to install their own software). However, it works beautifully in tests I have ran with IE6.
I created a very simple module that detects logon from the server variables and then strips out domain info, uses the UserController.LoadByName (or whatever method it was) to get them, and if i find them, do the login code myself.
Can get this at http://foober.homeip.net under my software section (with source code).
Curious if anybody has done something similar or has comments about it.
- Fooberichu