40 lines
710 B
Plaintext
40 lines
710 B
Plaintext
server default {
|
|
listen {
|
|
type = auth
|
|
ipaddr = *
|
|
port = 1812
|
|
}
|
|
|
|
listen {
|
|
type = acct
|
|
ipaddr = *
|
|
port = 1813
|
|
}
|
|
|
|
authorize {
|
|
# Llama a la API REST para decidir y añadir atributos
|
|
rest
|
|
# Para laboratorio: aceptar todo siempre (MAC-Auth / pruebas)
|
|
update control {
|
|
Auth-Type := Accept
|
|
}
|
|
}
|
|
|
|
authenticate {
|
|
# Aceptar todo cuando control:Auth-Type := Accept
|
|
Auth-Type Accept {
|
|
ok
|
|
}
|
|
}
|
|
|
|
accounting {
|
|
rest
|
|
ok
|
|
}
|
|
|
|
post-auth {
|
|
# Aquí podríamos volver a llamar a REST para atributos dinámicos
|
|
# rest
|
|
}
|
|
}
|