Subversion Repositories ALCASAR

Rev

Rev 2464 | Rev 2466 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2464 Rev 2465
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2464 2017-12-17 15:35:45Z richard $
2
#  $Id: alcasar.sh 2465 2017-12-17 23:00:14Z 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 1114... Line 1114...
1114
	chmod 660 /etc/raddb/sites-available/alcasar
1114
	chmod 660 /etc/raddb/sites-available/alcasar
1115
	ln -s /etc/raddb/sites-available/alcasar /etc/raddb/sites-enabled/alcasar
1115
	ln -s /etc/raddb/sites-available/alcasar /etc/raddb/sites-enabled/alcasar
1116
# INFO : To connect from outside (EAP), add the EAP virtual server (link in sites-enabled) and inner-tunnel modules (link in mods-enabled)
1116
# INFO : To connect from outside (EAP), add the EAP virtual server (link in sites-enabled) and inner-tunnel modules (link in mods-enabled)
1117
 
1117
 
1118
# Set modules
1118
# Set modules
-
 
1119
# Add custom LDAP "available module"
-
 
1120
	cp -f $DIR_CONF/radius/ldap-alcasar /etc/raddb/mods-available/
-
 
1121
	chown -R radius:radius /etc/raddb/mods-available/ldap-alcasar
1119
# Set only usefull modules for ALCASAR (ldap is enabled only via ACC)
1122
# Set only usefull modules for ALCASAR (ldap is enabled only via ACC)
1120
	rm -rf  /etc/raddb/mods-enabled/*
1123
	rm -rf  /etc/raddb/mods-enabled/*
1121
	for mods in sql sqlcounter attr_filter expiration logintime pap expr
1124
	for mods in sql sqlcounter attr_filter expiration logintime pap expr
1122
	do
1125
	do
1123
		ln -s /etc/raddb/mods-available/$mods /etc/raddb/mods-enabled/$mods
1126
		ln -s /etc/raddb/mods-available/$mods /etc/raddb/mods-enabled/$mods