When a new user visits the site, their account is created and the site front page is loaded. The navigation block is displayed, with the users login ID as the title, but none of the account links ("Recent posts", "My account", "Log out") are displayed. The first page reload fixes it.

Comments

starkos’s picture

It appears that by the time this module has completed the user login the menus have already been set -- other modules (OpenID, HTTP Authentication) perform a redirect at the end of the login process by calling drupal_goto() with no arguments. Adding this line to webserver_auth fixes the problem.

tmclaugh’s picture

I can confirm this issue as well when using mod_auth_kerb and apache. The problem appears to stem from the access column not being updated in the user table when the user is initailly created. I've worked around the issue with this added change to webserver_auth.module:

           $user = user_save("", array_merge($user_default, (array)$account));
           watchdog("user", "new user: $user->name (webserver_auth)", l(t("edit user"), "admin/user/edit/$user->uid"));
+         // update the access field so "My Account" page works on first try.
+         db_query("UPDATE {users} SET access = '%d' WHERE uid = '%s'", time(), $user->uid);
         }
       }

(There's probably a better way of doing this I'm guessing since I don't really know PHP and I'm new to Drupal. :)

However I will note at one point today this problem mysteriously appeared to go away for some reason while testing without that change and then came back. I wouldn't rule out a screw up on my part since I'm working on some other issues too.

gaards’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closed because Drupal 5 is not supported. If the issue verifiably applies to later versions, please reopen with details and update the version.