Skip to content

Commit

Permalink
Fixed #7743: Webserver authentication plugin does not work with Kerbe…
Browse files Browse the repository at this point in the history
…ros authentication
  • Loading branch information
mennodekker committed Apr 9, 2013
1 parent 965fa89 commit 558622f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/core/plugins/Authwebserver/Authwebserver.php
Expand Up @@ -30,7 +30,11 @@ public function beforeLogin()
$sUser = $_SERVER['LOGON_USER'];
}
if (strpos($sUser,"\\")!==false) {
// Get username for DOMAIN\USER
$sUser = substr($sUser, strrpos($sUser, "\\")+1);
} elseif (strpos($sUser,"@")!==false) {
// Get username for USER@DOMAIN
$sUser = substr($sUser, 0, strrpos($sUser, "@"));
}

$aUserMappings=$this->api->getConfigKey('auth_webserver_user_map', array());
Expand Down

0 comments on commit 558622f

Please sign in to comment.