Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 614 → Rev 615

/web/acc/admin/update_ldap.php
6,6 → 6,7
 
define ("ALCASAR_RADIUS_SITE", "/etc/raddb/sites-available/alcasar");
define ("ALCASAR_RADIUS_MODULE_LDAP", "/etc/raddb/modules/ldap");
define ("ALCASAR_CONF_FILE", "/usr/local/etc/alcasar.conf");
 
/********************************************************************
* FONCTION ERREUR *
225,10 → 226,15
 
} //test $auth_enable
 
/********************************************************************
* Redémarage du service radius *
*********************************************************************/
/****************************************************************
* Redémarage des service *
*****************************************************************/
 
if ($auth_enable == "1"){
file_put_contents(ALCASAR_CONF_FILE, str_replace('LDAP=off', 'LDAP=on', file_get_contents(ALCASAR_CONF_FILE)));}
else {
file_put_contents(ALCASAR_CONF_FILE, str_replace('LDAP=on', 'LDAP=off', file_get_contents(ALCASAR_CONF_FILE)));}
exec ("sudo /usr/local/bin/alcasar-iptables.sh");
exec ("sudo service radiusd restart");
 
/********************************************************************
237,4 → 243,4
 
header('Location:ldap.php?update=ok');
exit();
?>
?>