Re: Escaping things

2009-08-16 Thread Alan DeKok
Stun Box wrote: So, why do I get that behaviour ? May it come from my configuration files ?? I have no idea. Perhaps you could be more specific about what you're seeing. Use real examples. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Proxying accounting to create a 'tee'

2009-08-16 Thread Alan DeKok
vol...@ufamts.ru wrote: If home server does not respond, FR does not respond too - NAS repeats request - FR writes request data to SQL again. So... configure the server to respond. See the file raddb/sites-available/decoupled-accounting So we got two problems: 1) repeating requests 2)

Re: Authentication with mschap

2009-08-16 Thread Alan DeKok
Eric Bourkland wrote: It looks like it is trying the correct authentication ... Told to do MS-CHAPv2 for test.user with NT-Password FAILED: No NT/LM-Password. Cannot perform authentication. FAILED: MS-CHAP2-Response is incorrect. So... what are the contents of the NT-Password attribute?

Re: String Validation

2009-08-16 Thread Michael Bryant
If a connection that comes in with a GROUP NAME from SQL of USUK-XX or WUK-XX and I want to strip of the -XX, how would I do this with ulang so I only validate the following? Using the regexp feature, you can match part of an attribute then reference it later, like so: if (SQL-GROUP =~

Re: String Validation

2009-08-16 Thread Neville
If a connection that comes in with a GROUP NAME from SQL of USUK-XX or WUK-XX and I want to strip of the -XX, how would I do this with ulang so I only validate the following? Using the regexp feature, you can match part of an attribute then reference it later, like so: if (SQL-GROUP =~

Re: Stale Session and Simultaneous-Use Question

2009-08-16 Thread Deepak
On Sat, Aug 15, 2009 at 4:26 PM, Marinko Tarlacmangi...@gmail.com wrote: Just like I said... I already posted one solution on this list. In the same mail you will find 3 php lines for cron script and instructions for adding one column to radacct table... I won't be at home next 10 days so

Re: String Validation

2009-08-16 Thread Michael Bryant
The if statement can remain the same, add before it: if (SQL-GROUP =~ /(.*)-.*/) { update request { SQL-GROUP := %{1} } } This assumes that: a) There is never a '-' in the USUK or whatever part. b) You don't need to reference the original SQL-GROUP value.