Skip to content

Commit

Permalink
Fixed issue #7049: Webserver authentication not working when external…
Browse files Browse the repository at this point in the history
… access control is used
  • Loading branch information
c-schmitz committed Feb 25, 2013
1 parent 04d6c18 commit ad10c28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/core/UserIdentity.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,11 @@ public function authenticate($sOneTimePassword='')
$sUser=$_SERVER['REMOTE_USER'];
} else {
$sUser = $_SERVER['LOGON_USER'];
$sUser = substr($sUser, strrpos($sUser, "\\")+1);
}
if (strpos($sUser,"\\")!==false) {
$sUser = substr($sUser, strrpos($sUser, "\\")+1);
}

$aUserMappings=Yii::app()->getConfig("auth_webserver_user_map");
if (isset($aUserMappings[$sUser]))
{
Expand Down

0 comments on commit ad10c28

Please sign in to comment.