Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2464 → Rev 2465

/web/acc/admin/ldap.php
176,7 → 176,6
$messages .= '<span style="font-weight: bold; color: red;">'.$error.'</span><br>';
}
} else {
exec('sed -i \'s/^LDAP=.*/LDAP=on/g\' '.CONF_FILE);
exec('sed -i '.escapeshellarg("s/^LDAP_SERVER=.*/LDAP_SERVER=$ldap_server/g").' '.CONF_FILE);
exec('sed -i '.escapeshellarg("s/^LDAP_BASE=.*/LDAP_BASE=$ldap_base_dn/g").' '.CONF_FILE);
exec('sed -i '.escapeshellarg("s/^LDAP_UID=.*/LDAP_UID=$ldap_uid/g").' '.CONF_FILE);
183,6 → 182,7
exec('sed -i '.escapeshellarg("s/^LDAP_FILTER=.*/LDAP_FILTER=$ldap_base_filter/g").' '.CONF_FILE);
exec('sed -i '.escapeshellarg("s/^LDAP_USER=.*/LDAP_USER=$ldap_user/g").' '.CONF_FILE);
exec('sed -i '.escapeshellarg("s/^LDAP_PASSWORD=.*/LDAP_PASSWORD=$ldap_password/g").' '.CONF_FILE);
exec('sed -i \'s/^LDAP=.*/LDAP=on/g\' '.CONF_FILE);
exec('sudo /usr/local/bin/alcasar-ldap.sh --on');
$messages .= '<span style="font-weight: bold; color: green;">'.$l_ldap_update.'</span><br>';
}