On 14 Feb 2014, at 08:00, Alan Buxey <A.L.M.Buxey@LBORO.AC.UK> wrote:
Enormously? ?? Is the huntgroup file dynamically read all the time?
No. It's O(n) as previously stated. Looking something up in a huntgroup means iterating over every member of the linked list (worst case) and evaluating the condition each time to see if it matched.
I thought it was read at server start time and the values then populated into a lookup table....?
There's no hashing or treeing or anything fancy, just a plain linked list. But people get really horny about it like it's *the* ultimate super efficient NAS categorisation mechanism. It's not, it's shit, it needs to go away. Using the client xlat is significantly more efficient. There's also the getclient xlat which allows client lookups using arbitrary IP addresses. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2