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