Re: Cleanup Stale Sessions - needed?

2011-06-20 Thread Fajar A. Nugraha
On Tue, Jun 21, 2011 at 6:17 AM, Paolo Di Francesco wrote: > Hi Gary > > I did the same in many other situations, and not always I got the > expected result. > > In some circumstances it was working, in others it was like the "press > here to collapse the world" just with the stickers "press me ho

Re: 2.1.x 34c68ba8: freebsd 7.x: segfault/internal error in select()

2011-06-20 Thread Russell Jackson
On 06/20/2011 04:56 PM, Russell Jackson wrote: > I'm getting a segfault on exit after logging this to syslog: > > Exiting due to internal error: Failed in select: Invalid argument > kernel: pid 87513 (radiusd), uid 133: exited on signal 11 > > select(2) indicates that EINVAL is returned when the

Re: 2.1.x 34c68ba8: freebsd 7.x: segfault/internal error in select()

2011-06-20 Thread Russell Jackson
On 06/20/2011 05:03 PM, Russell Jackson wrote: > On 06/20/2011 04:56 PM, Russell Jackson wrote: >> I'm getting a segfault on exit after logging this to syslog: >> >> Exiting due to internal error: Failed in select: Invalid argument >> kernel: pid 87513 (radiusd), uid 133: exited on signal 11 >> >

Re: 2.1.x 34c68ba8: freebsd 7.x: segfault/internal error in select()

2011-06-20 Thread Russell Jackson
On 06/20/2011 04:56 PM, Russell Jackson wrote: > I'm getting a segfault on exit after logging this to syslog: > > Exiting due to internal error: Failed in select: Invalid argument > kernel: pid 87513 (radiusd), uid 133: exited on signal 11 > > select(2) indicates that EINVAL is returned when the

2.1.x 34c68ba8: freebsd 7.x: segfault/internal error in select()

2011-06-20 Thread Russell Jackson
I'm getting a segfault on exit after logging this to syslog: Exiting due to internal error: Failed in select: Invalid argument kernel: pid 87513 (radiusd), uid 133: exited on signal 11 select(2) indicates that EINVAL is returned when the timeout is invalid (being negative or too large). I modifie

Re: Cleanup Stale Sessions - needed?

2011-06-20 Thread Paolo Di Francesco
Hi Gary I did the same in many other situations, and not always I got the expected result. In some circumstances it was working, in others it was like the "press here to collapse the world" just with the stickers "press me honey" on top of it. Just wondering if somebody can point me to the right

Re: chain two authentication modules together

2011-06-20 Thread Alexander Clouter
madmatrix wrote: > > Alexander, one thing I'm still confused here is why we put otp and > ldap all in authorization block in freeradius not the authentication? > As I'm an idiot. They should also be present in the authenticate section. In authorise, your OTP python method checks to see if it

RE: Cleanup Stale Sessions - needed?

2011-06-20 Thread Gary Gatten
Snip "much like a big red button that says 'dont press' ;-)" Ah, I did that once just to see what would happen. I STRONGLY recommend against it. No I really didn't, but it is REALLY tempting some days! "This email is intended to be reviewed by only the intended recipient and

Re: Cleanup Stale Sessions - needed?

2011-06-20 Thread Paolo Di Francesco
Hi Alan, hum... any freeradius script/comand that I could use instead of the teasing red button with the "don't press this button" written on it? :) Afterall I only want to "flush" the sessions older than 1 day > Hi, > >> So I have this teasing menu option in daloradius which is called >> "Cle

Re: Cleanup Stale Sessions - needed?

2011-06-20 Thread Alan Buxey
Hi, > So I have this teasing menu option in daloradius which is called > "Cleanup Stale Sessions". I think it does exactly what I need but: > > 1) I do not want to break the radiusd > 2) I do not want to loose my radius logs ("who had that IP that day..") > 3) I do not know if this is the right "

Cleanup Stale Sessions - needed?

2011-06-20 Thread Paolo Di Francesco
Hi Radius Gurus I have a problem with one not-so-typical situation. First of all, I am running daloradius on top of Freeradius: [root@radman ~]# radiusd -v radiusd: FreeRADIUS Version 2.1.7, for host i686-redhat-linux-gnu, built on Mar 31 2010 at 00:25:31 Copyright (C) 1999-2009 The FreeRADIUS s

Re: chain two authentication modules together

2011-06-20 Thread madmatrix
Alexander, one thing I'm still confused here is why we put otp and ldap all in authorization block in freeradius not the authentication? Lou On Jun 18, 2011 6:11 AM, "Alexander Clouter [via FreeRadius]" < ml-node+4501148-2134591798-220...@n5.nabble.com> wrote: > > > madmatrix wrote: >> >> Thanks

Re: Migrating to threaded rlm_perl

2011-06-20 Thread Alexander Clouter
Energ wrote: > > But, would it make any difference by using BEGIN{} block for creating shared > memory segment? Wont threaded rlm_perl process this section in every thread > it starts? > Threaded to FreeRADIUS means those methods you define are reentrant. IIRC BEGIN{} is called only when rlm_p

Re: Migrating to threaded rlm_perl

2011-06-20 Thread Energ
Thanks, Alexander! But, would it make any difference by using BEGIN{} block for creating shared memory segment? Wont threaded rlm_perl process this section in every thread it starts? -- View this message in context: http://freeradius.1045715.n5.nabble.com/Migrating-to-threaded-rlm-perl-tp450604

Re: Version 2.1.11 has been released

2011-06-20 Thread Alan Buxey
Hi, > Fix it real quick before many download it, call it 2.1.11.1 - or 2.1.11a :) if its to be changed then 2.1.12 and at least change the old year in src/main/version.c there are other date copyright files - i guess the authors should assert this but the main project should cover share/format.

Re: Version 2.1.11 has been released

2011-06-20 Thread Alan Buxey
Hi, > Arg. That's annoying. It would have been nice to catch that. it must have gone in pretty late as we didnt have an issue with 2.1.11 GIT release on our test server (which is now running 3.0.0 GIT for some REAL testing ;-) ) alan - List info/subscribe/unsubscribe? See http://www.freerad

RE: Version 2.1.11 has been released

2011-06-20 Thread Gary Gatten
Fix it real quick before many download it, call it 2.1.11.1 - or 2.1.11a :) -Original Message- From: freeradius-users-bounces+ggatten=waddell@lists.freeradius.org [mailto:freeradius-users-bounces+ggatten=waddell@lists.freeradius.org] On Behalf Of Alan DeKok Sent: Monday, June 20,

Re: Version 2.1.11 has been released

2011-06-20 Thread Alan DeKok
Alan Buxey wrote: > however, a nice quirky change in config parser means that any unlang > style code with an 'if' condition check that end with no space before > curlies eg Arg. That's annoying. It would have been nice to catch that. Anyways, the fix is simple. At least there's a descr

Re: Version 2.1.11 has been released

2011-06-20 Thread Alan Buxey
Hi, > It's been a long time since 2.1.10. We're happy to release version > 2.1.11, which has many of useful new features, and a number of minor > bugs fixed. yay! :-) however, a nice quirky change in config parser means that any unlang style code with an 'if' condition check that end wit

Re: Migrating to threaded rlm_perl

2011-06-20 Thread Alexander Clouter
Energ wrote: > > Please, help me with understanding of concept how to rewrite my perl > module to work with threaded perl. > > Now it looks like this: > > [snipped thread unsafe code] > > While non-threaded perl it works as expected. But threading breaks creation > of Shared memory (cuz it wa

RE: Opposite of Expiraton attribute?

2011-06-20 Thread Matthew George
Works perfectly!!! Thank you so much Phil. --- raddb/dictionary: ATTRIBUTE Current-Date3000string raddb/sites-enabled/xx: authorize { ... update request { Current-Time-Date := " %m-%d-%Y" } sql ... } MySQL radcheck tabl

Migrating to threaded rlm_perl

2011-06-20 Thread Energ
Hi everyone! Please, help me with understanding of concept how to rewrite my perl module to work with threaded perl. Now it looks like this: my %options_pools = (create=>1, exclusive=>0, mode=>0644, destroy=>1); tie my %pooldb, 'IPC::Shareable', $pools_glue, { %options_pools } or die "Tie failed

Version 2.1.11 has been released

2011-06-20 Thread Alan DeKok
It's been a long time since 2.1.10. We're happy to release version 2.1.11, which has many of useful new features, and a number of minor bugs fixed. Thanks to everyone who contributed features, bug fixes, and bug reports. Your contributions help make the server better. The full change log

Re: Opposite of Expiraton attribute?

2011-06-20 Thread Phil Mayers
On 06/20/2011 10:53 AM, Phil Mayers wrote: %S expands to an "SQL time"; e.g. a few minutes ago: 2011-06-20 10:48:49 ...so in radcheck you can put: Current-Time-Date >= 2011-07-01 00:00:00 FYI, there is also: %D ...which expands to: 20110701 ...so you can use this to populate a Current-D

Re: Opposite of Expiraton attribute?

2011-06-20 Thread Phil Mayers
On 06/18/2011 07:30 PM, Matthew George wrote: Thanks you so much for your assistance p.mayers In a nutshell, probably the easiest way to do what I'm trying to do is maybe to use an attribute called "Current-Time-Date" Ok, so you can do this: raddb/dictionary: ATTRIBUTE Current-Time-Date 3001

Re: Wiki down for maintenance

2011-06-20 Thread Arran Cudbard-Bell
It's back. Please report any new bugs. Known bugs are: * Duplicate TOC on mediawiki pages, this is due to wikicloth enabling their TOC by default, and tilt not telling them not to. * Only displays last commit user, not last commit for page user (this is an upstream bug) Current feature requests

Wiki down for maintenance

2011-06-20 Thread Arran Cudbard-Bell
Dear FreeRADIUS users, The wiki will be going down for maintenance in approximately 10 minutes (8:50AM GMT), hope to have it back up within about 30 minutes. Please save any pages you're working on. The downtime is to switch to a new branching structure to manage customisations, and to switch