3.2 Active Directory Setup Instructions

Last post 11-29-2005 1:15 PM by rennie. 8 replies.

Sort Posts:

  • 3.2 Active Directory Setup Instructions

    11-21-2005, 7:59 AM
    • Member
      170 point Member
    • pauldes
    • Member since 04-23-2003, 11:40 PM
    • Houston, Texas
    • Posts 34
    Is there a definitive guide, URL, post, thread, etc. on how to install and setup the modules needed for the new 3.2 active directory login authentication? I'm sure it's out here. I can't seem to find it.

    Thanks
  • Re: 3.2 Active Directory Setup Instructions

    11-21-2005, 4:53 PM
    • Star
      13,648 point Star
    • cathal
    • Member since 06-18-2002, 4:02 PM
    • Belfast, Northern Ireland
    • Posts 2,702
    • TrustedFriends-MVPs
    theres documentation on the project downloads page for the Active Directory module.

    Cathal
  • Re: 3.2 Active Directory Setup Instructions

    11-21-2005, 8:20 PM
    • Member
      170 point Member
    • pauldes
    • Member since 04-23-2003, 11:40 PM
    • Houston, Texas
    • Posts 34

    Is it just me? I am logged in.

    I see no downloadable files at the module's project site. Also, viewing the discussions gives an error.

    Know if anywhere else?

  • Re: 3.2 Active Directory Setup Instructions

    11-22-2005, 10:25 AM
    • Contributor
      5,265 point Contributor
    • RLyda
    • Member since 03-30-2004, 6:21 PM
    • Charleston, SC
    • Posts 1,053
    No I don't see any files posted there either.
  • Re: 3.2 Active Directory Setup Instructions

    11-22-2005, 11:30 AM
    • Member
      20 point Member
    • Laell
    • Member since 11-11-2005, 8:42 PM
    • Springfield
    • Posts 4
    I see the same things you are describing.  I'm glad to know it isn't just me!
    "The quality of decision is like the well-timed swoop of a falcon which enables it to strike and destroy its victim. "

    Sun-Tzu, The Art of War
  • Re: 3.2 Active Directory Setup Instructions

    11-22-2005, 12:07 PM
    • Member
      20 point Member
    • kc9900
    • Member since 11-17-2005, 8:42 PM
    • Posts 4
    I posted this in the AD project forums yesterday, but it looks like it has been a while since any new posts have been approved. I'm reposting in hopes it saves you some time:

    I've been testing with the built-in AD auth module in DNN 3.2, and I thought I'd post the results of my testing in hopes it may help someone else out until the new docs are posted. All of this is on a Win2003 server with a fresh install of DNN 3.2 with a Windows 2000 Native mode Active Directory. The documentation from tttcompany.com for the DNN 3.0.13 module was a big help.


    Forms auth w/ AD Synch:
    Will let DNN users or AD users login. AD passwords are synched, groups are not synched after the first login. Uses the default DNN login screen.


    How I config'ed:
    Under Admin, Authentication:

    1. Checked "Windows Authentication".
    2. Checked "Synchronize Role?"
    3. Provider is "ADSIAuthenticationProvider"
    4. AuthType is "Delegation"
    5. Domain was set as so: dc=contoso,dc=com
        Another example, if your AD domain was msn.microsoft.com, you would use dc=msn,dc=microsoft,dc=com
    6. Username is netbiosdomainname\username
       Example: contoso\dnn-adauthaccount
       The account just needs read rights to the AD accounts you want to authenticate.
    7. Password and confirm password is obvious.
    8. Email domain example: @contoso.com
    9. Clicked "Update".

    10. You should get:
     Accessing Global Catalog:
    OK
    Checking Root Domain:
    OK
    Accessing LDAP:
    OK
    Find all domains in network:
    1 Domain(s):
    contoso.com (CONTOSO)


    11. Now any Security Roles that you want to use to set permissions must match the AD groups. With Forms authentication, they are only synched on first time account creation. Logout and try logging in with an AD account. Be sure to use the form netbiosdomain\useraccount, although I could login without the domainname\ prefix, but it would create two different user accounts. Supposedly this script can auto-add the domainname\ for you, but I haven't tested it: http://forums.asp.net/ShowPost.aspx?PageIndex=31&PostID=1041887#1041887


    So that's forms authentication. What if you want your AD users to login automatically as well? Tam calls this Windows/Form Mixed Authentication.


    Pros:
    1. Groups automatically are added after they are changed in AD, however, they will not unenroll from DNN after being removed from a group in AD.
    2. In certain situations inside the network users won't have to type a username/password to login.
    3. You can still use accounts that aren't added in AD.


    Cons:
    1. To autologin, you have to use this link instead of the regular DNN login link:
    http://dnnsite/admin/security/windowssignin.aspx
    2. Outside of your network, users will have to type their authentication info into a box determined by their browser. Usually, you have to include the domainname\username info (unless you use basic auth--which is a no-no without some SSL around it)


    To set Windows/Form Mixed Authentication up:


    1. Follow the above steps for Form-based auth.

    2. Go into IIS manager. Go to properties on DNNsite\admin\security\WindowsSignin.aspx. File Security, Edit. Uncheck "Enable anonymous access". Check "Integrated Windows Authentication".

    3. Open up explorer (file, not Internet) and browse to your dnn site. Go to properties on DNNsite\admin\security\WindowsSignin.aspx. Security tab, Remove the anonymous user access (IUSR_Server name and/or Users). Add a group for the people who you want to allow to autosign in (ex: Domain Users).

    4. Open up the Internet Explorer and add the following to your dnn site url:
    /admin/security/windowssignin.aspx. You should auto-login with IE. If it prompts for a username/password, you may need to add it to a "trusted site" or "local intranet site" in IE security.


    For auto-login without having to click the "Login" link


    It looks like this is primarily for intranet users (your users are always logged in, but outside your network everyone will be prompted for a user/pass to view the site) you uncomment the lines in the web.config. This I did not test, but appears to work for others.



    Notes


    1. I did not have to touch the web.config to set the above two authentication modes up.

    2. Integrated authentication is a bit touchy depending on the situation and proxy servers and other things, but it is predictable. You may have issues that have nothing to do with DNN. IE will cache your credentials with integrated auth until you close your browser. I've seen similar behavior with integrated auth in Exchange 2000. Be sure you are clearing cookies and synching your AD servers when testing.


    3. The http handler in the web.config appears to just pass any attempts to access the website to windowssignin.aspx first. If you don't want people to be auto-logged in without clicking the "Login" link, don't uncomment those lines.


    4. Groups autoupdate with Windows Auth. They do not autoupdate with Forms Auth after the user is created. They never remove a user from a security role after they are added.


    5. What if you don't want a user to have access to login to the web site with forms auth? I've found that in AD Users and Computers, Security tab for an account, if you deny Read access to the dnn authentication account, that specific account cannot login to the site (they get a bad password message). It'd be better if you could specify a subset of AD in the domain under Admin/Authentication instead (ex: ou=Teachers,ou=Staff,dc=contoso,dc=com), but deny rights gets the job done. Of course, WindowsAuth can be controlled with permissions on windowssecurity.aspx, but that won't work for forms auth.


    I appreciate the effort that has been put into DNN and this module. I've spent a lot of time trying to piece together how this works. The new integration into the core is great. Unfortunately, I think a lot of people would be less frustrated with DNN across the board if documentation were as important as the actual code. I hope this helps someone.

  • Re: 3.2 Active Directory Setup Instructions

    11-22-2005, 1:48 PM
    • Star
      13,648 point Star
    • cathal
    • Member since 06-18-2002, 4:02 PM
    • Belfast, Northern Ireland
    • Posts 2,702
    • TrustedFriends-MVPs
    sorry all, I didn't realise that the documents on that tab weren't publically viewable until a few minutes ago. Theres a number of documents that must not be up to release quality yet. I'm not involved in the AD efforts, so can't offer any more information, if I get a chance I'll ask one of them and post an update here.

    Cathal
  • Re: 3.2 Active Directory Setup Instructions

    11-22-2005, 2:20 PM
    • Member
      495 point Member
    • Revlis
    • Member since 12-04-2002, 6:56 PM
    • NJ
    • Posts 99
    Thanks so much for the great post kc9900!  I appreciate the time it took to put that together...

    (also of course appreciate the time it took to put DNN together!) 
  • Re: 3.2 Active Directory Setup Instructions

    11-29-2005, 1:15 PM
    • Member
      151 point Member
    • rennie
    • Member since 04-20-2004, 8:56 AM
    • BC, Canada
    • Posts 32
     pauldes wrote:

    Is it just me? I am logged in.

    I see no downloadable files at the module's project site. Also, viewing the discussions gives an error.

    Know if anywhere else?



    Try viewing the page as an anonymous visitor.  When I'm logged in, I see the same errors when I try to view the AD project page, but when I log out and view the page, then it works. 
Page 1 of 1 (9 items)