Regular expressions on module 'files' (possible bug?)

2009-01-10 Thread Flamur Rogova
Hi, On 'users' file I have this entry; b2 User-Password := b2, Calling-Station-ID =~ (00:10:B5:7A:13:BD), Expiration := 28 Feb 2009 23:00:00 this entry should match only if Calling-Station-Id equals to 00:10:B5:7A:13:BD. on my case, it matches always, no matter what I send as

Re: sqlcounter returning wrong value?

2008-11-12 Thread Flamur Rogova
liran tal wrote: Waiting for that traffic limitation patch, Venkatesh. Thanks. Hi, I was stuck with this problem too, and I came up with this solution, which works in my test environment. The idea is to store allowed bytes in Tmp-Integer-0, than just use unlang to compare user's allowed

Re: strange rlm_expiration behavior

2008-10-02 Thread Flamur Rogova
Nicolas Goutte wrote: Previous answers to questions about user expiration told to write dates like Expiration := May 10 2008 21:00:00 So in your case, you should perhaps try: Expiration := Jan 01 2009 00:00:00 Have a nice day! Am 01.10.2008 um 11:31 schrieb Flamur Rogova: Hi, I am

strange rlm_expiration behavior

2008-10-01 Thread Flamur Rogova
Hi, I am having strange behavior of rlm_expiration where it always returns userlock, no matter what I put as expiration value. my radius install is latest from git repository, with default configuration (unchanged in any way), rlm_expiration rejects this user, date 10 Jan 2009, although it

sql insert via unlang

2008-06-19 Thread Flamur Rogova
Hi, I have a couple of modules in this order, and I need to log only rejects(from each module) to sql, - check_password, a1 User-Password := a1 - check_maxoctets, a1 Max-All-Octets := 10 in my authorize section, I have this, ... check_password if(notfound) { # log notfound to sql,

Problems with reject_delay in 2.0.5

2008-06-18 Thread Flamur Rogova
Hi, I am testing 2.0.5 and found that my reject-delays are always close to zero ms (16ms, or 0ms). I use rlm_fastusers, and my reject_delay (in radiusd.conf) is 1. This happens in both debug and non-debug mode. Has anybody else had similar problems ? Thanks, Flamur - List

multiple sessions with static IP assignment

2008-05-23 Thread Flamur Rogova
Hi, I have the following situation: each user can have 2 simultaneous sessions, but they must have static IPs (consecutive) for both sessions. For example, users file entries would look like this: test1 Cleartext-Password :=test1, Simultaneous-Use := 2 Framed-Ip-Address :=

SQLIP pool backend - MySQL or PostgreSQL

2008-05-07 Thread Flamur Rogova
Hi, I have been using rlm_ippool successfully for more than a year, and didnt have problems with it. Since we have many IP pools(~4-10 per nas) and we need non-continuous IP addresses in pool, I would try SQL based pools. I have read some posts that in MySQL you might get duplicate IPs if

Simultaneous-Use implementation in rlm_python

2006-08-31 Thread Flamur Rogova
: func_checksimul = checksimul python: mod_detach = pppoe python: func_detach = detach Module: Instantiated python (PPPoE) ... What should func_checksimul return to signify that user is already logged on / not loged on ? Is it safe to use this feature in production ? Regards, Flamur Rogova