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 Mar 2, 2013
1 parent 605a447 commit 6eaf4fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/core/UserIdentity.php
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 6eaf4fb

Please sign in to comment.