comments about bugs to be fixed
[freeradius.git] / todo / TODO
1 URGENT:
2
3 o Stop unloading modules on HUP so that we can have persistant
4   handles/socketc/etc from module_init().  Alan D. and Alan C. had a good
5   plan for when to load/reload modules on the list recently...I say
6   run with that.
7 o modular radutmp and radwtmp, as per Alan Curry's old patches.
8 o merge OSF/OSFIA patches from Cistron.
9 o double-check Cistron 'compat' mode, so that all current users of
10   Cistron can upgrade "out of the box" to FreeRADIUS
11 o Fix multiple/conflicting VALUE names as pointed out on the list.
12    e.g. 'Rlogin' has different values when used with different ATTRIBUTEs,
13
14
15 MEDIUM PRIORITY
16 o go through all of the code and reformat it, for project standards
17 o go through all of the code, removing unnecessary #include's, and
18   generating a standard include file order which will work across all
19   platforms.
20 o go through *.c and *.h, adding comments at the top with a copyright,
21   and a GPL license.
22 o fix the proxy receive code, so that we don't have to look through ALL
23   of the requests to find the matching proxy.  This might be hard to do..
24   It would also involve thread locking issues.
25 o rad_malloc() fixes:  child processes/threads ALWAYS kill themselves
26   if malloc() fails.  The main server process does a 'sleep' for N
27   seconds, and tries again.  After T tries, it gives up, and calls exit().
28
29 LOW PRIORITY:
30 o Write better documentation
31 o Manual pages for the daemon, utilities and conffiles (some done)
32 o Fix all FIXME's in the source.
33 o Fix DBM support:
34   - Multiple defaults (done)
35   - Fallthrough (hard for not DEFAULT entries)
36 o split rlm_files into rlm_users, rlm_fastusers (in-memory hash),
37   rlm_detail, rlm_dbm... they all should share as much code as
38   possible though, not be big cut-and-paste jobs
39 o better SNMP statistics support, for the auth/acct servers, and for
40   each client.
41 o fix the request list walking code, to scan each element no more than
42   once per second.
43
44 WAIT UNTIL NEXT RELEASE:
45 o UPDATE accounting requests aren't handled as in 1.5.4.3 for wtmp
46   Is this a problem ? Need to fix in rlm_unix.c
47 o New module: rlm_fastradwtmp. with a radutmp-style active session
48   database to guarantee wtmp records are always written in matching
49   pairs. Because radlast is slow.
50 o New module: rlm_attrmap. assigns a single attribute based on a
51   username, with ed-friendly/awk-friendly config file. Because the
52   users file is too complicated.
53 o have a config file (or section in radiusd.conf) that tells rlm_sql
54   what the names of the tables and columns are instead of hardcoding
55   them
56 o replace the module_t method table with a set of register_* functions
57   (so different instances of the same module can offer different
58   methods)
59 o enable server to run with child processes
60   (This is a little more difficult than the threading changes)
61 o switch all timers from time() to gettimeofday() so processing is
62   less bursty
63 o SNMP support for querying users who are on-line.
64 o New module: rlm_nsupdate (dyndns). Because dynamic addresses are
65   cruel.
66 o New module: rlm_perl.
67
68 WILL NOT TO:
69 o module initialization AFTER forking, not before.
70         --- The modules should NOT be setting up any process-dependent
71         --- information.
72
73 o there should be a way that radius itself could
74   rotate the wtmp file properly. It should write "logout" records for
75   all users, move the file to wtmp.0, and create a new wtmp file with
76   "login" records for all currently online users.
77         --- This work is for an external process to do ---
78
79 DONE:
80 o Integrated Alan Curry's module failover patch.
81 o add more support for new configuration files
82 o Fixed potentially long locks on radutmp file by radcheck thread
83   This means unlocking the file, forking checkrad, and then locking
84   the file again.
85 o get rlm_unix to work with multiple instances
86 o partial split of rlm_files into rlm_fastusers and rlm_detail
87 o enable server to run in threaded mode
88 o rlm_realm module for COMPLETE control of proxying on any attribute
89 o re-transmits of proxied packets
90 o operator support in pairmove.
91 o stripping Prefix/Suffix in accounting
92 o new configuration file /etc/raddb/radius.conf
93 o Radius proxy support.
94 o Max-Simultaneous-Use parameter to avoid double logins.
95 o Specify a program to be run on succesful login
96 o Prefix/Suffix support
97 o Change radutmp format to v2 (see radutmp.h)
98 o move radutmp to /var/log ?
99 o Compatibility with radius-2.0
100 o Support for pidfile
101 o Configurable logging: both radutmp/radwtmp and details files
102 o session_id is not numeric but an 8-byte (?) string !
103 o Detect reboot packet sent by portmaster and clear radutmp / wtmp
104 o Seperate /etc/raddb/clients into public and private file (secret == secret!)
105   Add ts-type field to clients file for checklogin.pl
106   Better: return clients to old form (no shortname) and add a new file,
107   "nas" or so. Matching on this file is done based on Nas-Ip-Address
108   instead of the IP address of the sender. Better if there's a proxy
109   in between.
110 o Allow spaces in usernames (using " or \ to escape)
111 o Return Proxy-State A/V pairs, in the right order.
112 o retransmits from the terminal server get proxied with
113   a new ID and random_vector. We should check for this!
114 o Limit logins based on time/date 
115   (for example, Login-Hour = 8-18, Login-Day = 0-5 for business hours)
116 o take out host-order IP addresses
117 o Support Connect-Rate