Re: rlm_perl and Threaded Perl??

2012-02-14 Thread Simon Earthrowl
Hardware: based on ESX host: 4 core 2.1GHz processor (have 24 cores to play with) 8GB Memory (have more as needed) CentOS 5.7 x84_64 (latest patches) MySQL 5.5.20 - Same VM and supplied by Oracle FreeRadius 2.1.12-7 - complied here, with MySQL libraries for version 5.5.20 Li

Re: rlm_perl and Threaded Perl??

2012-02-13 Thread Alan DeKok
Simon Earthrowl wrote: > FR 2.1.12-1 and 2.1.12-7, but also looked at 3.0.0. > I manage to get 2048 perl threads (assumed from /netstat -ap/ - as I'm > interfacing into Apache's ActiveMQ), then when I hit 2049 threads FR > crashes. See doc/bugs for how to deal with crashes. And 2K threads?

Re: rlm_perl and Threaded Perl??

2012-02-13 Thread Alan DeKok
Simon Earthrowl wrote: > > Hello, > I've been looking at free radius wiki > <http://wiki.freeradius.org/Rlm_perl>, and read all about interpreter > pools. the prerequisites are that perl is complied with USE_ITHREADS and > a bit lower also with MULTIPLICITY. I ha

Re: rlm_perl and Threaded Perl??

2012-02-13 Thread Fajar A. Nugraha
On Tue, Feb 14, 2012 at 6:32 AM, Simon Earthrowl wrote: > FR 2.1.12-1 and 2.1.12-7, but also looked at 3.0.0. > I manage to get 2048 perl threads (assumed from netstat -ap - as I'm > interfacing into Apache's ActiveMQ), then when I hit 2049 threads FR > crashes. Why would you want that many threa

Re: rlm_perl and Threaded Perl??

2012-02-13 Thread Simon Earthrowl
FR 2.1.12-1 and 2.1.12-7, but also looked at 3.0.0. I manage to get 2048 perl threads (assumed from /netstat -ap/ - as I'm interfacing into Apache's ActiveMQ), then when I hit 2049 threads FR crashes. Simon On 02/13/2012 11:25 PM, Alan Buxey wrote: Hi, I've been looking at [1]free radi

Re: rlm_perl and Threaded Perl??

2012-02-13 Thread Alan Buxey
Hi, >I've been looking at [1]free radius wiki, and read all about interpreter >pools. the prerequisites are that perl is complied with USE_ITHREADS and a >bit lower also with MULTIPLICITY. I have both. what I can't seem to get >working is the thread management as: what version of

rlm_perl and Threaded Perl??

2012-02-13 Thread Simon Earthrowl
Hello, I've been looking at free radius wiki, and read all about interpreter pools. the prerequisites are that perl is complied with USE_ITHREADS and a bit lower also with MULTIPLICITY. I have both. what I can't seem to get working is the thread management

RE: Cannot control attribute ordering via "rlm_perl"

2012-01-29 Thread Claude Brown
> > I'd normally just put users into SQL. > Yes - this was our default approach. It made the most sense to us initially. rlm_sql - highly dynamic - need non-trivial skills to config "right" for performance - need extra h/w to scale for white-hot performance rlm_files - not so dynamic (regul

RE: Cannot control attribute ordering via "rlm_perl"

2012-01-29 Thread Claude Brown
> > > - each user performing 7 authentications during EAP negotiation > > ummm, why? with correctly configured server and 'protection' of the > authentication > type, you should only hit your authentication server just once inside the > EAP tunnel when the identity is set/known. > I'm not acros

RE: Cannot control attribute ordering via "rlm_perl"

2012-01-29 Thread Claude Brown
> > So to confirm, your new module is basically files module, but it does > NOT cache anything in directory, but re-read the files on disk for > every request, is that correct? > Roughly correct. No caching, and reads on disk for every request. We rely on the block-buffer cache to make it go b

Freeradius and rlm_perl auth

2012-01-26 Thread Fabricio Flores
Hello I´m using a perl script to authenticate in a web services. My scrpit works with the web services but I want that with my scrpit authenticate in a freeradius server. I don´t know wich files I must modify and what I must modify to it works. Thaks for your answers. -- Fabricio A. Flores G. Egr

Re: Cannot control attribute ordering via "rlm_perl"

2012-01-24 Thread Alan DeKok
Claude Brown wrote: > We didn't try this. That would fix it. > Our design goal is: > - 250K users all needing to get on the network at the same time > - each user performing 7 authentications during EAP negotiation That should be fixed, too. There is NO NEED to do 7 SQL queries. You can pu

Re: Cannot control attribute ordering via "rlm_perl"

2012-01-24 Thread Alan DeKok
Claude Brown wrote: > My original reply was confusingly brief. I've clarified below, and I've also > put the module we wrote into github in case it helps: > > https://github.com/claudebrown/freeradius-server/compare/master...rlm_tagfiles OK. It's... odd. > We avoided both "fastfile" and relo

Re: Cannot control attribute ordering via "rlm_perl"

2012-01-24 Thread Alan Buxey
Hi, > - each user performing 7 authentications during EAP negotiation ummm, why? with correctly configured server and 'protection' of the authentication type, you should only hit your authentication server just once inside the EAP tunnel when the identity is set/known. alan - List info/subscri

Re: Cannot control attribute ordering via "rlm_perl"

2012-01-24 Thread Fajar A. Nugraha
On Tue, Jan 24, 2012 at 9:53 AM, Claude Brown wrote: > Our design goal is: > - 250K users all needing to get on the network at the same time > - each user performing 7 authentications during EAP negotiation > - one hour duration to get everyone sorted > > This is about 486 authentications per seco

RE: Cannot control attribute ordering via "rlm_perl"

2012-01-23 Thread Claude Brown
Bjorn, Thanks. > > You don't even need to be that careful. Just run a read-only mysql > slave instance locally on the radius server and all mysql-related > performance problems will vanish. > We didn't try this. Our design goal is: - 250K users all needing to get on the network at the same ti

RE: Cannot control attribute ordering via "rlm_perl"

2012-01-23 Thread Claude Brown
Alan, My original reply was confusingly brief. I've clarified below, and I've also put the module we wrote into github in case it helps: https://github.com/claudebrown/freeradius-server/compare/master...rlm_tagfiles (about 60 lines of C beyond usual module plumbing; 250 lines in total) Alan D

Re: Cannot control attribute ordering via "rlm_perl"

2012-01-16 Thread Bjørn Mork
Alan DeKok writes: > claude.brown wrote: > >> - Performance issues on our MySQL backend that we didn't have budget to >> resolve >> - Thread lock-up's inside MySQL library yet no MySQL server queries were >> active > > I've seen lots of people running MySQL with 300K+ users, and no > problems.

Re: Cannot control attribute ordering via "rlm_perl"

2012-01-16 Thread Alan DeKok
claude.brown wrote: > Our new module was designed to replace "rlm_sql" and meet these goals: > - Be roughly equivalent to "rlm_files" in terms of speed > - Utilise all the features of "rlm_files" - avoid re-inventing that wheel > - Allow high rate of user-by-user updates; i.e. avoid config re-write

Re: Cannot control attribute ordering via "rlm_perl"

2012-01-15 Thread claude.brown
In the end we implemented our solution as a new C module rather than perl called by "rlm_perl". Thanks. Our new module was designed to replace "rlm_sql" and meet these goals: - Be roughly equivalent to "rlm_files" in terms of speed - Utilise all the features of &q

RE: wpa2 freeradius peap rlm_perl

2011-12-09 Thread Ray Eads
Hi. I have discovered that my goal is possible. However, I had to change the way I was thinking about the authentication. Essentially, the rlm_perl script does not perform the password comparison--it only retrieves the password and makes it available to the mschap module. Summary: Yes

Re: Problem in configuring rlm_perl with FreeRADIUS Version 2.1.7

2011-12-06 Thread Alan Buxey
1, use freeradius 2.1.12 2, don't set auth-type, just add 'perl' module to the AAA sections in the virtual-servers that you need alan -- Message may be brief as it has been sent from my mobile - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Problem in configuring rlm_perl with FreeRADIUS Version 2.1.7

2011-12-06 Thread Ratnesh Sinha
Hi, I have configured FreeRADIUS Version 2.1.7 up and running. I wanted to use rlm_perl to process Authenticat, Accounting and all RADIUS requests. I have tried configuring after going through http://wiki.freeradius.org/Rlm_perl In the web page its written to do the following steps

wpa2 freeradius peap rlm_perl

2011-12-05 Thread Ray Eads
ord authentication to the radius server (without a client side certificate). I'm able to produce a yes/no answer with an rlm_perl script that functions as expected with a normal radius query. My problem is that I haven't been able to connect that rlm script properly when freeradius is co

rlm_perl radiusd::radlog $type codes

2011-11-24 Thread Edgar Fuß
The rlm_perl Documentation (in the Wiki) lists the $type values for radiusd::radlog($type, $message) as 0 - Debug 1 - Auth 2 - Proxy 3 - Info 4 - Error while include/radiusd.h says #define L_DBG 1 #define L_AUTH

Re: update RAD_REPLY with += in rlm_perl

2011-10-25 Thread Energ
Thank you, Bjørn Mork! -- View this message in context: http://freeradius.1045715.n5.nabble.com/update-RAD-REPLY-with-in-rlm-perl-tp4935794p4936231.html Sent from the FreeRadius - User mailing list archive at Nabble.com. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users

Re: update RAD_REPLY with += in rlm_perl

2011-10-25 Thread Bjørn Mork
uot;something1". But how to do the same while processing with > rlm_perl? How to hablde hash update in this situation? multiple values for the same attribute are represented as an arrayref in rlm_perl: $RAD_REPLY{'Cisco-AVPair'} = [ 'value1', 'value2', valu

update RAD_REPLY with += in rlm_perl

2011-10-25 Thread Energ
to do the same while processing with rlm_perl? How to hablde hash update in this situation? thx! -- View this message in context: http://freeradius.1045715.n5.nabble.com/update-RAD-REPLY-with-in-rlm-perl-tp4935794p4935794.html Sent from the FreeRadius - User mailing list archive at Nabble.com. -

RE: rlm_perl not working

2011-10-20 Thread Vincent, Fabien
dress into the perl sub. Is there somewhere some documentation to have all var in one webpage ? If someone has an example on how to update $RAD_REQUEST{'NAS-IP-Address'} using rlm_perl is welcome ;) Regards Fabien VINCENT -Message d'origine- De : freeradius

Re: rlm_perl not working

2011-10-18 Thread Alan Buxey
ARNING: Empty section. Using default return values. > > +- entering group accounting {...} > > Invalid Accounting Packet rlm_perl prints that out if there is no "Acct-Status-Type" attribute in the packet - ie its not really a nice valid accounting packet. this looks like aud

Re: rlm_perl not working

2011-10-18 Thread Alan DeKok
e is generated by the Perl module. > ++[perl] returns invalid > Finished request 0. > > Did you know if it's normal that the accounting section reject the accounting > packet and say "Invalid Accounting Packet" ... Is it due to NAS-IP-Address > attribute ? No

RE: rlm_perl not working

2011-10-18 Thread Vincent, Fabien
nvalid Finished request 0. Did you know if it's normal that the accounting section reject the accounting packet and say "Invalid Accounting Packet" ... Is it due to NAS-IP-Address attribute ? And one more question, can I replace it dynamically with, for example, rlm_perl usi

Re: rlm_perl not working

2011-10-18 Thread Alan Buxey
Hi, >Sorry, fixed, a mistake in my radiusd.conf … (lost in brackets ;) my concern would be that you dont need to touch radiusd.conf at all to use the rlm_perl module - hope you werent following some old document - you just need to edit the modules/perl file and then put 'perl&#

RE: rlm_perl not working

2011-10-18 Thread Vincent, Fabien
:53 À : FreeRadius users mailing list Objet : rlm_perl not working Hi all, As you reply yesterday to my question, I have another one which is very embarrassing : I have the following packages installed on CentOS box : freeradius2.x86_64 freeradius2-mysql.x86_64 freeradius2-ldap.x86_64

rlm_perl not working

2011-10-18 Thread Vincent, Fabien
{ # sql # comment perl } Using the simple configuration for modules found here: http://wiki.freeradius.org/Rlm_perl Does not work . Any ideas ? Thanks in advance for your help Regards, Fabien VINCENT smime.p7s Description: S/MIME cryptographic signatur

Re: Cannot control attribute ordering via "rlm_perl"

2011-10-06 Thread Alan DeKok
Claude Brown wrote: > I'm trying to control the attribute-ordering when using "rlm_perl". Thus far > my experience is that this is not possible. My theory is that this is due to the hash-tables used as the interface between the C and Perl worlds. Quite possibly. > The

Cannot control attribute ordering via "rlm_perl"

2011-10-05 Thread Claude Brown
Hi, First, the version I'm using: # freeradius -v freeradius: FreeRADIUS Version 2.1.8, for host x86_64-pc-linux-gnu, [...] I'm trying to control the attribute-ordering when using "rlm_perl". Thus far my experience is that this is not possible. My theory is that this

RE: rlm_perl

2011-09-30 Thread Alex rsm
I got it working. Thanks for the help. I had to add my debugging statement in the authorize sub rather than authenticate sub. > Date: Fri, 30 Sep 2011 09:52:23 +0100 > From: a.l.m.bu...@lboro.ac.uk > To: freeradius-users@lists.freeradius.org > Subject: Re: rlm_perl > &

Re: rlm_perl

2011-09-30 Thread Alan Buxey
hi, which version of FR? if its the latest version, then just edit the modules/perl file , ensure that the TYPE of perl you want to use is uncommented...eg for authentication, ensure that func_authenticate line is uncommented, then add 'perl' into the authenticate section of your virtual server

Re: rlm_perl

2011-09-30 Thread Bjørn Mork
Alexander Clouter writes: > Alex rsm wrote: >> >> And added the following in src/modules/rlm_perl/example.pl >> >> sub authorize { >>print "This is a TEST\n"; >> . >> } >> >> However, When I send a simple test

Re: rlm_perl

2011-09-29 Thread Alexander Clouter
Alex rsm wrote: > > And added the following in src/modules/rlm_perl/example.pl > > sub authorize { >print "This is a TEST\n"; > . > } > > However, When I send a simple test request I don't see my debug line. > I also don't see

Re: rlm_perl

2011-09-29 Thread Arran Cudbard-Bell
> However, When I send a simple test request I don't see my debug line. I also > don't see the message "perl loaded" when start Freeradius in debug mode > (radiusd -X). > > Am I missing anything? Could you post the debug. Might be you don't have rl

RE: rlm_perl

2011-09-29 Thread Alex rsm
added the following in src/modules/rlm_perl/example.pl sub authorize { print "This is a TEST\n"; . } However, When I send a simple test request I don't see my debug line. I also don't see the message "perl loaded" when start Freeradius in debug mode (

Re: rlm_perl

2011-09-29 Thread Arran Cudbard-Bell
On 29 Sep 2011, at 19:25, Alex rsm wrote: > Hi, > > How can I configure Freeradius to call example.pl perl script in the rlm_perl > module? i.e., I want the perl script to be called when Freeradius receives a > request. > read/modify raddb/modules/perl and list perl

rlm_perl

2011-09-29 Thread Alex rsm
Hi, How can I configure Freeradius to call example.pl perl script in the rlm_perl module? i.e., I want the perl script to be called when Freeradius receives a request. Thanks, ASM - List info/subscribe/unsubscribe? See http://www.freeradius.org/list

Re: Segfaulting with rlm_perl

2011-09-02 Thread Alan DeKok
Norman Elton wrote: > Oh, definitely. We'd do that as a failsafe anyway. My main question is > whether this is failing by design? The intention is to *not* crash. But... FreeRADIUS is dependent on the libraries it uses. If they misbehave, then there's little we can do. > If so, is there a b

Re: Segfaulting with rlm_perl

2011-09-02 Thread Norman Elton
On Friday, September 2, 2011, Alan Buxey wrote: > I meant that if you use eg monit then you can have a service recovery rather than a corner case killing off your radius daemon in middle of night > Oh, definitely. We'd do that as a failsafe anyway. My main question is whether this is failing by d

Re: Segfaulting with rlm_perl

2011-09-02 Thread Norman Elton
> Use a wrapper around the demon, eg 'monit' ? Around the radiusd daemon? Nope. Running it from bash, or in this case, from within gdb. Norman - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Segfaulting with rlm_perl

2011-09-02 Thread Norman Elton
I've used GDB to generate a stack trace, specifically using the instructions on http://freeradius.org/radiusd/doc/bugs. For this particular test case, I configured as I described above, but instead of a stripped-down example.pl, I just the one provided, but put "my $i = 1/0;" in the "test_call" su

Re: Segfaulting with rlm_perl

2011-09-02 Thread Norman Elton
Perl. I have not tried newer versions, but it should be pretty straightforward to test. >> And FWIW, we've been using rlm_perl extensively with 2.1.10 without any >> segfaults. But then again, that might just be because we write bug free >> perl code :-) Oh I have no do

Re: Segfaulting with rlm_perl

2011-09-02 Thread k...@rice.edu
On Fri, Sep 02, 2011 at 07:16:26PM +0200, Bjørn Mork wrote: > Alan Buxey writes: > > >> Oh, I've experienced lots of them! So many, in fact, that I figured it > >> was a common and well understood occurrence. Let me come up with an > >> easily reproducible example and I'll post the relevant infor

Re: Segfaulting with rlm_perl

2011-09-02 Thread Bjørn Mork
2.1.12 is almost ready for release - does your system > behave in the same way with 2.1.11? Valid question of course, but do note that there aren't *any* changes to rlm_perl in those versions. Only a few new lines of documentation in the example script: bjorn@canardo:/usr/local/src/git/f

Re: Segfaulting with rlm_perl

2011-09-02 Thread Alan Buxey
Hi, > Oh, I've experienced lots of them! So many, in fact, that I figured it > was a common and well understood occurrence. Let me come up with an > easily reproducible example and I'll post the relevant information. 2.1.11 is out...and 2.1.12 is almost ready for release - does your system behave

Re: Segfaulting with rlm_perl

2011-09-02 Thread Norman Elton
> Of course a script error shouldn't segfault the server. It would have been > much more useful if you had explained what the script error was and a stack > trace from the segfault. Oh, I've experienced lots of them! So many, in fact, that I figured it was a common and well understood occurrence.

Re: Segfaulting with rlm_perl

2011-09-02 Thread John Dennis
e best practice simply to make sure you're scripts are bullet-proof? Or is there a more stable method of interacting with an external resource? I chosen rlm_perl because the script didn't need to be instantiated every time (as with rlm_exec), but perhaps we'd be better off relying on r

Segfaulting with rlm_perl

2011-09-02 Thread Norman Elton
;re scripts are bullet-proof? Or is there a more stable method of interacting with an external resource? I chosen rlm_perl because the script didn't need to be instantiated every time (as with rlm_exec), but perhaps we'd be better off relying on rlm_exec if it is more tolerant of corne

Re: Symbol "Perl_hv_undef_flags" problem using rlm_perl

2011-09-01 Thread Boian Jordanov
On Aug 30, 2011, at 12:06 PM, david.suarezde...@telefonica.es wrote: > in libperl.a. I include the complete output of radiusd -X below with both Did you compile perl with support for libperl.so ? Best Regards, Boian Jordanov Head of Voice Department tel. +359 2 4004 723 tel. +359 2 4004 002

Re: Symbol "Perl_hv_undef_flags" problem using rlm_perl

2011-08-30 Thread John Dennis
On 08/30/2011 05:06 AM, david.suarezde...@telefonica.es wrote: Greetings, I have installed a Debian 6 stable on a 64b machine. Using the factory freeradius-2.1.10 and perl-5.10.1 I got a symbol lookup problem, which sounded weird enough... So I downloaded both last stable versions (Freeradius-

Re: Problem with Rlm_Perl

2011-06-27 Thread marvin
Thanks for your help. When i compiled for the 1rst time i don't have the require librairies but after install it and recompile my module rlm_perl wasn't installed. I go back to the previous version of Freeswitch (the 2.1.10) and all work now. Thanks Again. -- View this message

Re: Problem with Rlm_Perl

2011-06-27 Thread Fajar A. Nugraha
On Mon, Jun 27, 2011 at 4:57 PM, marvin wrote: > So, I use the last distrib 2.1.11 and no, i haven't this file (rlm_perl.so). > I have tried different compilation like these : > > ./configure --with-static-modules=perl > ./configure --with-rlm_perl=yes > ./configure --with

Re: Problem with Rlm_Perl

2011-06-27 Thread marvin
So, I use the last distrib 2.1.11 and no, i haven't this file (rlm_perl.so). I have tried different compilation like these : ./configure --with-static-modules=perl ./configure --with-rlm_perl=yes ./configure --with-rlm_perl Without success, I have only : rlm_perl-2.1.

Re: Problem with Rlm_Perl

2011-06-27 Thread Fajar A. Nugraha
On Mon, Jun 27, 2011 at 4:44 PM, marvin wrote: > Hi, > > Thanks for your answer but when i build without "Don't build with > "--with-static-modules=perl" , I have the same error. > /usr/local/etc/raddb/modules/perl[7]: Failed to link to module 'rlm_perl&#x

Re: Problem with Rlm_Perl

2011-06-27 Thread marvin
Hi, Thanks for your answer but when i build without "Don't build with "--with-static-modules=perl" , I have the same error. /usr/local/etc/raddb/modules/perl[7]: Failed to link to module 'rlm_perl': rlm_perl.so: cannot open shared object file: No such file or d

Re: Problem with Rlm_Perl

2011-06-27 Thread Alan DeKok
marvin wrote: > I found a solution to my problem by updating the version. > But now, when i do "radiusd -X", i have this error : > /usr/local/etc/raddb/modules/perl[7]: Failed to link to module 'rlm_perl': > rlm_perl.so: cannot open shared object file: No such file

Problem with Rlm_Perl

2011-06-27 Thread marvin
Hi, I found a solution to my problem by updating the version. But now, when i do "radiusd -X", i have this error : /usr/local/etc/raddb/modules/perl[7]: Failed to link to module 'rlm_perl': rlm_perl.so: cannot open shared object file: No such file or directory. I don't

Re: Migrating to threaded rlm_perl

2011-06-24 Thread Alan DeKok
Energ wrote: > Rolling back to Freeradius 2.1.10 solved problem with memory leaks. I did not > debug it, but it seems like accountig problem in 2.1.11. rlm_detail seems to have an issue. Patch is in github, v2.1.x branch. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradi

Re: Migrating to threaded rlm_perl

2011-06-24 Thread Energ
Rolling back to Freeradius 2.1.10 solved problem with memory leaks. I did not debug it, but it seems like accountig problem in 2.1.11. -- View this message in context: http://freeradius.1045715.n5.nabble.com/Migrating-to-threaded-rlm-perl-tp4506040p4521029.html Sent from the FreeRadius - User mai

Re: Problem with Rlm_Perl and Digest-Attributes Translation

2011-06-23 Thread marvin
subscribe done -- View this message in context: http://freeradius.1045715.n5.nabble.com/Problem-with-Rlm-Perl-and-Digest-Attributes-Translation-tp4517972p4517990.html Sent from the FreeRadius - User mailing list archive at Nabble.com. - List info/subscribe/unsubscribe? See http://www.freeradius.o

Re: Migrating to threaded rlm_perl

2011-06-22 Thread Energ
egment? 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_perl fires up, afterwards your > methods are called whenever required,

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 c

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

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

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

Re: sigtrap in rlm_perl

2011-06-17 Thread Alan DeKok
Energ wrote: > Hi! > Is it possible to catch signals (such as SIGHUP) inside rlm_perl module? No. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

sigtrap in rlm_perl

2011-06-17 Thread Energ
Hi! Is it possible to catch signals (such as SIGHUP) inside rlm_perl module? -- View this message in context: http://freeradius.1045715.n5.nabble.com/sigtrap-in-rlm-perl-tp4498735p4498735.html Sent from the FreeRadius - User mailing list archive at Nabble.com. - List info/subscribe/unsubscribe

Freeradius, rlm_perl and tagged attributes from rlm_sql

2011-04-19 Thread Igor V. Malinovskiy
I'm using Freeradius 2.1.10. I need to reply to NAS same attributes with tags using rlm_sql and rlm_perl. But in result number of tags is missing and in reply only attributes with ":0". mysql> select * from radreply; ++--+---++-

Re: Separate rlm_perl in each virtual server

2011-02-05 Thread Alexander Shikoff
Hello, On Mon, Jan 31, 2011 at 02:54:44PM +0200, Boian Jordanov wrote: > > Check if your perl is build with MULTIPLICITY - perl -V Boian, thank you very much. It was a reason of an issue. -- MINO-RIPE - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Separate rlm_perl in each virtual server

2011-01-31 Thread Boian Jordanov
eceived DHCP-Discover of id fcb1c6c0 from 193.200.84.232:67 to >>> 193.200.85.245:67 >>> [...] >>> server dhcp { >>> Trying sub-section dhcp DHCP-Discover {...} >>> +- entering group DHCP-Discover {...} >>> rlm_perl: -authorization.pl- : po

Re: Separate rlm_perl in each virtual server

2011-01-30 Thread Alexander Shikoff
t; > Trying sub-section dhcp DHCP-Discover {...} > > +- entering group DHCP-Discover {...} > > rlm_perl: -authorization.pl- : post_auth > > ^^^ > > Post *all* of the debug output. You've deleted the pieces which can > help

Re: Separate rlm_perl in each virtual server

2011-01-29 Thread Alan DeKok
Alexander Shikoff wrote: > Now radiusd receives a DHCP packet and: > > Received DHCP-Discover of id fcb1c6c0 from 193.200.84.232:67 to > 193.200.85.245:67 > [...] > server dhcp { > Trying sub-section dhcp DHCP-Discover {...} > +- entering group DHCP-Discover {...} >

Re: Separate rlm_perl in each virtual server

2011-01-29 Thread Alexander Shikoff
scripts. Is there a way to configure separate > > > rlm_perl instances for each virtual server? Thanks. > > > > raddb/modules/perl1: > > > > perl perl1 { > > ... > > } > > > > raddb/modules/perl2: > > > > p

Re: Separate rlm_perl in each virtual server

2011-01-29 Thread Alexander Shikoff
On Sat, Jan 29, 2011 at 03:18:18PM +0100, Alan DeKok wrote: > Alexander Shikoff wrote: > > I have two virtual servers and I need to process events in these servers > > with different perl scripts. Is there a way to configure separate > > rlm_perl instances for each v

Re: Separate rlm_perl in each virtual server

2011-01-29 Thread Alan DeKok
Alexander Shikoff wrote: > I have two virtual servers and I need to process events in these servers > with different perl scripts. Is there a way to configure separate > rlm_perl instances for each virtual server? Thanks. raddb/modules/perl1: p

Separate rlm_perl in each virtual server

2011-01-29 Thread Alexander Shikoff
Hello, I have two virtual servers and I need to process events in these servers with different perl scripts. Is there a way to configure separate rlm_perl instances for each virtual server? Thanks. -- MINO-RIPE - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: segfault with rlm_perl

2011-01-05 Thread Boian Jordanov
On Jan 4, 2011, at 9:59 PM, Anatoly Ivanov wrote: > Hi, > > > > I am running freeradius (2.1.8) with rlm_perl (5.10.1, USE_ITHREADS) on a > Debian-Lenny system. > > The problem is radius fails with segfault – periodically and intermittently. > I have no way to rel

Re: segfault with rlm_perl

2011-01-05 Thread Alexander Clouter
Anatoly Ivanov wrote: > > I am running freeradius (2.1.8) with rlm_perl (5.10.1, USE_ITHREADS) on a > Debian-Lenny system. > > The problem is radius fails with segfault ??? periodically and intermittently. > I have no way to reliably reproduce the problem ??? it happens on

Re: segfault with rlm_perl

2011-01-04 Thread Johan Meiring
On 2011/01/04 09:59 PM, Anatoly Ivanov wrote: Hi, I am running freeradius (2.1.8) with rlm_perl (5.10.1, USE_ITHREADS) on a Debian-Lenny system. The problem is radius fails with segfault – periodically and intermittently. I have no way to reliably reproduce the problem – it happens only in

segfault with rlm_perl

2011-01-04 Thread Anatoly Ivanov
Hi, I am running freeradius (2.1.8) with rlm_perl (5.10.1, USE_ITHREADS) on a Debian-Lenny system. The problem is radius fails with segfault – periodically and intermittently. I have no way to reliably reproduce the problem – it happens only in production, and it is impossible to reliably

Re: problem with rlm_perl

2010-11-24 Thread Alan DeKok
sameer khan wrote: > thanks for reply. i edited the dictionary to add an attribute for > mikrotik. i will be help if you can explain a little further. The default dictionaries work. You are having issues because you are not using the default dictionaries. That's how complex the explanation

RE: problem with rlm_perl

2010-11-23 Thread sameer khan
problem with rlm_perl > > sameer khan wrote: > > i m trying to authenticate with rlm_perl using chap with following perl > > script but doesn't seem to work. i m guessing chap-password should be in > > hex (0x) format but doesn't seem to be in. hope some one can hel

Re: problem with rlm_perl

2010-11-23 Thread Alan DeKok
sameer khan wrote: > i m trying to authenticate with rlm_perl using chap with following perl > script but doesn't seem to work. i m guessing chap-password should be in > hex (0x) format but doesn't seem to be in. hope some one can help me out The CHAP-Password attribute is

problem with rlm_perl

2010-11-23 Thread sameer khan
hey ppl i m trying to authenticate with rlm_perl using chap with following perl script but doesn't seem to work. i m guessing chap-password should be in hex (0x) format but doesn't seem to be in. hope some one can help me out Best Regards my $want_password="123";m

Re: Controlling Proxying behavior from rlm_perl

2010-10-28 Thread Bjørn Mork
Murray Long writes: > Would it be possible to control which realm freeradius proxies to, > from within the rlm_perl module? $RAD_CHECK{'Proxy-To-Realm'} = 'foo'; Bjørn - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Controlling Proxying behavior from rlm_perl

2010-10-28 Thread Murray Long
Hi All, Would it be possible to control which realm freeradius proxies to, from within the rlm_perl module? -Murray - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Problem with rlm_perl

2010-09-07 Thread Alan DeKok
Nasser Heidari wrote: > I've done it in test environment , problem is that same configuration is > not working in heavy load. > If NAS does not send MAC address , I update request with a > .. mac , but in production environment, users who does not > have mac address , RADIUS request upd

RE: Problem with rlm_perl

2010-09-03 Thread Nasser Heidari
03, 2010 18:20 > To: FreeRadius users mailing list > Subject: Re: Problem with rlm_perl > > Nasser Heidari wrote: > > I wanted to capture users mac address, so I've added a perl module , > > and after parsing cisco-av-pair attribute , I save it to DB. > > In normal situ

Re: Problem with rlm_perl

2010-09-03 Thread Alan DeKok
Nasser Heidari wrote: > I wanted to capture users mac address, so I've added a perl module , and > after parsing cisco-av-pair attribute , I save it to DB. > In normal situation everything works like a charm , but in some cases, > If NAS doesn't send mac-address attribute, I expect to save a >

Problem with rlm_perl

2010-09-03 Thread Nasser Heidari
Dear Folks, Apologies for previous unwanted / half complete email, We are using a perl module to record and save clients MAC address to DB. In situations that cisco-av-pair is not included in RADIUS packet, We are replacing it with ... Everything is working just fine in test environme

Problem with rlm_perl

2010-09-03 Thread Nasser Heidari
Dear Folks, I'm using a perl module to record and save clients MAC address to DB. In situations that cisco-av-pair is not included in RADIUS packet, I'm replacing it with ... Everything is working just fine in test environment but when running on production servers the recorded MAC ad

Re: rlm_perl error

2010-08-31 Thread Bjørn Mork
"test", looking up realm NULL [suffix] No such realm "NULL" ++[suffix] returns noop [eap] No EAP-Message, not doing EAP ++[eap] returns noop ++[unix] returns notfound ++[files] returns noop ++[expiration] returns noop ++[logintime] returns noop GOT CLONE 1554668288 0x267ae10 He

<    1   2   3   4   5   6   7   8   9   >