Re: Policy construct for string "concatenation"

2011-10-15 Thread Arran Cudbard-Bell
On 15 Oct 2011, at 13:14, Ray Scholl wrote: > Good morning: > > So, I took all of your advice - example constructs, suggestion to do a little > testing etc. I built a duplicate server and my question still remain. > > The construct I have - > > if ( clients_ldap-Ldap-Group ==

Re: Policy construct for string "concatenation"

2011-10-15 Thread James J J Hooper
On 15/10/2011 12:14, Ray Scholl wrote: Good morning: So, I took all of your advice - example constructs, suggestion to do a little testing etc. I built a duplicate server and my question still remain. The construct I have - if ( clients_ldap-Ldap-Group == "%{FreeRadius-Cli

RE: Policy construct for string "concatenation"

2011-10-15 Thread Ray Scholl
--- From: freeradius-users-bounces+ray.scholl=security7@lists.freeradius.org [mailto:freeradius-users-bounces+ray.scholl=security7@lists.freeradius.org] On Behalf Of Alan DeKok Sent: Thursday, October 13, 2011 9:54 PM To: FreeRadius users mailing list Subject: Re: Policy construct for string "concatenation

Re: Policy construct for string "concatenation"

2011-10-13 Thread Alan DeKok
Ray Scholl wrote: > You refer to them as variables – so I am assuming it cannot be a > constant? I must declare a variable and assign ‘otp’? They're just strings. If you've done any kind of computer programming, string expansion should be familiar. (1) take the string "..." (2) Expand eve

Re: Policy construct for string "concatenation"

2011-10-13 Thread Arran Cudbard-Bell
On 13 Oct 2011, at 19:40, Ray Scholl wrote: > 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’? No. I said they could be attributes references or strings. You can use string constants. Like most languages

RE: Policy construct for string "concatenation"

2011-10-13 Thread Ray Scholl
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

Re: Policy construct for string "concatenation"

2011-10-13 Thread Arran Cudbard-Bell
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, ri

Policy construct for string "concatenation"

2011-10-13 Thread Ray Scholl
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). Synopsis: We intend to compare an LDAP group name to a Freeradius shortname, but we want the shortname to be "shortname" ++ "otp". The existing synt