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 ForumsAuthenticationAuthenticationConfirmed: Intranet AD autologinConfirmed: Intranet AD autologin
Previous
 
Next
New Post
11/8/2006 2:11 PM
 

DNN 4.3.5, brand new installation

In the hope that posting a successful configuration might be valuable for some still feelign frustrated, here is what I was able to do.

First, I am trying to create an Intranet portal for use by domain users only.  I want DNN to recognize who is logged into Windows so that users do not need to login the the portal.  I will be using group membership to restrict viewing of certain pages to certain groups.

Here are the changes to a brand new 4.3.5 installation (unzipped from the Install zip file):

  1. Per http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/89/threadid/73435/scope/posts/Default.aspx:
    1. Updated four DLL's to fix several AD problems.
    2. I cannot speak to the efficacy of these, but it appears that they are a "good thing".
  2. Per http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/89/threadid/53005/scope/posts/Default.aspx:
    1. Using IIS, changed permissions of WindowsSignIn.aspx to REMOVE anonymous access
    2. Modified web.config to UN-comment the <httpModules><add name="Authentication"...> directive
  3. Per general instructions for Admin:Authentication
    1. Checked "Windows Authentication?"
    2. Checked "Synchronize Role?"
    3. Set "Root Domain" to "OU=People,dc=mydomain,dc=com" (we have all AD users under the OU named "People")
    4. Set "User Name" to <ad user>@mydomain.com (I created a special AD user just for AD authentication)
    5. Set password to the password for the user above
    6. Set "Email Domain" to "@mydomain.com"

I confirmed that this works for regular users.  However, there are several caveats.

  1. Incomplete user profiles in AD cause problems
    1. If a user does not have email in AD (many of our users do not have email), the user is still created in DNN, but the email field is blank.
      1. This causes an error when listing any users that do not have an email.
      2. I do not know how to fix this since I cannot get to the user profile to add an email address.
    2. We have some generic training accounts that do not have a first or last name (has one or the other).
      1. These users also cause problems in User Manager.
    3. I managed to fix one of these bad users by manipulating the tables, but this was a bad thing in general.
    4. Perhaps there is a way to provide defaults for these values if they are blank (and let me pick the defaults!).
  2. I don't know how to redirect http://myserver to http://myserver/admin/WindowsSignIn.aspx when users first open the page.
    1. I know I can set users' home page to the complicated URL, but that is a recipe for disaster.
    2. Does anyone know how to force WindowsSignIn to be invoked if the user is not logged in?
  3. Logout is still available
    1. Generally this is not a problem, but could confuse users
    2. It is actually the only way I know to login as the host user--logout as me and login as host user.

I am sure I missed something in my description, but I hope this gives confidence to someone still frustrated with a not-quite-ready-for-prime-time release.

 
New Post
11/8/2006 6:22 PM
 

1a:  This is a problem inherint from using that Module, and would definitely be something I'd add as a fix in future versions.  I did a SQL query (from Host menu) to set an e-mail address on all accounts that didn't have an e-mail address.

1b:  I haven't run into this one, but I assume you could fix it the same way.

1c:  Not too bad, as long as you know SQL queries.  But I agree, a modification of the AD module is in order to resolve this.

2a:  Why do you consider it a recipe for disaster? 

2b:  If you're running in complete AD integrated mode, you shouldn't "need" to redirect your users to that URL.  Simply browsing the website should log them in.  You might need to set your domain as a "Intranet" or "Trusted" site though first.

3a:  If you want to remove it, modify the skin and remove the [LOGIN] token.

3b:  True, that does make it difficult.  But, you can log in as host from the login menu (put the login module on a hidden page if you want), even if you are currently logged in.

 
New Post
11/8/2006 6:34 PM
 

I'm trying to do roughly the same as you - with more or less success depending on which bit you look at.

To make signing in easy for users, I added a "links" module to the home page. It has a single link to http://myserver/admin/WindowsSignIn.aspx. I set the display text for the link to "Sign in as the Current Windows User". Finally I made the links module only visible to unauthenticated users. This gives users a quick and easy way to sign in when web.config is setup to use forms authentication.

To force automatic signin, just change web.config to use windows authentication rather than forms authentication. (See section of web.config at end of this post for how to do this). This somewhat nullifies the above suggestion as the user can no longer sign out to ever see the module. To get around this limitation of not being able to sign out (this stops me gaining access to the portal to effect changes), I had to create a domain account called <domain>\Portalhost. I added a user with the same user name to the superuser accounts. Then, by logging in to windows as portalhost and accessing the portal, I can still make changes to the portal without making edits to the web.config every time. This is a good solution for me as I have access to a WTS box and I just RDP to is as portalhost and make changes from there.

I am still having some issues though.

  1. I must be blind because I cannot find the list of changes you referenced in another thread. Consequently I have problems with auto role assignments. Where did you get the changes from? (preferably source and compiled). If someone can point them out to me I'd be very grateful.
  2. I have an AD group X whose members are those in AD group Y. I also define roles X and Y in my portal. People who are in AD grout Y are automatically put into role Y. However, AD knows these users are also in group X, but DNN does not appear to put the users into role X. Still puzzling over this one. Hopefully the above problem will resolve this.
  3. Since I upgraded to DNN 4.3.5, the concept of "display name" has appeared. This is not populated from the AD and so no user name is displayed to the user to show who is logged in (and to have something to click on to make changes). Consequently, I have to make edits from the host account whenever a new user uses the portal. Mildly annoying.

Thanks

Bill

 

 

<!-- Forms or Windows authentication -->
<!-- Forms authentication 
<authentication mode="Forms">
<forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies" />
</authentication> -->
<!-- Windows authentication -->
<identity impersonate="true"/>
<authentication mode="Windows">
</authentication>
 
New Post
11/8/2006 7:12 PM
 

1a - Thanks! - I have been having issues with some of my users - I thought it was because they had a '_' in their AD username - I ran some scripts to fill in the blanks and it user management now works well

1c - Yes another thing to add to the list! - Until then I have this as a SPROC which is scheduled to run periodically

2a - I agree, not a great idea - especially when users want to email links to other users within the global organisation (who have access to the intranet, although are not controlled by you and therefore have never been 'forced' to goto the signin page)

3a - Yep, remove the login token, I also disable the hyperlink on the display name to prevent the user from editing their profile (I use SQL to pull details from a seperate employee DB)

3a - Also, remember you can re-assign the super user to your user account within the users table (I think you will need to REMOVE the flag from the host account before applying it to yours) - this way you are always logged in as host (like me!)

Matt

 
New Post
11/8/2006 9:01 PM
 
DanBall wrote

1a:  This is a problem inherint from using that Module, and would definitely be something I'd add as a fix in future versions.  I did a SQL query (from Host menu) to set an e-mail address on all accounts that didn't have an e-mail address.

Ah, that is an excellent idea.  I attached to the DB file using SQL Server 2005 management tools, but that seemed to screw up DNN while I did so.  I didn't want to mess up my DB.

2a:  Why do you consider it a recipe for disaster? 

This is for our corporate Intranet with hundreds of users.  If I create an alias for the server, something like "intranet", I want users to be able to just enter "intranet" in IE and have it log them in.  We would get many Help Desk calls about that URL.  Also, linking back to the Intranet from other web applications becomes problematic.

I want to get it down to just typing "intranet" in IE, which leads to...

2b:  If you're running in complete AD integrated mode, you shouldn't "need" to redirect your users to that URL.  Simply browsing the website should log them in.  You might need to set your domain as a "Intranet" or "Trusted" site though first.

I tried this, but I may not have done it right.  I tried to add my server name, say "intranet" as a trusted site.  That did not appear to make any difference--I was not logged in when I went to the root URL (http://intranet).  I still had to go to http://intranet/admin/WindowsSignIn.aspx before I was automatically signed in.

There may be a simple fix for this, but I am not sure what I am missing.

3a:  If you want to remove it, modify the skin and remove the [LOGIN] token.

Ah, another good point.

3b:  True, that does make it difficult.  But, you can log in as host from the login menu (put the login module on a hidden page if you want), even if you are currently logged in.

That is an excellent idea.  I did not know one could log in again before logging out.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationConfirmed: Intranet AD autologinConfirmed: Intranet AD autologin


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