RES: Patch: avpair.c - empty reply VALUE_PAIR (0x0) for replies withunknown vendor attributes

Toledo, Luis Carlos lscrlstld at gmail.com
Tue Jun 29 14:33:21 CEST 2010


How to debug the unknown attributes? Put some prints in the code or have
clear way to do this? 

> Adam Lewis wrote:
> > My solution to this - not necessarily the way forward, but 
> at least a 
> > workaround - was to rename rc_avpair_gen() to 
> old_rc_avpair_gen() and 
> > then wrap it a new version of rc_avpair_gen() which adds a 
> dummy pair 
> > and then removes it when old_rc_avpair_gen() returns. For what it's 
> > worth, the code for (the new) rc_avpair_gen() is as follows:
> 
>   The real fix is to do what the server does.  Mark unknown 
> attributes as "unknown", and pass them straight through the system.
> 
>   Alan DeKok.




More information about the Freeradius-Devel mailing list