huntgroups, sql, and users

jfr at e4x.net jfr at e4x.net
Mon Sep 4 04:13:46 CEST 2006


>> huntgroups file:
>> tc1     NAS-IP-Address = 1.2.3.4
>
>   The operators should be updated.  See "man 5 users".

changed huntgroups to "tc1   NAS-IP-Address == 1.2.3.4"
(also updated users file to use ==)
does not match.  (debug mode does not say the exact string trying to be
matched, would be nice if I knew it was a problem in users file or
huntgroups).  If I use ":=" in huntgroups file, then EVERYTHING matches
for the tc1 entry in users file, and debug mode verifies that with the
"Matched entry" notice.  So it might be a matter of getting the operators
correct, however, I'm using == in both places as shown in all the example
files that I see, even taking a close look at "alphen" which is one of the
examples in the huntgroup file distributed with freeradius.  From the man
page, it would seem that, as in C, "=" can be used to assign a value (like
in huntgroups if dealing with just 1 group name to IP address), "+=" for
multiple NAS IPs per group, and "==" for comparative as in the users file
looking up to see if the group matches the Huntgroup-Name.  However, if
this was the case, it would seem like it should work.

>   What does debugging mode say?

a whole lot of stuff, except what I'd want it to give debugging on.. as in
what is trying to match what, and how exactly its matching.  Everything
else looks clean; at least no syntax errors anywhere.

>   It still has the "users" file, with almost the same format.  It
> still has the ability to fire off an external app.

Hmm.. I'll keep that in mind as a last resort.  But I believe all the
functionality (plus more) is in freeradius, without running my own
external mess, which didnt quite handle anything aside from PAP.

So, as you first mentioned, it does appear to be an operator problem..
possibly in more than once sense of the word.

- - -   Jon





More information about the Freeradius-Users mailing list