Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationProblems in getting AD auto-login to workProblems in getting AD auto-login to work
Previous
 
Next
New Post
5/11/2009 6:59 AM
 

I have been testing the ActiveDirectory 01.00.05 module on a DotNetNuke 04.09.03 website, in virtual machines, to test if its functionalities can fit what we pretend in our company. Unfortunately, I haven't managed to get it working the proper way. This is what we want:

a) for intranet users, logged in on startup in Windows using ActiveDirectory, the website would recognise them automatically and log them in without prompting anything. No IIS login dialogs, no website login forms, nothing.

b) for any other users, the website would not recognise them automatically, and then they could log in using their own AD username/password through the usual login form on the website. This would be highly useful for users trying to access the company intranet at home.

Well, the main question is: is this behaviour actually possible? From what I've understood from the forums and the documentation (I'm following the 01.00.04 documentation), there are trade-offs but it is. From my actual tests, it hasn't been possible, and I've been getting different behaviours from what's described in the documentation.

Most of the configuration options described seem to have no effect. No matter what I do with web.config, folder permissions, module options, the site always seems to behave the same: the first time the user logins, they get a IIS login dialog box. Then they get logged in and remembered by the website for about an hour or so. Afterwards, the login dialog box is back. If I press cancel when the dialog pops up, it gives me a "forbidden" error. But then if I put the website main URL I get access and am free to browse the website for about an hour. Until the login dialog box is back again.

The only way I get the login box to disappear is by commenting out <add name="Authentication" type="DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule, DotNetNuke.Authentication.ActiveDirectory" />. But then, the users don't get logged in automatically, unless they input their username/password in the website login form. Then they get remembered by the website. For about an hour.

I've tried setting and un-setting the website as part of the users' "trusted sites" in IE. Switching to Windows authentication in the web.config. Removing and giving permissions for anonymous access in the website folder. Adding and removing IP ranges to the Auto-login thing in the module options. Commenting and un-commenting the "impersonate" part in the web.config, using and not using a specific user in the module options. Nothing seems to work or make much difference.

I'm also having some weird side-issues, such as users sometimes being prompted to change their middle and last name in the website, right after they login using the website form; host accounts logging in sometimes as their Windows accounts without permissions; and duplicate users in the database (as "user" and "DOMAIN\user").

Any ideas? It would be greatly appreciated.

Cláudio Alegria

 
New Post
5/11/2009 11:52 AM
 

I'll have to go digging through my email to see if I can find the emails from user that had a similar problem but I'll answer what I can for now. It sounds as if you do have it setup correctly but for whatever reason you're getting the IIS login box. Does this happen on every computer?

Also, AD users should be listed as DOMAIN\User in the the database. If it's just user then it sounds as if the user has manually registered in the DNN site. I'll see if I can't dig up the email. I had some knee surgery last Friday and am not totally mobile as of yet.

 

 
New Post
5/11/2009 12:07 PM
 

Mike Horton wrote
 

I'll have to go digging through my email to see if I can find the emails from user that had a similar problem but I'll answer what I can for now. It sounds as if you do have it setup correctly but for whatever reason you're getting the IIS login box. Does this happen on every computer?

That's a good question actually, because I don't have real computers running this, I'm simulating an active directory network through virtual machines all running on the same PC. I only set up 1 of the machines as an Active Directory client, so haven't tried it anywhere else. I'll try installing another VM from scratch as a AD client to see if the same happens.

Maybe the configuration went wrong with AD and DNS, and not in integrating AD with DNN. I'm particularly suspicious about DNS because around the time I configured it, all my VMs (including the ones that weren't a part of these tests) stopped getting internet access.

Thanks.

 
New Post
5/14/2009 9:16 AM
 

Started everything from scratch again with a backup of the website, definitely configured DNS properly this time, and the problem still remains. Getting IIS login dialog boxes. Help please?

This time I am having to fill in the domain in the IIS login box, which I didn't previously ("DOMAIN\user" instead of just "user"). I suppose it's because this time I'm using different domain names for AD and the website. Before, I was using the same name for both.

 
New Post
5/15/2009 6:59 AM
 

Found the problem. I hadn't added the site to "local intranet", only to "trusted sites", putting it in "local intranet" fixed it. Oops.

Now the site works just as explained in the documentation. Except it's not really the ideal solution - having login boxes popping up for the extranet users, or having two different links for intranet/extranet (one to windowssigning.aspx, another to the normal form), are awkward situations in terms of usability. I suppose nobody ever managed to get around it?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationProblems in getting AD auto-login to workProblems in getting AD auto-login to work


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out