I'm using drupal 4.5.0 w/ webserver_auth (1.9.2.2) under Apache 2.0.50 (Linux).

I am using mod_auth_pam and have confirmed HTTP auth is otherwise working (i.e., squirrelmail, which is under a subdir, is recognizing HTTP auth).

While I *am* authenticating, I still have to manually enter drupal credentials into login box -- IOW, entering 'whitney', 'password' into HTTP auth gets me to the drupal root, but (despite having similarly configured drupal user/password combination), I still have to enter login details.

I feel I have look over something obvious, but haven't a clue -- even how to start debugging.

TIA.

--
Whitney Williams
whitney-williams@shaw.ca

Comments

Whitney’s picture

Appears to be a duplicate of http://drupal.org/node/13619.

moshe weitzman’s picture

first, try this with a new username which does not exist in drupal. once this is working, you will have to add records in the authmap table for existing usernames which you want to hook into the webserver_auth world. the format of the authmap table will be obvious once you have added a couple new users via webserver_auth.

moshe weitzman’s picture

Status: Active » Closed (fixed)

no feedback

gilbertf-1’s picture

Version: 4.5.x-1.x-dev » master

Had a similar problem:

Looks like there is something wrong with the detection of the login name.

When you look in webserver_auth.module you will see:

// two ways to get $name
if ($name != $_SERVER["REMOTE_USER"]) {
  $name = $_SERVER["REDIRECT_REMOTE_USER"];
}

Looks like a little mistake, better use something like

 if ( !empty($_SERVER['REMOTE_USER']) ){ $name = $_SERVER['REMOTE_USER']; }
else  if ( !empty($_SERVER['REDIRECT_REMOTE_USER']) ){ $name = $_SERVER['REDIRECT_REMOTE_USER']; }
else { print "Somethin went wrong with login name detection"; }