Ejemplo n.º 1
0
     $_POST['ldap_group'] = 1;
 } else {
     $_POST['ldap_group'] = 0;
 }
 if (isset($_REQUEST['ldap_authentication_checkbox']) && $_REQUEST['ldap_authentication_checkbox'] == 'on') {
     $_POST['ldap_authentication'] = 1;
 } else {
     $_POST['ldap_authentication'] = 0;
 }
 if (isset($_REQUEST['passwordsetting_lockoutexpirationtime']) && is_numeric($_REQUEST['passwordsetting_lockoutexpirationtime'])) {
     $_POST['passwordsetting_lockoutexpiration'] = 2;
 }
 // Check SAML settings
 if (!empty($_POST['authenticationClass']) && $_POST['authenticationClass'] == 'SAMLAuthenticate') {
     if (empty($_POST['SAML_loginurl'])) {
         $configurator->addError($config_strings['ERR_EMPTY_SAML_LOGIN']);
         break;
     } else {
         $_POST['SAML_loginurl'] = trim($_POST['SAML_loginurl']);
         if (!filter_var($_POST['SAML_loginurl'], FILTER_VALIDATE_URL)) {
             $configurator->addError($config_strings['ERR_SAML_LOGIN_URL']);
             break;
         }
     }
     if (!empty($_POST['SAML_SLO'])) {
         $_POST['SAML_SLO'] = trim($_POST['SAML_SLO']);
         if (!filter_var($_POST['SAML_SLO'], FILTER_VALIDATE_URL)) {
             $configurator->addError($config_strings['ERR_SAML_SLO_URL']);
             break;
         }
     }