Line 128... |
Line 128... |
128 |
if ($auth_enable == "1"){
|
128 |
if ($auth_enable == "1"){
|
129 |
file_put_contents(ALCASAR_CONF_FILE, str_replace('LDAP=off', 'LDAP=on', file_get_contents(ALCASAR_CONF_FILE)));}
|
129 |
file_put_contents(ALCASAR_CONF_FILE, str_replace('LDAP=off', 'LDAP=on', file_get_contents(ALCASAR_CONF_FILE)));}
|
130 |
else {
|
130 |
else {
|
131 |
file_put_contents(ALCASAR_CONF_FILE, str_replace('LDAP=on', 'LDAP=off', file_get_contents(ALCASAR_CONF_FILE)));}
|
131 |
file_put_contents(ALCASAR_CONF_FILE, str_replace('LDAP=on', 'LDAP=off', file_get_contents(ALCASAR_CONF_FILE)));}
|
132 |
exec ("sudo /usr/local/bin/alcasar-iptables.sh");
|
132 |
exec ("sudo /usr/local/bin/alcasar-iptables.sh");
|
133 |
exec ("sudo service radiusd restart");
|
133 |
exec ("sudo /usr/bin/systemctl restart radiusd");
|
134 |
|
134 |
|
135 |
/********************************************************************
|
135 |
/********************************************************************
|
136 |
* Redirection vers la page de configuration LDAP *
|
136 |
* Redirection vers la page de configuration LDAP *
|
137 |
*********************************************************************/
|
137 |
*********************************************************************/
|
138 |
|
138 |
|