All,
Since DNN 3.2 has entered with tighter AD integration, I noticed one slight flaw in the archicture. At least from my point of view.
When a new user is authenticated via AD, the system checks if the user exists, if not it AUTOMATICALLY adds them as a user to the site.
This is good for an internet site, or a company wide site, however for smaller departmental intranets, this can pose a problem as you don't want users from another department accessing your sites. One way to do this is to change the File Structure security underneath the site to narrow the access, although this restricts access to all portals sharing the same code location.
I used this method in DNN 3.1.1, but have taken a different approach in DNN 3.2.
I have made a few CORE changes to enable a checkbox to be added to the AD module, which states to automatically create new users. It defaults to checked, which has the same effect as the current core. If you remove the check, it will NOT automatically authenticate the user, but set them as an unauthorized user, in the way the non AD modules do, where you can add a module to your home page for non authorized users stating this is a private site, etc....
I have a screen shot of the addition here: http://www.registrars.kent.edu/home/dotnetnuke/ADCoreMod.gif
I have also created a zip file of the files that were changed with documented changes, and the screenshot. This can be found here:
http://www.registrars.kent.edu/home/dotnetnuke/dnn32ad.zip
This has only been changed on DNN 3.2 since I do not run DNN 4.x yet, although, performing a diff on the files from their origional versions, the code should be fairly easy to implement on DNN 4 as it is basically an IF statement wrapper checking for that flag before adding the user.
Note: That this IS a CORE change, and has the possibility of being overwritten when another core is released.
To The CORE TEAM, this is a small incremental change that could be easily implemented and provides a little more security control over an AD site, without affecting the origional functionality of the site. Please consider adding this small change to the AD core.