RE: static IP's with rlm_perl

2006-10-20 Thread Garber, Neal
$RAD_REPLY{'Framed-IP-Address'} = '192.168.77.200'; Perhaps the problem is that your are assigning a string to an attribute of type ipaddr (look in /usr/local/share/freeradius/dictionary.rfc2865)? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

RE: static IP's with rlm_perl

2006-10-20 Thread Garber, Neal
$RAD_REPLY{'Framed-IP-Address'} = '192.168.77.200'; See if the following helps: use Socket; . . . $RAD_REPLY{'Framed-IP-Address'} = inet_aton('192.168.77.200'); - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: static IP's with rlm_perl

2006-10-20 Thread Alan DeKok
Michael Gale [EMAIL PROTECTED] wrote: rlm_perl: Added pair Framed-IP-Address = 192.168.77.200 ... Sending Access-Accept of id 70 to 127.0.0.1 port 32809 Framed-IP-Address = 255.255.255.254 FreeRADIUS DOES NOT send Framed-IP-Address = 255.255.255.254 in the default config. It is

Re: static IP's with rlm_perl

2006-10-20 Thread Michael Gale
Hello, No, that did not work, with the setting below the debug shows: --snip-- . rlm_perl: Added pair Framed-IP-Address = ��M ... Sending Access-Accept of id 73 to 127.0.0.1 port 32813 Framed-IP-Address = 255.255.255.254 --snip-- Before when I was setting it with a

Re: static IP's with rlm_perl

2006-10-20 Thread Michael Gale
Hello, I found in the users file the following: DEFAULTService-Type == Framed-User Framed-IP-Address = 255.255.255.254, Framed-MTU = 576, Service-Type = Framed-User, Fall-Through = Yes It seems that the settings in the users file override was is set

Re: static IP's with rlm_perl

2006-10-20 Thread Kevin Bonner
On Friday 20 October 2006 10:32, Michael Gale wrote: Hello, No, that did not work, with the setting below the debug shows: --snip-- Framed-IP-Address = 255.255.255.254 Where is that attribute/value pair being added? If that is being set after your perl functions are

static IP's with rlm_perl

2006-10-19 Thread Michael Gale
Hello, I am trying to set static IP addresses for clients I have authenticated via radius with my rlm_perl module. I am trying the following as a test but it is not working: --snip-- $RAD_CHECK{'NT-Password'} = $pass; $RAD_REPLY{'Framed-IP-Address'} =

Re: static IP's with rlm_perl

2006-10-19 Thread Alan DeKok
Michael Gale [EMAIL PROTECTED] wrote: I am trying the following as a test but it is not working: What's not working, why? Any help would be great full. You've carefully not given any information about what you expect it to do, or what is happening. No one can help you without that

Re: static IP's with rlm_perl

2006-10-19 Thread Michael Gale
Hello, On the client side I receive the error: TCP/IP CP reported error 738: The server did not assign an address. In my authorize function in rlm_perl I am trying to assign a static IP to the client based on their username: I thought I could assign the IP by using the

Re: static IP's with rlm_perl

2006-10-19 Thread Alan DeKok
Michael Gale [EMAIL PROTECTED] wrote: I thought I could assign the IP by using the method below: $RAD_REPLY{'Framed-IP-Address'} = '192.168.77.200'; $RAD_REPLY{'Framed-Netmask'}= '255.255.255.255'; $RAD_REPLY{'Framed-Protocol'} = 'PPP';

RE: static IP's with rlm_perl

2006-10-19 Thread Michael Gale
/2006 4:21 PM To: FreeRadius users mailing list Subject: Re: static IP's with rlm_perl Michael Gale [EMAIL PROTECTED] wrote: I thought I could assign the IP by using the method below: $RAD_REPLY{'Framed-IP-Address'} = '192.168.77.200'; $RAD_REPLY{'Framed-Netmask