21 Jul
2010
21 Jul
'10
7:10 a.m.
Johan Meiring wrote:
I disagree with the logic slightly. In my opinion it will also be rejected if ADSL-Agent-Circuit-Id does not exist.
Yes. It all depends on what you want.
As fas as I understand, the desireable result is: If the ADSL-Agent-Circuit-Id does *not* exist, normal authentication must happen. If it *does* exist, accept or reject, depending on its value.
Would this not work better?
authorize { ... if (ADSL-Agent-Circuit-Id) { if ("%{sql: select ...}") { update control { Auth-Type := Accept } } else { reject } } }
Yes, that will do what you want. Alan DeKok.