Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 2444 2017-11-26 23:08:16Z richard $
|
2 |
# $Id: alcasar.sh 2446 2017-12-03 23:07:18Z richard $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
|
5 |
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
Line 1100... |
Line 1100... |
1100 |
# INFO : To connect from outside (EAP), add the EAP virtual server (link in sites-enabled) and inner-tunnel modules (link in mods-enabled)
|
1100 |
# INFO : To connect from outside (EAP), add the EAP virtual server (link in sites-enabled) and inner-tunnel modules (link in mods-enabled)
|
1101 |
|
1101 |
|
1102 |
# Set modules
|
1102 |
# Set modules
|
1103 |
# Set only usefull modules for ALCASAR (ldap is enabled only via ACC)
|
1103 |
# Set only usefull modules for ALCASAR (ldap is enabled only via ACC)
|
1104 |
rm -rf /etc/raddb/mods-enabled/*
|
1104 |
rm -rf /etc/raddb/mods-enabled/*
|
1105 |
for mods in sql sqlcounter attr_filter expiration logintime pap expr
|
1105 |
for mods in sql sqlcounter attr_filter expiration logintime pap expr ldap
|
1106 |
do
|
1106 |
do
|
1107 |
ln -s /etc/raddb/mods-available/$mods /etc/raddb/mods-enabled/$mods
|
1107 |
ln -s /etc/raddb/mods-available/$mods /etc/raddb/mods-enabled/$mods
|
1108 |
done
|
1108 |
done
|
1109 |
# Configure SQL mod
|
1109 |
# Configure SQL mod
|
1110 |
[ -e /etc/raddb/mods-available/sql.default ] || cp /etc/raddb/mods-available/sql /etc/raddb/mods-available/sql.default
|
1110 |
[ -e /etc/raddb/mods-available/sql.default ] || cp /etc/raddb/mods-available/sql /etc/raddb/mods-available/sql.default
|