mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-12 21:06:27 +00:00
Add modules python
This commit is contained in:
parent
d2131cd3c4
commit
25aec5978e
2 changed files with 76 additions and 1 deletions
|
@ -1 +0,0 @@
|
|||
../rlm_python_re2o.conf
|
33
freeradius_utils/modules/rlm_python_re2o.conf
Normal file
33
freeradius_utils/modules/rlm_python_re2o.conf
Normal file
|
@ -0,0 +1,33 @@
|
|||
python re2o {
|
||||
mod_instantiate = auth
|
||||
func_instantiate = instantiate
|
||||
|
||||
# Pour le authorize, c'est auth.py qui fait le tri maintenant
|
||||
mod_authorize = auth
|
||||
func_authorize = authorize
|
||||
|
||||
# Renseigne le vlan si necessaire
|
||||
# remplacer par dummy_fun pour ignorer le tagging de vlan
|
||||
mod_post_auth = auth
|
||||
func_post_auth = post_auth
|
||||
|
||||
# Que faire avant de quitter
|
||||
mod_detach = auth
|
||||
func_detach = detach
|
||||
|
||||
# Le reste sert à rien
|
||||
mod_accounting = auth
|
||||
func_accounting = dummy_fun
|
||||
|
||||
mod_pre_proxy = auth
|
||||
func_pre_proxy = dummy_fun
|
||||
|
||||
mod_post_proxy = auth
|
||||
func_post_proxy = dummy_fun
|
||||
|
||||
mod_recv_coa = auth
|
||||
func_recv_coa = dummy_fun
|
||||
|
||||
mod_send_coa = auth
|
||||
func_send_coa = dummy_fun
|
||||
}
|
43
freeradius_utils/sites-enabled/radius-filaire
Normal file
43
freeradius_utils/sites-enabled/radius-filaire
Normal file
|
@ -0,0 +1,43 @@
|
|||
server radius-filaire{
|
||||
authorize{
|
||||
|
||||
re2o
|
||||
expiration
|
||||
logintime
|
||||
pap
|
||||
}
|
||||
authenticate{
|
||||
Auth-Type PAP{
|
||||
pap
|
||||
}
|
||||
Auth-Type CHAP{
|
||||
chap
|
||||
}
|
||||
Auth-Type MS-CHAP{
|
||||
mschap
|
||||
}
|
||||
digest
|
||||
unix
|
||||
eap
|
||||
|
||||
}
|
||||
preacct{
|
||||
preprocess
|
||||
acct_unique
|
||||
suffix
|
||||
files
|
||||
}
|
||||
accounting{
|
||||
}
|
||||
session{
|
||||
}
|
||||
post-auth{
|
||||
re2o
|
||||
exec
|
||||
}
|
||||
pre-proxy{
|
||||
}
|
||||
post-proxy{
|
||||
eap
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue