Bug 14284

Summary: libradius accounting patch
Product: Base System Reporter: os <os>
Component: miscAssignee: John Polstra <jdp>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.3-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description os 1999-10-12 13:50:01 UTC
FreeBSD standard distribution RADIUS client library does not
support RADIUS accounting. Here is a patch for libradius for
accounting. It includes:

1. #define for RAD_CONNECT_INFO (non-rfc, but widely used).
2. #defines for Framed-Compression and NAS-Port-Type values.
2. #defines for accounting support.
3. internal insert_request_authenticator() for accounting request packets.
4. rad_auth_open() and rad_acct_open() calls for opening a handle as
   auth or acct server with appropriate defaults(for defaults only).
   rad_open() call preserved for compatibility and is equivalent to
   rad_auth_open().
5. No man changes, sorry.
6. Default accounting config file is /etc/radacct.conf (not the best
   solution, IMHO, but it works). Seems ito me the extended format for
   radius.conf is better (to add 'auth' or 'acct' word before each
   server definition).
7. #define for __printflike (for FreeBSD 2.2.8).
8. library and header renamed for compatibility with old version
   (as temporary solution).

Fix: Here is the patch:

How-To-Repeat: 
man libradius :-)
Comment 1 John Polstra freebsd_committer freebsd_triage 1999-10-12 16:01:40 UTC
Responsible Changed
From-To: freebsd-bugs->jdp

I have already looked over these patches and will commit them. 
Comment 2 John Polstra freebsd_committer freebsd_triage 1999-10-31 04:48:53 UTC
State Changed
From-To: open->closed

I have committed your patch, with the minor changes we discussed, into 
FreeBSD-current.  Here are the relevant revision numbers: 

Revision  Changes    Path 
1.6       +40 -18    src/lib/libradius/libradius.3 
1.4       +58 -14    src/lib/libradius/radius.conf.5 
1.4       +104 -23   src/lib/libradius/radlib.c 
1.3       +55 -2     src/lib/libradius/radlib.h 
1.4       +7 -1      src/lib/libradius/radlib_private.h 

I will merge this into -stable in a week or two unless problems 
arise. 

Thank you very much for this nice enhancement!