Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 2601 2018-08-19 23:58:27Z tom.houdayer $
|
2 |
# $Id: alcasar.sh 2615 2018-08-22 21:36:29Z tom.houdayer $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
# ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
|
5 |
# ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
7 |
# team@alcasar.net
|
7 |
# team@alcasar.net
|
Line 964... |
Line 964... |
964 |
# Add custom LDAP "available module"
|
964 |
# Add custom LDAP "available module"
|
965 |
cp -f $DIR_CONF/radius/ldap-alcasar /etc/raddb/mods-available/
|
965 |
cp -f $DIR_CONF/radius/ldap-alcasar /etc/raddb/mods-available/
|
966 |
chown -R radius:radius /etc/raddb/mods-available/ldap-alcasar
|
966 |
chown -R radius:radius /etc/raddb/mods-available/ldap-alcasar
|
967 |
# Set only usefull modules for ALCASAR (ldap is enabled only via ACC)
|
967 |
# Set only usefull modules for ALCASAR (ldap is enabled only via ACC)
|
968 |
rm -rf /etc/raddb/mods-enabled/*
|
968 |
rm -rf /etc/raddb/mods-enabled/*
|
969 |
for mods in sql sqlcounter attr_filter expiration logintime pap expr
|
969 |
for mods in sql sqlcounter attr_filter expiration logintime pap expr always
|
970 |
do
|
970 |
do
|
971 |
ln -s /etc/raddb/mods-available/$mods /etc/raddb/mods-enabled/$mods
|
971 |
ln -s /etc/raddb/mods-available/$mods /etc/raddb/mods-enabled/$mods
|
972 |
done
|
972 |
done
|
973 |
# Configure SQL mod
|
973 |
# Configure SQL mod
|
974 |
[ -e /etc/raddb/mods-available/sql.default ] || cp /etc/raddb/mods-available/sql /etc/raddb/mods-available/sql.default
|
974 |
[ -e /etc/raddb/mods-available/sql.default ] || cp /etc/raddb/mods-available/sql /etc/raddb/mods-available/sql.default
|