freeradius: draft d'auth wifi via python
This commit is contained in:
parent
0a141bf7a5
commit
24d754566e
3 changed files with 230 additions and 0 deletions
35
freeradius/rlm_python_wifi.conf
Normal file
35
freeradius/rlm_python_wifi.conf
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Configuration for the Python module.
|
||||
#
|
||||
#
|
||||
|
||||
python crans_wifi {
|
||||
mod_instantiate = freeradius.auth
|
||||
func_instantiate = instantiate
|
||||
|
||||
# Spécifique au WiFi : rempli le mdp
|
||||
mod_authorize = freeradius.auth
|
||||
func_authorize = wifi_authorize
|
||||
|
||||
# Renseigne le vlan
|
||||
mod_post_auth = freeradius.auth
|
||||
func_post_auth = post_auth
|
||||
|
||||
# Le reste est dumb et inutile
|
||||
mod_accounting = freeradius.auth
|
||||
func_accounting = accounting
|
||||
|
||||
mod_pre_proxy = freeradius.auth
|
||||
func_pre_proxy = pre_proxy
|
||||
|
||||
mod_post_proxy = freeradius.auth
|
||||
func_post_proxy = post_proxy
|
||||
|
||||
mod_recv_coa = freeradius.auth
|
||||
func_recv_coa = recv_coa
|
||||
|
||||
mod_send_coa = freeradius.auth
|
||||
func_send_coa = send_coa
|
||||
|
||||
mod_detach = freeradius.auth
|
||||
func_detach = detach
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue