I have been running the CVS snapshot dated 20020814 on FreeBSD
4.6-STABLE. I built and installed the CVS snapshot dated 20021002 tonight
and noticed an unusual behavior in xlat.c that I had not observed before.
I have my detail { } module configured:
detailfile = ${radacctdir}/%{Realm:-accounting}/detail
... the intended behavior being as described in doc/variables.txt, "If
there is a Realm AV pair in the accounting packet, log the accounting
information to /var/log/radius/radacct/realmvalue/detail. Otherwise, log
the accounting information to /var/log/radius/radacct/accounting/detail."
The snapshot dated 20021002 handles accounting requests with a Realm AV
pair just fine and the detailfile is expanded correctly. However, when no
Realm AV pair is present, radius_xlat tacks on a '}' to the end of the
literal string 'accounting':
modcall: entering group accounting
radius_xlat: '/var/log/radius/radacct/accounting}/detail'
rlm_detail: /var/log/radius/radacct/%{Realm:-accounting}/detail expands
to /var/log/radius/radacct/accounting}/detail
I can confirm this behavior at least as far back as snapshots dated
20020901. I also went looking through CVS logs and found that
revision 1.47 of xlat.c dated 20020814 19:02:37 specifically deals with
the handling of braces. I'm not qualified to evaluate code, but it seems
that that commit, or one of the other several commits to xlat.c in
the following couple of weeks dealing with handling of braces might have
something to do with the altered functonality.
Any ideas? Thanks.
Franklin
--
Franklin Trumpy, NFA, MNGS, GSc | Say not, "I have found the truth,"
Sr. UNIX Systems Administrator | but rather, "I have found a truth."
Lighthouse Communications |
[EMAIL PROTECTED] | Say not, "I have found the path of the soul."
(515)244-1115 | Say rather, "I have met the soul walking
(888)953-3278 | upon my path."
http://www.lh.net |
| -Kahlil Gibran, _The Prophet_, 1923
|
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html