"dict_addattr: attribute name too long" error when running raclient by cron
Sergio Belkin
sebelk at gmail.com
Wed Mar 17 14:23:50 CET 2010
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 -
More information about the Freeradius-Users
mailing list