logica de aprobacion ejecutandose, no se evalua siempre
This commit is contained in:
@@ -8,6 +8,10 @@ server inner-tunnel {
|
||||
authorize {
|
||||
# Cargar credenciales/atributos del usuario desde SQL
|
||||
sql
|
||||
# Si está deshabilitado en SQL, rechazar antes de EAP
|
||||
if ("%{sql:SELECT COUNT(*) FROM radcheck WHERE username='%{User-Name}' AND attribute='Auth-Type' AND value='Reject'}" != "0") {
|
||||
reject
|
||||
}
|
||||
# En caso de que el módulo SQL no haya poblado Cleartext-Password, obténlo vía xlat
|
||||
update control {
|
||||
Cleartext-Password := "%{sql:SELECT value FROM radcheck WHERE username='%{User-Name}' AND attribute='Cleartext-Password' ORDER BY id DESC LIMIT 1}"
|
||||
@@ -32,6 +36,9 @@ server inner-tunnel {
|
||||
Auth-Type MS-CHAP {
|
||||
mschap
|
||||
}
|
||||
Auth-Type Reject {
|
||||
reject
|
||||
}
|
||||
}
|
||||
|
||||
post-auth {
|
||||
|
||||
Reference in New Issue
Block a user