mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
#484 Fixed issue with IIS ("Wrong password" at first prompt)
SVN:1.2[1610]
This commit is contained in:
@@ -347,11 +347,9 @@ EOF
|
|||||||
// Web server supplied authentication
|
// Web server supplied authentication
|
||||||
$bExternalAuth = false;
|
$bExternalAuth = false;
|
||||||
$sExtAuthVar = MetaModel::GetConfig()->GetExternalAuthenticationVariable(); // In which variable is the info passed ?
|
$sExtAuthVar = MetaModel::GetConfig()->GetExternalAuthenticationVariable(); // In which variable is the info passed ?
|
||||||
$sEval = '$bExternalAuth = isset('.$sExtAuthVar.');';
|
eval('$sAuthUser = isset('.$sExtAuthVar.') ? '.$sExtAuthVar.' : false;'); // Retrieve the value
|
||||||
eval($sEval);
|
if ($sAuthUser && (strlen($sAuthUser) > 0))
|
||||||
if ($bExternalAuth)
|
|
||||||
{
|
{
|
||||||
eval('$sAuthUser = '.$sExtAuthVar.';'); // Retrieve the value
|
|
||||||
$sAuthPwd = ''; // No password in this case the web server already authentified the user...
|
$sAuthPwd = ''; // No password in this case the web server already authentified the user...
|
||||||
$sLoginMode = 'external';
|
$sLoginMode = 'external';
|
||||||
$sAuthentication = 'external';
|
$sAuthentication = 'external';
|
||||||
|
|||||||
Reference in New Issue
Block a user