#484 Fixed issue with IIS ("Wrong password" at first prompt)

SVN:1.2[1610]
This commit is contained in:
Romain Quetiez
2011-09-28 12:59:40 +00:00
parent 635cb424a2
commit e4e814281d

View File

@@ -346,12 +346,10 @@ EOF
case 'external': case 'external':
// 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';