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....@lists.freeradius.org 
[mailto:freeradius-users-bounces+ray.scholl=security7....@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
[email protected]<mailto:[email protected]>

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

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to