DNNCommunity / DNN.ActiveDirectory

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

Browser Login Popup #72

Closed swade61970 closed 4 years ago

swade61970 commented 4 years ago

Describe the bug

We have a production and a development environment running DNN Community for our Intranet. Different application server and different database instance between PROD and DEV.

We have a link on the main page that says CLICK HERE TO LOGIN. It goes to /DesktopModules/AuthenticationServices/ActiveDirectory/WindowsSignin.aspx

In DEV, users are automatically logged in after clicking link. No issues found.

In PROD, some users are automatically logged in after clicking link. But some users get a popup box to enter in username and password. But it isn't accepting their password so they can't log in.

Software Versions

To Reproduce

Steps to reproduce the behavior:

  1. Go to our intranet site.
  2. On home page click login
  3. Type in username and password and click ok

Expected behavior

User should be automatically logged in.

Screenshots

If applicable, add screenshots to help explain your problem. image

Error log

Note: Debug DLL's Afraid to do this during the day in PROD.

Additional context

sawest commented 4 years ago

The symptoms you describe appear to be permissions related. Make sure the users that get the popup have permissions to that site folder. That login is happening behind the scenes. When it doesn't work, you get the popup. The behavior you see when you type in the username and password is the same behavior that caused the popup. Need to find out why the webserver (not DNN or authentication provider) is refusing the credentials. That popup is straight from IIS.

swade61970 commented 4 years ago

The issue was permissions. I went to the following folder in the DNN Installation and modified the security for the WindowsSignin.aspx file. I gave every domain user Read & Execute and Read access to that file. Thanks.

\DesktopModules\AuthenticationServices\ActiveDirectory