[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gnu-radius] Passing Huntgroup-Name to filter
From: |
Pierre Belanger |
Subject: |
[Help-gnu-radius] Passing Huntgroup-Name to filter |
Date: |
Thu, 27 Nov 2003 19:17:21 -0500 (EST) |
Hello all,
I've tried hard to make the following work, but I just can't figure it
out :( -- a bug or a feature missing or something not yet possible? ;)
I am trying to pass the value of the attribute Huntgroup-Name to an
external filtering program.
Here's part of my configuration, note "radiusd -mt" returns no errors.
1) huntgroups
local NAS-IP-Address = 127.0.0.1 NULL
2) users
DEFAULT Auth-Type = Pam,
Huntgroup-Name = "local",
Simultaneous-Use = 1
Exec-Program-Wait = "|authfilter"
... nothing else in this file!
3) config
filters {
filter authfilter {
exec-path "/opt/gnu-radius-1.1.94/etc/raddb/scripts/authfilter.sh";
error-log "authfilter.sh.log";
auth {
input-format "%C{User-Name} %C{NAS-IP-Address} %C{Huntgroup-Name}";
wait-reply yes;
};
};
};
The authfilter.sh has:
while read NAME NASIP HUNT
do
echo $NAME $NASIP $HUNT >> /tmp/authfilter-input
echo 0
done
I don't see the "Huntgroup-Name" value in the authfilter-input file, all I
get is:
*** NAME: belanger *** NASID: 127.0.0.1 *** HUNT:
I did a "truss" (strace) on the authfilter.sh script, radiusd doesn't sent
the value at all :(
Thank you very much,
Pierre B.
- [Help-gnu-radius] Passing Huntgroup-Name to filter,
Pierre Belanger <=