Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2701 → Rev 2704

/conf/radius/alcasar-with-ldap
20,10 → 20,13
}
 
authorize {
ldap { fail = 1 }
if ((ok || updated) && User-Password) {
update control {
Auth-Type := LDAP
# 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 {
Auth-Type := LDAP
}
}
}