Policy construct for string "concatenation"

Ray Scholl ray.scholl at security7.net
Thu Oct 13 19:40:14 CEST 2011


Thank you -

You refer to them as variables - so I am assuming it cannot be a constant?  I must declare a variable and assign 'otp'?

sOTP := 'otp'
if ( "%{FreeRadius-Client-Shortname}%{sOTP}" == "%{clients_ldap-Ldap-Group}" )   {

Am I correct?   Again, thanks in advance.

Ray



From: freeradius-users-bounces+ray.scholl=security7.net at lists.freeradius.org [mailto:freeradius-users-bounces+ray.scholl=security7.net at lists.freeradius.org] On Behalf Of Arran Cudbard-Bell
Sent: Thursday, October 13, 2011 1:29 PM
To: FreeRadius users mailing list
Subject: Re: Policy construct for string "concatenation"


On 13 Oct 2011, at 19:15, Ray Scholl wrote:


Good afternoon:

I was hoping to see if anyone could provide the best syntax to concatenate two strings being used in a comparison (policy.conf).


if("%{My-Var1}%{My-Var2}" == "%{My-Var3}"){

}

Left operand can be attribute ref or string, right operand must be a string. FreeRADIUS takes care of the type conversions...

Arran Cudbard-Bell
a.cudbardb at freeradius.org<mailto:a.cudbardb at freeradius.org>

Betelwiki, Betelwiki, Betelwiki.... http://wiki.freeradius.org/ !

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20111013/cef7d4b9/attachment.html>


More information about the Freeradius-Users mailing list