36 lines
829 B
Plaintext
36 lines
829 B
Plaintext
rest {
|
|
# Timeouts
|
|
connect_timeout = 4
|
|
read_timeout = 8
|
|
|
|
# Authorize: llama al API Node
|
|
authorize {
|
|
uri = "http://node:3000/authorize"
|
|
method = "post"
|
|
body = "json"
|
|
# send_all = yes -> envía todos los atributos del paquete
|
|
# por defecto rlm_rest ya serializa atributos en JSON
|
|
}
|
|
|
|
# Accounting: opcional
|
|
accounting {
|
|
uri = "http://node:3000/accounting"
|
|
method = "post"
|
|
body = "json"
|
|
}
|
|
|
|
# Autorize para inner-tunnel (EAP)
|
|
authorize_inner_tunnel {
|
|
uri = "http://node:3000/authorize-inner"
|
|
method = "post"
|
|
body = "json"
|
|
}
|
|
|
|
# Post-auth: obtener atributos de respuesta (VLAN, etc.)
|
|
post-auth {
|
|
uri = "http://node:3000/post-auth"
|
|
method = "post"
|
|
body = "json"
|
|
}
|
|
}
|