We are using the 6.x-1.x-dev Webserver auth with Windows server 2008 R2 and IIS 7.5 to access our Drupal intranet. Our Windows users have to change their passwords monthly. After doing this, they don't get automatically logged into the intranet any more (they did when they were first created) and appear as "Anonymous" in the log when they visit the forum - we see a "Login attempt failed for username" message in the log and the forum shows them as "Guest".

If an admin changes their password manually on Drupal to be the same as their new Windows password, they get automatically logged in again.

Can anyone suggest what we're doing wrong, or what we need to change to get users to automatically log in again after they change their network logon password?

Thanks in advance

Peter

Comments

QPeter’s picture

Status: Active » Fixed

We have managed to resolve the issue but are not sure why it occurred. Hopefully this explanation of what we did might help someone one day.

We did some more investigation. Setting the Drupal password to be identical to the Windows logon password did not get the auto log in to work for everyone (it did for some users). Other users were convinced that they had changed passwords on Windows in the past and continued to auto log in. During testing we saw one user who auto logged in this morning, press the Drupal log out and then have to manually log in after closing and reopening Internet Explorer 7.

We logged into the first Drupal user (admin) and uninstalled Webserver_auth. On the server, the empty webserver_auth folder in Modules remained there and no user (even the admin on the server) could delete it. The drupal error log began to show PHP errors "opendir(sites/all/modules/webserver_auth) [function.opendir]: failed to open dir: No error in C:\inetpub\wwwroot\intranet\includes\file.inc on line 931".

We stopped and started the IIS service and the webserver_auth folder disappeared from Windows explorer. We installed the 6.x-1.x webserver_auth module (not the dev version that we had been using). We checked the webserver_auth folder permissions and they were fine (inherited from the Modules folder).

All the users are now being automatically logged in (including those who we could not fix earlier). We're happy, the auto log in to the intranet is marvellous, but still puzzled why this issue started happening at all.

Comments welcome.

Status: Fixed » Closed (fixed)
Issue tags: -password

Automatically closed -- issue fixed for 2 weeks with no activity.