Re: Unlang comparing variable correctly

2013-05-07 Thread Tyller D
great! Thanks a lot Alan. On Fri, May 3, 2013 at 8:12 PM, Alan DeKok al...@deployingradius.comwrote: Tyller D wrote: The strange thing is if the variable is equal to 2147465216 then it does not enter that function. Why? I've pushed a fix to the v2.x.x branch on github. Alan

Unlang comparing variable correctly

2013-05-03 Thread Tyller D
Hi, I am trying to compare a variable in freeradius using unlang but it seems to not be working correctly, more than likely i've made a mistake but let me show you. ? Evaluating (control:IMS-ActiveDirectory == 0) - FALSE ++? if (control:IMS-ActiveDirectory == 0) - FALSE ++? if

Not processing accounting packet

2013-05-01 Thread Tyller D
Hi All, I'm having a problem that I can't find a solution to. The process I'm using is as follows. User connects to landing page, landing page sends access-request to server with users details. FreeRADIUS then sends a COA to the NAS to change the state and apply attributes. However when

Re: Not processing accounting packet

2013-05-01 Thread Tyller D
:3799 for CoA request. Can anyone tell me how I can both send a CoA to a NAS and process the accounting-start/accounting-stop packet? On Wed, May 1, 2013 at 10:10 AM, Tyller D tyll...@gmail.com wrote: Hi All, I'm having a problem that I can't find a solution to. The process I'm using

Help with 802.1x Certificate

2012-09-14 Thread Tyller D
Hi all, I would like to use FreeRadius to do 802.1x EAP-PEAP for wireless users. I have everything configured and working when I disabled validate server Certificate on windows. I have a wildcard certificate purchased from godaddy.com. I had a problem when using it with apache as I had to add

Re: Help with 802.1x Certificate

2012-09-14 Thread Tyller D
On Fri, Sep 14, 2012 at 4:07 PM, Alan DeKok al...@deployingradius.comwrote: Tyller D wrote: I have everything configured and working when I disabled validate server Certificate on windows. I have a wildcard certificate purchased from godaddy.com. I'm not sure that will work

Re: problem with perl...

2011-08-25 Thread Tyller D
Hi Im trying to run freeradius, using rlm_perl, and centos 6. after installing ( yum install freeradius freeradius-mysql freeradius-perl freeradius-utils ). when I and start free radius I fails with this error Can't load '/usr/local/lib64/perl5/auto/DBI/DBI.so' for module DBI:

Re: problem with perl...

2011-08-25 Thread Tyller D
to the screen if I run the script On Thu, Aug 25, 2011 at 1:36 PM, Fajar A. Nugraha l...@fajar.net wrote: On Thu, Aug 25, 2011 at 4:21 PM, Tyller D tyll...@gmail.com wrote: Hi Im trying to run freeradius, using rlm_perl, and centos 6. after installing ( yum install freeradius freeradius

Re: problem with perl...

2011-08-25 Thread Tyller D
I just added use lib /usr/lib64/perl5/auto/DBI/; to my perl script because it failed. On Thu, Aug 25, 2011 at 3:07 PM, Alan Buxey a.l.m.bu...@lboro.ac.uk wrote: Hi, # PERL MODULES WE WILL BE USING use lib /usr/lib64/perl5/auto/DBI/; use DBI; use DBD::mysql; use vars

How to run a perl script

2011-07-21 Thread Tyller D
Hi I would like to run a perl script, using rlm_perl, at specific times. For example, when a Stop request comes in run stop.pl, when an interim-update comes in run update.pl. Can someone tell me where to do this. I am sorry if my question seems vague but I am fairly lost. I can write the script

Re: Restrict user only to a NAS

2011-05-10 Thread Tyller D
I Believe you have to use Huntgroups to do that http://wiki.freeradius.org/SQL_Huntgroup_HOWTO On Tue, May 10, 2011 at 3:30 PM, Marcos TP mark...@gmail.com wrote: I forgot to mention that I use MySQL to manage my users and NAS. In the table that records the users exists a field 'radnas_id'

Re: Send Attribute Using Script

2011-02-21 Thread Tyller D
Maybe try it like this if ( $lefttime le 0 ) { $RAD_REPLY{'Reply-Message'} = Your account has expired; return RLM_MODULE_REJECT; }else {

Re: issue with dialup.conf

2011-02-07 Thread Tyller D
) On Mon, Feb 7, 2011 at 11:13 AM, Brian Candler b.cand...@pobox.com wrote: On Mon, Feb 07, 2011 at 08:48:27AM +0200, Tyller D wrote: if ( $device =~ /^nomadix/i ) { if ($DATABANK != '') { if ( $DATABANK le 0 ) { $RAD_REPLY

issue with dialup.conf

2011-02-06 Thread Tyller D
Hi I am having an issue, which may be the way I changed the dialup.conf or maybe its my logic. This is what I have done am trying to achieve. freeradius is used to authenticate users at our hotspots, as we are using different nas devices and we must cater for them all i did this. in dictionary

Re: issue with dialup.conf

2011-02-06 Thread Tyller D
Hi I will try run the queries manually and see what happens. rlm_sqlcounter is cool, but this should work right? On Sun, Feb 6, 2011 at 5:28 PM, Fajar A. Nugraha l...@fajar.net wrote: On Sun, Feb 6, 2011 at 9:55 PM, Tyller D tyll...@gmail.com wrote: I can see how much traffic a users used

Re: issue with dialup.conf

2011-02-06 Thread Tyller D
but only sometimes.. On Sun, Feb 6, 2011 at 8:32 PM, Brian Candler b.cand...@pobox.com wrote: On Sun, Feb 06, 2011 at 04:55:34PM +0200, Tyller D wrote: freeradius is used to authenticate users at our hotspots, as we are using different nas devices and we must cater for them all i did

Re: issue with dialup.conf

2011-02-06 Thread Tyller D
| ++ | -302340151 | ++ Do you guys see where I have made an error? On Mon, Feb 7, 2011 at 12:56 AM, Fajar A. Nugraha l...@fajar.net wrote: On Mon, Feb 7, 2011 at 1:08 AM, Tyller D tyll...@gmail.com wrote: Hi I will try run the queries manually and see what

Re: issue with dialup.conf

2011-02-06 Thread Tyller D
quote 'radcheck.value'. Hopefully that fixes the issue. Thanks On Mon, Feb 7, 2011 at 8:48 AM, Tyller D tyll...@gmail.com wrote: Hi The main reason I am doing it this way to send the correct attributes per location. Hopefully this explains whats happening. perl.pl . if ( $device

Re: NAS-Identifier instead of IP address

2010-08-18 Thread Tyller D
Thank you. Is it still needed to compile freeradius with rlm_raw, or can it be freeradius get NAS-Identifier with a standard install? On Sun, Aug 15, 2010 at 6:15 PM, Alan DeKok al...@deployingradius.comwrote: tyllerd wrote: Hi. I would like to know if its possible to rather define

Re: Rlm_Perl question

2010-08-10 Thread Tyller D
Thank you Baically what I have done is this. I wanting to use freeradius to be the radius server for a few of my hotspots. They use two different NAS devices.Now the problem I faced is that both NASes use different VSA's for limiting users bandwidth. So my perl script will check the

Re: Rlm_Perl question

2010-08-10 Thread Tyller D
Ok, I believe that I may have done this. In the dialup.conf file I edited accounting_stop_query to update my attribute. It is the only place were I saw anything happening on account-stop. Hope that is correct. On Tue, Aug 10, 2010 at 3:20 PM, Tyller D tyll...@gmail.com wrote: Thank you

Re: Rlm_Perl question

2010-08-07 Thread Tyller D
On Sat, Aug 7, 2010 at 4:59 PM, Alan DeKok al...@deployingradius.comwrote: tyllerd wrote: What is /^baduser/i ? It's a regular expression. See the Perl documentation for more information. I am wanting to use the perl module with freeradius, but I am still learning Perl and I

Re: Login scripts

2010-05-25 Thread Tyller D
Hi Liran Thanks alot, I got quite exited when I saw the other approach, however I don't think that it would for because if the users is using his voucher at a Nomadix and uses lets say 100mb that won't reflect in mikrotik attribute and vice-versa. I will have a look at unlang. Thanks for the