/conf/radius/alcasar-with-ldap |
---|
20,6 → 20,8 |
} |
authorize { |
# if (!(&User-Name =~ /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/)) { |
if ((!&Calling-Station-Id) || (&User-Name != &Calling-Station-Id) || (!&User-Password) || (&User-Password != "password")) { # no LDAP query for @MAC |
ldap { fail = 1 } |
if ((ok || updated) && User-Password) { |
update control { |
26,6 → 28,7 |
Auth-Type := LDAP |
} |
} |
} |
sql { notfound = 1 } |
if ((notfound) && (!control:Auth-Type)) { |