Re: "dict_addattr: attribute name too long" error when running raclient by cron

2010-03-17 Thread Sergio Belkin
2010/3/17 Alan DeKok :
> Sergio Belkin wrote:
>> When I run on the shell do it fine, but when it is launched by root it
>> fails, resulting in:
>>
>> radclient: dict_init:
>> /usr/local/share/freeradius/dictionary.freeradius[47]: dict_addattr:
>> attribute name too long
>
>  You have multiple versions of FreeRADIUS installed.  Fix that.
>
>  Alan DeKok.
> -

Oh yeah, my fault, there was a really stupid mistake, current binaries
are not on cron path, as you say there was unused and older binaries
on /usr/bin, and cron was picking radclient from there.

Thanks!
-- 
--
Open Kairos http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: "dict_addattr: attribute name too long" error when running raclient by cron

2010-03-17 Thread Sergio Belkin
2010/3/17 Sergio Belkin :
> Hi, I have a simple script as follows:
>
> #! /bin/bash
> echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 16" |
> radclient localhost:18120 status YellowSubmarine | tee
> /var/log/radius/status-"$(date -d "yesterday" +%Y%m%d)".log
> #echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 1" |
> radclient localhost:18120 status YellowSubmarine | tee -a
> /var/log/radius/status-"$(date -d "yesterday" +%Y%m%d)".log
>
>
> When I run on the shell do it fine, but when it is launched by root it
> fails, resulting in:
>
> radclient: dict_init:
> /usr/local/share/freeradius/dictionary.freeradius[47]: dict_addattr:
> attribute name too long
> radclient: dict_init:
> /usr/local/share/freeradius/dictionary.freeradius[47]: dict_addattr:
> attribute name too long
>
>
> crontab line is as follows:
>
> 58 9 * * * root /scripts/getRadiusStatus > /tmp/whatsup 2>&1
>
> Please could you help to solve it?
>
> Thanks in advance
> --
Sorry,  I fix myself I wanted to mean "radclient" on subject and
launched by cron...

-- 
--
Sergio Belkin http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: "dict_addattr: attribute name too long" error when running raclient by cron

2010-03-17 Thread Alan DeKok
Sergio Belkin wrote:
> When I run on the shell do it fine, but when it is launched by root it
> fails, resulting in:
> 
> radclient: dict_init:
> /usr/local/share/freeradius/dictionary.freeradius[47]: dict_addattr:
> attribute name too long

  You have multiple versions of FreeRADIUS installed.  Fix that.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


"dict_addattr: attribute name too long" error when running raclient by cron

2010-03-17 Thread Sergio Belkin
Hi, I have a simple script as follows:

#! /bin/bash
echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 16" |
radclient localhost:18120 status YellowSubmarine | tee
/var/log/radius/status-"$(date -d "yesterday" +%Y%m%d)".log
#echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 1" |
radclient localhost:18120 status YellowSubmarine | tee -a
/var/log/radius/status-"$(date -d "yesterday" +%Y%m%d)".log


When I run on the shell do it fine, but when it is launched by root it
fails, resulting in:

radclient: dict_init:
/usr/local/share/freeradius/dictionary.freeradius[47]: dict_addattr:
attribute name too long
radclient: dict_init:
/usr/local/share/freeradius/dictionary.freeradius[47]: dict_addattr:
attribute name too long


crontab line is as follows:

58 9 * * * root /scripts/getRadiusStatus > /tmp/whatsup 2>&1

Please could you help to solve it?

Thanks in advance
-- 
--
Sergio Belkin http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html