OK - I have found my problem. The users file is read in to make PAIR_LISTs. PAIR_LISTs are lists of VALUE_PAIR. The 'value' stored in strvalue of the value_pair is type uint8_t [MAX_STRING_LEN]
Now MAX_STRING_LEN is defined as: #define MAX_STRING_LEN 254 /* RFC2138: string 0-253 octets */ Fair enough - except I am trying to store an xlat there. The xlat string (fmt) is longer than 254 octets BUT the results of the xlat are not! I don't know what a quick fix is here. Perhaps the size of strvalue could be bigger - you just check that it is < 254 before you place it on the wire. On Thu, 2002-12-05 at 01:12, Alan DeKok wrote: > Malcolm Caldwell <[EMAIL PROTECTED]> wrote: > > It would seem that the users file is limited to lines < 256 characters. > > This causes me a problem as I am trying to do an sql xlat and so need a > > string >256 characters. > > > > Is there any good reason not to bump up this limit? > > Nope. I'll bump it to 8192 in the CVS head. > > Alan DeKok. > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html