Re: conditional variable assignment

2009-08-07 Thread Alan DeKok
Marlon Duksa wrote: Hi - if there any way to conditionally assign returned variables in users file? $ man unlang Use the right tool for the job. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: conditional variable assignment

2009-08-07 Thread Marlon Duksa
I can't run man unlang: /etc/freeradius$ man unlang No manual entry for unlang On Fri, Aug 7, 2009 at 2:36 AM, Alan DeKok al...@deployingradius.comwrote: Marlon Duksa wrote: Hi - if there any way to conditionally assign returned variables in users file? $ man unlang Use the right tool

Re: conditional variable assignment

2009-08-07 Thread charlie derr
Marlon Duksa wrote: I can't run man unlang: /etc/freeradius$ man unlang No manual entry for unlang Hmm, that's sort of your problem (not Alan's) but maybe this will get you started? (it took me all of half a minute to find) http://freeradius.org/radiusd/man/unlang.html ~c On

Re: conditional variable assignment

2009-08-07 Thread Marlon Duksa
Sorry - by my posting I meant to imply that 'unlang' module might be required but not installed, do I need to install it, is it part of original FR installation, etc. I'll find out when I start applying commands... Thanks, Marlon On Fri, Aug 7, 2009 at 10:08 AM, charlie derr cd...@simons-rock.edu

Re: conditional variable assignment

2009-08-07 Thread Alan DeKok
Marlon Duksa wrote: Sorry - by my posting I meant to imply that 'unlang' module might be required but not installed, do I need to install it, is it part of original FR installation, etc. It's installed as part of the normal server installation. If you don't have it, you are running a

Re: conditional variable assignment

2009-08-07 Thread Marlon Duksa
Thanks. We installed our freeradius about 6 months ago.But still, the 'unlang' is giving me some trouble, I can't start freeradius, probably the condition below is wrong, something with the syntax? This is what freeradius is complaining about: /etc/freeradius/users[99]: Parse error (reply) for

Re: conditional variable assignment

2009-08-07 Thread Alan Buxey
Hi, And here is mu unlang section: DEFAULT User-Name =~ ^([aA-zZ]+)-([aA-zZ]+)$, Cleartext-Password := csetestp Alc-Subsc-ID-Str := %{NAS-Port-Id}, Alc-Subsc-Prof-Str := %{1}, Alc-SLA-Prof-Str := %{2}, Alc-MSAP-Serv-Id := 100,

Re: conditional variable assignment

2009-08-07 Thread Marlon Duksa
Is all this explained anywhere? On Fri, Aug 7, 2009 at 12:03 PM, Alan Buxey a.l.m.bu...@lboro.ac.uk wrote: Hi, And here is mu unlang section: DEFAULT User-Name =~ ^([aA-zZ]+)-([aA-zZ]+)$, Cleartext-Password := csetestp Alc-Subsc-ID-Str := %{NAS-Port-Id},

Re: conditional variable assignment

2009-08-07 Thread Alan Buxey
Hi, Is all this explained anywhere? man unlang the first basic paragraphs state: The goal of the language is to allow simple policies to be written with minimal effort. Those policies are then applied when a request is being processed. Requests are processed

Re: conditional variable assignment

2009-08-07 Thread Alan DeKok
Marlon Duksa wrote: Is all this explained anywhere? The format of the users file is documented in the comments at the top of the users file, and in the man page for the users file. You were already told this. If you put text into the users file that does NOT match the documented format,

Re: conditional variable assignment

2009-08-07 Thread Alan DeKok
Marlon Duksa wrote: Thanks. We installed our freeradius about 6 months ago. Let me guess... this means you're running 1.1.x, because you haven't bothered to check the version of the software that you're running? If you don't have a man unlang page, it's because the version you're running

Re: conditional variable assignment

2009-08-07 Thread Marlon Duksa
you two Alans crack me up :) Anyways - you're right, I'm running 1.1.7, just checked. So I'll upgrade before I proceed with this, then I hope I'll have mode documentation available to tell me how to run this. On Fri, Aug 7, 2009 at 1:21 PM, Alan DeKok al...@deployingradius.comwrote: Marlon

Re: conditional variable assignment

2009-08-07 Thread Marlon Duksa
Also the problem is that the most recent FR source code for Ubuntu is 1.1.7, just checked. On Fri, Aug 7, 2009 at 2:10 PM, Marlon Duksa mdu...@gmail.com wrote: you two Alans crack me up :) Anyways - you're right, I'm running 1.1.7, just checked. So I'll upgrade before I proceed with this,

Re: conditional variable assignment

2009-08-07 Thread Alan Buxey
Hi, Also the problem is that the most recent FR source code for Ubuntu is 1.1.7, just checked. i built 2.1.6 on an ubuntu box last week. downloaded the source code from www.freeradius.org and compiled it (after installing build-essentials and various devel packages to ensure OpenSSL/EAP etc

conditional variable assignment

2009-08-06 Thread Marlon Duksa
Hi - if there any way to conditionally assign returned variables in users file? For example: DEFAULT User-Name =~ ^([aA-zZ]+)-([aA-zZ]+)$, Cleartext-Password := csetestp Alc-Subsc-ID-Str := %{NAS-Port-Id}, Alc-Subsc-Prof-Str := %{1}, Now I want to do