10,6 → 10,8 |
conf_file="/usr/local/etc/alcasar.conf" |
SSH=`grep ^SSH= $conf_file|cut -d"=" -f2` # sshd active (on/off) |
SSH=${SSH:=off} |
LDAP=`grep ^LDAP= $conf_file|cut -d"=" -f2` # ldap active (on/off) |
LDAP=${SSH:=off} |
SERVICES="mysqld lighttpd php-fpm ntpd havp dnsmasq dnsmasq-blacklist dnsmasq-whitelist dnsmasq-blackhole radiusd tinyproxy nfsen e2guardian freshclam ulogd-ssh ulogd-traceability ulogd-ext-access chilli fail2ban sshd vnstat" |
nb_available_srv=`echo $SERVICES|wc -w` |
|
57,3 → 59,11 |
else |
echo "The Log system is active" |
fi |
if [ ! -e /etc/raddb/mods-enabled/ldap ] |
then |
if [ $LDAP == "ON" ] || [ $LDAP == "on" ] || [ $LDAP == "On" ] |
then |
echo "Enable LDAP..." |
/usr/local/bin/alcasar-ldap.sh -on |
fi |
fi |