Comparing Two Attributes
Jenny Blunt
jennyshoehorn at me.com
Thu Jul 26 14:09:23 CEST 2012
Mucho gracias
On Jul 26, 2012, at 01:01 PM, Phil Mayers <p.mayers at imperial.ac.uk> wrote:
On 26/07/12 12:41, Jenny Blunt wrote:
> How do I go about comparing two attributes from an update request?
>
> I have the following in my default conf. file:
>
> update request {
> SQL-Location := "%{sql: SELECT xxx}"
> }
> update request {
> SQL-Location-Id := "%{sql: SELECT yyy }"
> }
>
> if (SQL-Location != SQL-Location-Id ) {
> reject
> }
>
if (SQL-Location == "%{SQL-Location-Id}") {
}
Bare words on the right hand side of operators are either interpreted as
dictionary values or string constants, not other variables.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120726/f237c557/attachment.html>
More information about the Freeradius-Users
mailing list