DNNCommunity / DNN.ActiveDirectory

Active Directory authentication for DNN
MIT License
26 stars 22 forks source link

Question: Getting Auto Login to work. #70

Open muddeatr opened 4 years ago

muddeatr commented 4 years ago

I have installed a new version of DNN 9.4 and the latest DNN.ActiveDirectory. Unfortunately I can not find simple instructions to get the auto login to work. I set the AD settings as best as I can understand but I am not having any luck with the auto login and auto create user. Are there simple instructions to get this to work or do I need to get a bachelors degree to understand this (little humor)?

sawest commented 4 years ago

Is this issue regarding the clarity of the instructions or a bug in the module? Please follow the guidelines when filing an issue so the community can better understand the need. Below is an easy template you can follow.

Describe the bug

A clear and concise description of what the bug is.

Software Versions

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Error log

Note: Debug DLL's Please replace the current extension DLL's with the debug DLL's (if these are available with the release) and reproduce the error with the debug DLL's before pasting the error log.

Paste the error log that is related to this issue.

Additional context

Add any other context about the problem here.

muddeatr commented 4 years ago

It's more inline with the clarity of instructions for the auto login. I can't determine which part of the wiki page is for installation and which part is to get the auto login to work.

sawest commented 4 years ago

Part 2 titled Installation is for installation (below) Part 2: Installation Installing the Active Directory Provider Log into your portal using an account with Host credentials. Select Extensions from the Host menu items. Select Install Extension Wizard. Browse to the location on your computer that you saved the AD Provider .zip fileand click “Next”. Read the accompanying license and check “Accept License” if you agree with it. Click “Next”. This will start the DotNetNuke Package Assembly Installer process. The DotNetNuke Package Assembly Installer will display a list of messages to indicate success or any failures as it uploads and installs the provider. If you encounter any errors during the installation process please check the Active Directory Provider forum on the DNN site. It’s possible that the error is already known to exist and remedies for the error will be listed. If the error does not exist then please post the error on the forum and someone will reply to you as soon as possible.

Part 3 titled Configuration is how to setup the module to work (below, autologin info in bold) Part 3: Configuration Setting Up the Active Directory Provider in DotNetNuke Log into your portal using an account with Admin credentials. Select Extensions from the Admin menu items, expand the Authentication Systems section, and click the pencil beside DNN_ActiveDirectoryAuthentication. Fill out the pertinent domain information Enabled – Enables the provider on the portal when checked. Hide Login Controls – Will hide the Windows Login tab from the Login screen. This can be useful if you find your users are confused as to which option they should chose or if you’ve provided a direct link to /DesktopModules/AuthenticationServices/ActiveDirectory/WindowsSignin.aspx elsewhere on your site for Intranet users. Synchronize Role – Synchronizes a user’s DotNetNuke Security Roles with their Active Directory roles when they login. Synchronize Photo - Active Directory stores a binary thumbnail photo of each user. Enabling this option will sync this photo to DNN and use it for the profile picture Enable Auto-Login - Enable this option if you want users to automatically be logged in to the portal with their current active directory credentials. This feature can be limited by IP using the Auto Login IP Address field. Do Not Automatically Create Users – Active Directory users will not be able to log into the portal until their accounts have been manually created. Provider – Currently only ADSIAuthenticationProvider is available for Active Directory. Authentication Type - Default is delegation and works for most setups. Root Domain - Enter your domain in either of the two formats; dc=domain, dc=com or LDAP://domain.com. User Name - Enter a user that has read access to the Active Directory. NOTE: The user does not have to have administrative rights on the domain. Password and Confirm Password - Enter the password for the user you entered under User Name. Default Domain – Enter the default domain that the users will belong to. This way they can log in with just their username rather than having to use DOMAIN\Username when manually logging in. Email Domain - Enter the email domain to be used for users that do not have email addresses listed in the Active Directory. Auto-login IP Address – Only used if Enable Auto-Login is checked. If left blank then the provider will try to auto login all visitors to the site. However, if you know the range of IP addresses or specific IP addresses that you want to be automatically logged in you can enter them here. Multiple IP address, ranges, etc. can be used as long as they are separated by a semi-colon (;). An example string would be “192.168.1.100 – 192.168.1.200; 192.168.1.1;” 192.168.1.100 – 192.168.1.200 – Any IP addresses including and between 192.168.1.100 and 192.168.1.200 will be automatically logged in. 192.168.1.1 – Only the computer with that IP address will be automatically logged in. Please note under gotchas if trying to use auto-login on the local server!

If you are trying to auto sign in on the local server then please reference the gotchas section.

muddeatr commented 4 years ago

And that's my problem. I followed everything in your response here to a "T" and the auto login is not working. So there must be some other instructions pertaining to the auto login on that wiki page that I have not done. I see favorable response from people so I'm not questioning whether the product works but what else is part of the setup for the auto login? Thank you for your quick responses!

sawest commented 4 years ago

That's all the instructions there are. If you want to share with the community information (use guidelines provided earlier) like your settings, how you are trying to auto login, what the result is (not working is not a result) then we can help you troubleshoot. Once we troubleshoot, we may find out that the problem wasn't missing/unclear instructions after all.

muddeatr commented 4 years ago

well maybe that's part of my misunderstanding with auto login. You ask "how you are trying to auto login" so now I'm more confused at to how many different ways there are to auto login. I assumed that a domain user is auto logged in upon visiting the site "someurl.com"?