Skip to content

Commit

Permalink
Fixed issue #7021: Web server authentication broken
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 9, 2012
1 parent 93ef323 commit d4b1be7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/core/UserIdentity.php
Expand Up @@ -76,7 +76,10 @@ public function authenticate($sOneTimePassword='')
$sUser = substr($sUser, strrpos($sUser, "\\")+1);
}
$aUserMappings=Yii::app()->getConfig("auth_webserver_user_map");
if (isset($aUserMappings[$sUser])) $sUser= $aUserMappings[$sUser];
if (isset($aUserMappings[$sUser]))
{
$this->username = $sUser = $aUserMappings[$sUser];
}

$oUser=User::model()->findByAttributes(array('users_name'=>$sUser));
if (is_null($oUser))
Expand Down

0 comments on commit d4b1be7

Please sign in to comment.