logo       

Re: huntgroups & hints: msg#00022

gnu.radius.general

Subject: Re: huntgroups & hints

> raddb/huntgroups:
> VERSCITY NAS-IP-Address = 10.2.2.10 NULL
>
> raddb/hints:
> DEFAULT NULL Huntgroup-Name = VERSCITY,
> Acct-Ext-Program = "/usr/local/bin/radcard/acct"

No, currently this won't work. The problem is that while matching
hints entries only those attributes are taken into account which
reflect some user name information (i.e. Prefix, Suffix, UID and
Group).

As a workaround, invoke your "acct" program unconditionally and pass
the value of NAS-IP-Address attribute to it, e.g.:

# raddb/hints:
DEFAULT NULL
Acct-Ext-Program = "/usr/local/bin/radcard/acct %C{NAS-IP-Address}"

and make the program decide what to do based on the value of its first
argument.

Regards,
Sergey


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise