Count online users correctly (through a separate query) in user_finger.
[freeradius.git] / dialup_admin / Changelog
1 Ver 1.80:
2 * Remove snmp_clearsession. It is replaced by clearsession which supports both snmp and telnet
3   methods of removing a user from an access server. Add corresponding configuration directives
4   general_sessionclear_method and nasXX_sessionclear_method
5 * Create a new function da_sql_limit() and use that to pass LIMIT arguments to the database layer
6   since the syntax is different between db vendors
7 * Rename the badusers date field to incidentdate to avoid reserved words in databases. Bug found by
8   Peter Nixon
9 * Count online users correctly (through a separate query) in user_finger.
10 Ver 1.78:
11 * Add a snmp_clearsession which can disconnect a user by using the Cisco AAA Session MIB
12 * Add a configuration directive general_sessionclear_bin
13 * Add a session disconnect button in the 'clear open sessions' page
14 * Also clear sessions from the sql extra servers in the 'clear open sessions' page
15 * In bin/snmpfinger also accept @,. in the username
16 * If we are stripping realms, then if needed strip them from the data returned by snmpfinger in
17   user_finger.php3
18 * Add a header with the page encoding before sending any page (header added in config.php3)
19   This closes Bug #153
20 * Fix a problem when reading username.mappings
21 * If date calculation fails, abort
22 * Add a backup_radacct script
23 * Add an sqlrelay functions file. The user_admin page does not currently work. Looking into it.
24 * Add sqlrelay support in the scripts. Add a sqlrelay_query script to run sqlrelay commands
25 * Update password_check to work with all password attributes and use the configuration directives
26 * Add more documentation for per user counter limit attributes (daily/weekly/monthly limits)
27 * Make all counter limits default to none so that people don't get confused
28 * In clear_opensessions depending on sql type use either IS NULL or = 0 in the DELETE statement.
29   We need to find a cleaner solution to this. This closes bug#175
30 * Log somewhat more verbose error messages when the sql_command binary is not found in the bin scripts
31 * Make nasXX_finger_type actually work since the place where nas information was stored was changed a
32   long time ago. Bug noted by Nick Bright
33 * In user_finger only set LD_LIBRARY_PATH once, not each time we call snmpfinger
34 * Add support for usrhiper in snmpfinger. Patch from Nick Bright
35 * urlencode() all occurrences of the $login variable when used in url's. Bug noted by Dag Landau
36 * Show the correct nas type in nas_admin. Bug noted by Nick Bright
37 * Correctly calculate the nas ip in lib/sql/nas_list.php3. Add a check_ip() function in lib/functions.php3
38   Bug noted by Nick Bright
39 * Correctly check nas validity in nas_admin.php3. Bug noted by Nick Bright
40 * Don't use $num in stats.php3, change it to $stats_num
41 Ver 1.75:
42 * A LOT of security related fixes. Now dialupadmin should hopefully be secure enough to
43   be accessed by normal users (not administrators).
44 * Move a few elements in the CSS file from the body tag. Suggestion by Gary McKinney
45 * Update FAQ about using php with no sql support.
46 * Allow the user to select between viewing FAQ,HOWTO or README in the help page.
47 * Use $_SERVER instead of $HTTP_SERVER_VARS
48 * Add a drop down menu with existing groups in group_new.php3
49 * Check for sql in show_groups.php3
50 * In lib/sql/group_info.php3 if $login is not set, find available groups and place them in
51   $existing_groups along with a count of users per group. Use the functionality in group_new.php3
52   and show_groups.php3
53 * Update TODO
54 * Add the style sheet in the content.html
55 * Enlarge the width for the left frame
56 * Make show_groups and the drop down menu in group_new work
57 * Use lower cased row names in badusers page
58 * Wrong foreach in show_groups and group_new.
59 * Fix operator escaping in lib/sql/change_attrs.php3
60 * In user_state also take into account any open sessions when calculating daily/weekly usage.
61   Add two more lines in the output stating the number of current open sessions and the time used.
62 * Move a few header() calls after including config.php3 so that we have access to the relevant
63   variables.
64 * Make pagesize 'all' work again. Bug found by apellido jr., wilfredo p.
65 * Make 'Add NAS' function in the nas admin page more easily accessible
66 * Fix a small bug in user_admin.php3 found by Joerg Staedele
67 * Fix a small typo in the userinfo mysql schema. Found by Evert Meulie
68 * Fix bug #136, bugs found by Pawel Foremski
69 * Small type in login_time_create, close bug #141
70 * In config.php3 remove whitespaces from $login. Don't remove '-'
71 * Add lib/sql/group_change.php3 to add and delete a user from groups
72 * Add a new directive sql_show_all_groups. If set to true then in user edit page we show all available
73   groups with the ones the user is a member of highlighted. The administrator can then directly
74   change user group membership by changing membership in this group list.
75 * On group creation, if member list is empty report that, not that the group was created.
76 * In the show groups page, note that we only show groups with members
77 * In lib/sql/group_info.php3 only unset variables if we need to. In lib/sql/defaults.php3 don't run for groups
78   only for users
79 * Fix Bug #167
80 Ver 1.72:
81 * Move the xlat function to a separate file in lib/xlat.php3
82 * Add a lib/sql/nas_list.php3 to also get the nas list from sql (naslist.conf still works)
83 * add realms nasdb and nasadmin in username.mappings. nasadmin is used to signify if the
84   user is allowed to use the nas_admin page. nasdb is used to shorten the nas list to only
85   a few specific entries. That way administrator responsible for a few access servers will
86   only be able to administer those access servers and not see the rest of the nas list.
87 * Add username searching in the find page as suggested by joram agten
88 * Don't use nas_list in nas_admin
89 * Add postgresql specific sql schema by apellido jr., wilfredo p. Move each sql schema to a
90   separate directory (mysql and postgresql)
91 * Change is_int to is_numeric. This closes Bug #90
92 * Escape special characters in the sql password. This closes bug #96
93 * Do an xlat for general_accounting_attrs_file and general_user_edit_attrs_file. That way we can
94   have different mappings for each administrator.
95 * Use require_once instead of require when including xlat.php3
96 * Add debug statements in sql connect functions
97 * Add a missing.php3 file with functions that may be missing from the PHP version used. Include it
98   if a function is missing. Currently only array_change_key_case() is included
99 * Set general_restrict_nasadmin_access to no by default. It causes confusion.
100 * Set the general_username_mappings_file variable
101 * Fix a small error in lib/sql/find.php3. This closes bug #103
102 * Add a small note in the FAQ about checking for sql/ldap driver availability in PHP if the user get's
103   a blank white page back.
104 Ver 1.70:
105 * Add the /bin postgresql compatibility patch from Guy Fraser
106 * Add ldap_userdn as a configuration directive. If set we use that for
107   user DN's (variables supported) instead of performing and ldap search for
108   each user. That can be somewhat faster.
109 * Add a check_user_passwd() and a get_user_dn() functions in lib/ldap/functions.php3
110 * Add general_restrict_badusers_access directive. If set to yes we only allow each administrator
111   access to their own entries in the badusers table
112 * Add a username.mappings table. We are able to map each administrator username to additional queries
113   on the accounting and user settings tables.
114 * Add an sql_accounting_extra_query directive. If set this query is included in all
115   queries to the accounting tables.
116   Combined with admin username mappings we are able to easily restrict access on specific accounting data
117   to each administrator.
118 * Escape bad characters in the $login variable
119 * Add a da_sql_escape_string function. We use that for every element we pass to sql queries in order to
120   protect ourselves from sql injection.
121 * Use the ldap_userdn directive where applicable in the functions.php3 file
122 * Add an sql_xlat function
123 * Add a nas administration page for sql based clients
124 * Fix small bugs in accounting.php3 and user_stats.php3. Add nas_admin.php3 to the buttons page
125 * Add da_sql_escape_string for all relevant variables in lib/sql files
126 * Keep the nas list in a separate array $nas_list. Update various pages to use that one now.
127 * Make nas_list actually work
128 * Also allow for '-' to exist in a nas name in bin/log_badlogins
129
130 Ver 1.68:
131 * Huge PostgreSQL compatibility patch by Guy Fraser <guy@incentre.net>
132 * Also support the Crypt-Password attribute in lib/sql/password_check.php3. Patch by Guy Fraser <guy@incentre.net>
133 * Small fix in user_finger.php3
134 * Add the ability to erase rows from the badusers table
135 * In log_badlogins for multiple logins if it is a mppp attempt, log it
136 * Add a message when adding a user in the badusers table
137 * Close sql connections in add_badusers.php3
138 * Add a patch from Neil McCalden to not put spaces in the -p argument to the mysql binary.
139 * Fix a bug in conf/config.php3. Patch from Neil McCalden
140 * In log_badlogins add a newline after every sql query so that the resulting file can be editable
141 * Add a force directive in log_badlogins. If uncommented it will force inserts even if there are
142   sql errors. That can help in case there is one sql query which stops the whole failed logins
143   logging system from working
144 * Sort the servers list in failed_logins,user_stats,stats
145 Ver 1.65:
146 * Add a captions.conf file with a few configurable captions for now
147 * Move the nas list to a separate file called naslist.conf
148 * Add the ability to include configuration files in admin.conf
149 * Add a page for clearing open sessions from the database called clear_opensessions.php3. Add it in the
150   user toolbar
151 * Move the userinfo page of user_admin to a separate file so that it can be easily changed to
152   fit per installation needs
153 * Add a conf/accounting.attrs allowing the customization of the attributes in the user_accounting,
154   user_finger and failed_logins pages
155 * Add a directive to determine if the administrator will be able to change the user password from
156   the user edit page
157 * Call mysql_escape_string before running the sql query
158 * Use the sql_connect_timeout for the mysql driver
159 * Add a help page for the badusers table
160 * Also take the Session-Timeout in consideration when calcualting the remaining time in user_admin.php3
161 * Add regex matching in log_badlogins and don't expect the callerid to always be in numeric format
162 * Small html corrections in user_toolbar.html.php3
163 * Add a HOWTO from Paris Stamatopoulos
164 * create a doc directory and move the documentation files there
165 * Add a note about the HOWTO in the README file
166 * Add a few help pages for the nomadix radius attributes by Ulrich Walcher
167 * Update the HOWTO with instructions about the ldap configuration directives and the scripts in the bin folder
168 * Update the AUTHORS file
169 * Check for the binaries used (mysql/snmpwalk) in the scripts in the bin folder before using them
170 * Update the HOWTO file
171 * Use the general_domain variable from the admin.conf file in log_badlogins instead of a new one
172 * Add a sql_command directive in admin.conf containing the path to the mysql binary. That can be used by the
173   scripts in the bin folder instead of setting a variable in each script
174 * Add a general_nas_type and a per nas type directive and pass that to snmpfinger. Updated snmpfinger to also
175   support lucent equipment apart from cisco
176 * Update the HOWTO file with a few comments on the general_nas_type directive
177 * Use the User-Password attribute instead of Password in user_test.php3
178 Ver 1.63:
179 * Do an eval on the attribute description strings in the user_edit page. That will allow the login-time creation
180   page to work properly.
181 * Add a login-time creation page which will allow the administrator to create the login-time string through a gui
182   instead of writing it directly in UUCP format.
183 * Call lib/{ldap,sql}/user_info in user_info before displaying any information about the user
184 * Add a configuration directive general_charset. Add a language meta tag in all pages
185 * Use sql_extra_servers directive when adding users in the badusers table. Add a da_sql_host_connect() function
186   to connect to a specific sql host
187 * Fix a typo in lib/sql/attrmap.php3
188 * Add an entry in the FAQ about the Dialup-Access attribute
189 * Add an entry in the FAQ about duplicate personal attributes in the user_admin page
190 * Only show the personal attributes in the New User page if we have ldap or we are using the userinfo table in sql
191 * Add a per nas finger_type directive
192 * Update the TODO file
193 * Add an entry in the FAQ about adding .php3 handling
194 * Add a few installation notes
195 * Fix a problem with user_stats.php3
196 * Update the README file with notes about the scripts present in the bin folder
197 * Add a <?php tag instead of a <?. Bug noted by Isam Ishaq <isam@planet.edu>
198 * Add support for regexp and like operators in accounting report generator
199 * Limit the split() to 2 elements in lib/defaults.php3
200 * Create a AcctUniqueId before adding a row in radacct in log_badlogins.
201 * Use Max-Monthly-Session not Max-Weekly-Session for the monthly limit
202 * When checking the weekly limit check first that $remaining is numeric before doing any comparisons
203 * Add a usage_summary parameter in user_finger. If it is passed then we only output a text like:
204   "Online: <num> Free: <num>" which can be used in outside pages
205 * Use $config[sql_usergroup_table] in show_groups.php3
206 * Add a config directive general_stats_use_totacct. If set we use the totacct table in the stats page instead of
207   radacct
208 * Small change in user_accounting.php3
209 * Escape " in login_time create page before parsing the login-time string
210 * Add Service-Type in user_edit.attrs
211 * In user_finger page if $user is NULL then set it to &nbsp;
212 * Add 3 more help pages from Stadler Karel <Karel.Stadler@psi.ch> for Service-Type,Framed-Protocol and Filter-ID
213 * Make all scripts use the mysql binary instead of DBI  and make the sql password even if it is empty
214 * Make log_badlogins work with usernames containing spaces
215 * Only delete sessions which are not open in truncate_radacct. Bug noted by Evren Yurtesen <yurtesen@ispro.net.tr>
216 * Add a user input tag in user_stats.php3
217 * Change AcctStopTime = '0' with AcctStopTime IS NULL
218 * Add a few more attribute help pages from Ulrich Walcher <uwalcher@bcore.de>
219 * Also check for $server != '' in stats.php3. Bug noted by Ulrich Walcher <uwalcher@bcore.de>
220 * Consider the account locked either if Dialup-Access == FALSE or if it is not set at all
221 * Calculate weekly used time correctly (from Sunday 00:00:00)
222 * Allow for defining the ldap_filter used when searching for a user. The filter supports dynamic variables
223   like %u (username) and %U (username provided though http auth)
224 * Add a configuration directive counter_monthly_calculate_usage to calculate the monthly usage time. Calculate
225   it in user_admin if monthly_limit != 'none' or if this directive is set.
226   Based on a report by "apellido jr., wilfredo p"
227 * Add more comments in the admin.conf file
228 * Show correct calculation of the montlhy usage time.
229 * Don't show an account as locked if Dialup-Access does not exist and the mapping corresponds to 'none' attribute
230 * Make clean_radacct and truncate_radacct work correctly
231 * Fix a small bug in bytes2str. It will now also show GBs if appropriate
232 * Add an entry about the failed_logins page
233 * Update the help page for the lock message attribute
234 * Update the badusers page to also use the general_accounting_info_order directive
235 Ver 1.62:
236 * Remove one sql query from user_admin which was not needed.
237 * Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime
238   <= 'YYYY-MM-DD 23:59:59'" which will allow us to use sql indexes better.
239 * Add a few comments in bin/clean_radacct
240 * Add a new script bin/truncate_radacct which will delete all sessions from the radacct table which
241   are older than a configurable number of days
242 * Fix a typo in sql.attrmap. Fix by Evren Yurtesen <eyurtese@turkuamk.fi>
243 * Work even when register_globals if off. Suggestion from Evren Yurtesen <eyurtese@turkuamk.fi>
244   Also add an entry in the FAQ about that.
245 * We don't need ORDER BY GroupName in show_groups.php3 since we have GROUP BY
246 * Use CISCO-POP-MGMT-MIB in snmpfinger instead of CISCO-CALL-HISTORY-MIB. Thanks to
247   Evren Yurtesen <eyurtese@turkuamk.fi> for the suggestion.
248 * Remember a few things in the user_test page. Also add another configuration file directive
249   general_radius_server_auth_proto specifying the default authentication protocol of the radius
250   server (pap or chap).
251 * Replace single quotes with double quotes in log_badlogins
252 * Add a missing <?php tag. Bug noted by Simon Burns <simon@ababa.org>
253 * Add sql_use_http_credentials configuration directive to connect to the sql database using the http user
254   credentials (that way there can be more than one administrator usernames, each with different privileges
255   on the sql database).
256 * Add more error messages when interacting with the SQL database
257 * Add sql_connect_timeout and sql_extra_servers configuration directives to be used by the log_badlogins script
258 * In log_badlogins create a separate sql input file for each sql server and append sql commands to it. If the
259   sql command succeeds we delete the corresponding input file. That way if an sql server is down we store the
260   accounting info in the input file and then send it all when it comes back up.
261 * Add a directive sql_debug. Add debugging statements in the sql library
262 * Add a directive ldap_debug. Add debugging statements in the ldap library
263 * Add debug statements in the pg driver
264 * In debug, output the sql queries in italic. Refer to enabling debugging in the FAQ
265 * Don't include user_info.php3 in the user_test page.
266 * Make things a little bit more simple in lib/ldap/change_attrs.php3
267 * Fix a small bug in lib/ldap/create_user.php3. Unset the mod array before adding any values to it.
268 * Fix a small problem with debugging
269 * Do a write lock in radacct before truncating it in truncate_radacct
270 * In user_new show a select box with all the available groups. Based on an idea by Karel Stadler (kstadler)
271 * Add a column Admin in the badusers table which will contain the administrator username if that is available
272 * Add two new tables totacct and mtotacct containing per user aggregated statistics for each day and month
273   respectively. Also add two corresponding scripts in the bin folder, tot_stats and monthly_tot_stats. Lastly,
274   create a new page, user_stats.php3 which will show the top users in connections or connections duration based
275   on the data in the totacct table.
276 * Add a few comments in the tot_stats and monthly_tot_stats scripts
277 * Add support for ! in usernames in log_badlogins
278 * Call gethostbyaddr with an @ in front to suppress error messages
279 * Also add support for @ in usernames in log_badlogins
280 Ver 1.61:
281 * Add a string encoder for greek
282 * If general_decode_normal_attributes is set then encode attributes in lib/ldap/change_info. In the near future
283   language specific user attributes will be added in the change info and new user pages. Remove comments from
284   admin.conf about the change info page not working if this directive is used.
285 * When spliting cn in lib/ldap/create_user.php3 limit the split to 2 new elements not 3.
286 * Fix a few bugs in log_badlogins
287 * Fix a parse error in failed_logins.php3
288 * Fix a bug in lib/defaults.php3 which did not allow the default.vals file to be used correctly
289 * Include password.php3 in lib/ldap/password_check.php3
290 * When searching a user in ldap through the find page only try to find the users which have a uid attribute (username)
291 * Allow selecting a specific access server in the failed logins page
292 * In the user admin page use AcctStartTime not AcctStopTime when calculating usage for the last 7 days
293 * Also show server:port in the user test page (so that it shows when used for server checks)
294 * Now the create user page should work with sql
295 * Make the default general_lib_type sql instead of ldap
296 Ver 1.60:
297 * Use require_once when including lib/functions.php3 in lib/sql
298 * In the buttons toolbar Edit User should not be clickable.
299 * Add an arrow gif in htdocs/images to be used in the buttons page when adding multiple finger pages
300 * In snmpfinger also consider '-' as a valid character for a username
301 * Add support for realm in username and allow for realm striping in the web pages and in log_badlogins
302 * Add a few more comments in the admin.conf
303 * Update the FAQ with an entry about the Online Users page not showing anything.
304 * Update the FAQ with an entry about sessions.
305 * Allow the user to add extra attributes in the test user page
306 * Add a few comments in log_badlogins, support auth logs containing the password, work nice when the client
307   is localhost, add an option to scan the whole radius.log and add failed logins in the sql database (can be
308   used for initialization).
309 * html fixes in accounting.php3
310 * Fix a problem in user_accounting when NASIPAddress is not set.
311 * Use CISCO-AAA-SESSION-MIB in snmpfinger
312 * In lib/ldap/functions.php3 only ask for the cn attribute in ldap_search not the whole entry. That should make
313   user_finger a lot faster when the user database is in ldap
314 * In lib/functions.php3 pass a second argument to date2timediv with the current time. user_finger calls that
315   function for each online user so we now don't need to do a lot of calls to time() but only one. That should make
316   user_finger somewhat faster.
317 * Fix a small issue with the general_accounting_info_order
318 * Fix a problem in failed_logins when NASIPAddress is not set.
319 * Allow for multiple regular profile attributes in a user entry.
320 * Allow for normal ldap user attributes to be utf8 encoded instead of ascii. Changing attribute values through
321   user_info will not work in that case.
322 * Fix a small bug in lib/ldap/defaults.php3. We should not be using $i in a for() loop but a new variable
323 * Add a comment in admin.conf about ldap server failover
324 * Map a specific username to the directory manager if we are using ldap and http authentication
325 Ver 1.59:
326 * Small html fixes in user_edit.php3 and password.php3
327 * Show number of failed logins in the last 7 days in the user admin page
328 * Show date in the user/server test page
329 * In config.php3 include a relative admin.conf file not an absolute
330 * Add an entry in the FAQ about php magic quotes
331 * Escape double quotes in attribute values in the user edit page
332 * Fix a bug in lib/sql/change_passwd.php3 when not using operators.
333   Bug report from Sheldon Fougere <sfougere@solutioninc.com>
334 * Add the caller id in the connection status attributes in the show user page
335 * Allow for multiple default values. Also add a generic flag in ldap attrmap. If it exists then the
336   attribute is generic and user values *do not* overwrite default values. The operators in the generic
337   attribute can be used for that. The same is very difficult to implement for sql, so for now user
338   values overwrite default values in sql (user edit page).
339   A lot of code and a lot of files where changed so there may be bugs somewhere.
340 * In the user edit page print a message under the User Password field about if it exists or not. Update
341   the user_info.php3 lib files to check for it.
342 * In lib/ldap/defaults.php3 Dialup-Access should not be added in the default_vals. It is not inherited.
343 * If we are editing a group show a comment that in the radiusd sql module the group tables are evaluated
344   after the user tables. As a result user values should in general overwrite default values.
345 * Add support for the default_user_profile of the sql module in lib/sql/defaults.php3
346 * In sql.attrmap User-Password should map to User-Password, not Password
347 * If an sql attribute is not contained in sql, assume that it has the same name as in dialup_admin and that
348   it is a reply item. Add a comment for that in conf/sql.attrmap.
349 * Change the way radius attributes are read from the sql database. The change should make things somewhat
350   faster. Create a reverse mapping from radius attributes to dialup_admin attributes.
351 * Add a configuration directive called ldap_use_http_credentials. If it is set to yes then we try to
352   connect to the ldap server with the username/password given in http authentication, not those contained
353   in admin.conf. That way multiple admins with different permissions on the ldap tree can work on a single
354   dialup_admin.
355 * With the same logic we allow for multiple buttons html pages. We now create a folder html/buttons which
356   by default contains a folder default. If the user logs in with http authentication then we try
357   to open the file html/buttons/<username>/buttons.html.php3. If we can't we open
358   html/buttons/default/buttons.html.php3. That way we can create muiltiple views of say the online users
359   page based on which admin requests the page.
360 * Call config.php3 before outputing any html.
361 * Add sessions in order to cache the various mappings. Add a corresponding configuration directive
362   general_use_session. Also add a session cache destroy page.
363 * Also cache the admin.conf if use_session is set to 1 in config.php3
364 * Fix a few bugs
365 * Remove the auto password generator from the user edit page. It has no meaning since the password is not
366   shown
367 * In lib/sql/defaults.php3 instead of doing a select for each group the user belongs to, do one select with
368   a where in () caluse.
369 * Also cache the default.vals file.
370 * Update documentation
371 * Only connect and bind to the ldap server if we haven't done that before.
372 * Remove previous change. It was causing problems
373 * In the user test page ignore comments from the auth.request file
374 * Add a new config directive, ldap_write_server. If it is set then when we update the directory we try to
375   connect to that one instead of the ldap_server. That way we can read from the fast read-only replicas and
376   write to a slower master.
377 * Fix a few more bugs
378 * Add a failed logins page, to show the most recent failed logins.
379 * Fix a bug in the failed logins page
380 * Change use of AcctStartTime with AcctStopTime in failed_logins.php3 to match that in user_admin
381 * Fix a bug with failed logins in user_admin.
382 * Add the failed logins page in the buttons page
383 * Add a missing WHERE UserName = '$login' in the UPDATE statement in lib/sql/change_info.php3. Patch by
384   Eddie Bindt <eddieb@users.sourceforge.net>
385 Ver 1.55:
386 * Update the FAQ about missing attributes from the user/group edit pages and add a few comments
387   in the configuration files
388 * Add support for the Expiration attribute. Add it in the sql attribute map, in user_edit.attrs and
389   check for it in user_admin
390 * Add a few more keys in the userinfo and badusers tables.
391 * Fix a problem with lib/sql/defaults.php3 where the first character in the default value when using
392   operators was set to the opeator
393 * Add a user find page. User can be searched based on the full name, department or RADIUS attribute.
394   The radius attribute should be included in the _user_ profile, not in a group/regular/default profile.
395 * Add support for the user ldap regular profile attribute in user_edit.attrs
396 * Fix a stupid bug in accounting.php3. We should not use the show_attrs array.
397 Ver 1.54:
398 * Add attributes for the sql group tables in admin.conf. Now SQL group support should really work!
399 Ver 1.53:
400 * html fixes in show_groups.php3
401 * When reporting sql errors also print the output of da_sql_error
402 * When updating ldap user information don't do an update if the new attribute value
403   is '-' (default value)
404 * Comment out Reply-Message in conf/user_edit.attrs since in sql it maps to the same attribute as
405   the lock message
406 Ver 1.52:
407 * Add Reply-Message in conf/user_edit.attrs so that it appears in the user/group edit pages
408 * Allow the administrator to specify a group in the New User page. Update lib/sql/create_user.php3 to add
409   the user to the specified group
410 * Call user_info.php3 and defaults.php3 in user_new.php3 after creating a user
411 * Only run if $login is not NULL in lib/sql/defaults.php3
412 * In group admin add a button to administer the selected user which will redirect the administrator to the
413   corresponding user_admin page
414 * Add a show_groups.php3 to show all active user groups
415 Ver 1.51:
416 * Only call user_info.php3 in user_new.php3 when we are creating a user
417 * Fix a bug with personal information attributes in user_new.php3
418 Ver 1.50:
419 * Add support for groups in SQL. Added several new files and modified a few more.
420 * Default values in SQL are now extracted from the group membership. Added a lib/sql/defaults.php3 file.
421   As a result the default operator is not '=' anymore but whatever we find in the group check and reply tables.
422 * In lib/sql/user_info.php3 set user_exists in more than one places.
423 * Add support for the '=*' and '!*' operators
424 * Added a HELP_WANTED file describing what are the major things missing which people could contribute.
425 * Updated TODO
426 * Added a help page for the Session Timeout and Idle Timeout attributes.
427 * The new group page should only be available if the general library type is sql.
428 * Fix a small bug in lib/sql/create_user.php3 where work and home phone were stored in the wrong fields.
429 * Set personal information attributes in lib/sql/user_info.php3 to default values.
430 * Add a page to change the user's personal information. Changed the user toolbar and added htdocs/user_info.php3
431   along with lib/{sql,ldap}/change_info.php3
432 * Print a message if we can't connect to the ldap server in lib/ldap/user_info.php3
433 * Use a textarea for new members in group_admin.php3 and group_new.php3. Update lib/sql/create_group.php3 and
434   lib/sql/group_admin.php3
435 * Set a few more personal information attributes to defaults in lib/sql/user_info.php3
436 * Fix a typo for department
437 * Set personal information attributes to defaults in lib/ldap/user_info.php3
438 * Have adddress and home address in user personal info
439 * Set $user_info in lib/{ldap,sql}/user_info.php3 and only if the user exists and has personal info
440 * Show language attributes only if general_prefered_lang is not 'en'
441 Ver 1.30:
442 * Add limit of results returned in accounting.php3
443 * Fix a bug in time2strclock() in lib/functions.php3. Seconds ammount more than 9 would not show.
444   Bug noted by Timophey <bcloud@mail.ru>
445 * Reaarange a few things in user_admin. Put Subscription Analysis first and 'Account Status' second. Make a
446   few things bold.
447 * Change log_badlogins to use the mysql binary instead of the DBI module. That way we don't have any
448   dependencies and we don't need to bother with connection maintainance (dead mysql connections etc).
449 * html fixes in user_finger.php3
450 * Fix a bug in lib/add_badusers.php3 which did not allow inserts in the badusers table.
451 * Make lib/ldap/password_check.php3 behave properly when it is passed a null password
452 * Allow for daily/weekly/monthly limits to be set to none and show correct results in the show user page
453 * Fix a small bug in user_admin.php3.
454 * Pass the whole password as salt in da_encrypt() in password_check.php3
455 * Refresh the online users page every 50 secs. Patch by Alexandre Strube <surak@barroco.com.br>
456 * Check if the last logged in server and client ip are valid before calling gethostbyaddr
457 * If the same attribute appears more than once in the user edit page then show a count of the number of
458   occurences next to the attribute name
459 * Add a server argument to user_finger.php3. If it is set then the page will only show the logged in users
460   in that access server instead of all of them. Update the README with documentation for that fact.
461 Ver 1.29:
462 * Add general_ld_library_path directive and set LD_LIBRARY_PATH accordingly (used in snmpfinger and
463   radaclient).
464 * Add general_finger_type directive to determine if we will use snmpfinger in user_finger.php3
465 * Fix a bug in config.php3 when we have a directive containing ':'
466 * Fix a bug in lib/ldap/change_attrs.php3 that did not allow changing more than one value of a 
467   multivalued attribute simultaneously.
468 * Added selection of ordering in user_accounting.php3. Now it can be either ascending (older records
469   first) or descending (most recent records first). Added a corresponding configuration directive.
470 * Added operator support in sql. The eq(=),set(:=) and add(+=) operators are supported. Added an
471   sql_use_operators configuration directive. Hope everything works.
472 * Fixed a bug in sql/change_attrs which did not allow multi valued attributes in sql.
473 * unset item_vals before adding info in ldap and sql user_info files.
474 * Add support for the rest of the operators. Created the lib/operators.php3 file containing helper functions
475 * Fix a small bug in log_badlogins. The nas domain should be a variable not hard coded.
476 * Fix a bug in lib/sql/delete_user.php3. Call da_sql_query with the correct arguments
477 Ver 1.28:
478 * Make user_delete.php3 print something when a user is deleted
479 * Cache nas hostname lookups in user_accounting
480 Ver 1.27:
481 * Allow for variable expansion in the configuration file. Something like:
482   general_base_dir: /usr/local/dialup_admin
483   general_default_file: %{general_base_dir}/conf/default.vals
484 * Small changes in the README file
485 * A few corrections in the sql drivers
486 * Enlarged the textboxes in the user_edit page
487 * Created a folder help
488 * Added a help page for:
489    o Login-Time
490    o Simultaneous-Use
491    o Dialup-Access
492    o Framed-Compression
493    o Port-Limit
494    o Lock Message
495    o Framed-IP-Address
496 Ver 1.26:
497 * A few bugfixes for the general sql code (typo mistakes mostly)
498 Ver 1.25:
499 * Deleted a mysql_close from lib/mysql/create_user since we now have persistent sql connections
500 * Removed the select_db() from accounting.php3 since it is not needed
501 * A lot of html changes in accounting.php3
502 * Changed the sql code to be modular. Now under lib we don't have a mysql directory but a sql directory
503   with a directory drivers which contains the database specific functions. As a result all calls to mysql*
504   functions where changed to call da_sql* functions. Right now mysql should work and postgresql *may* work
505   It is not tested though. Hopefully things will come back to being stable in a few days.
506 * Added sql_port and sql_type configuration file directives
507 Ver 1.20:
508 * Fixed a bug in lib/ldap/change_attrs. When we modify an attribute do an ldap_mod_del($mod) and then a
509   ldap_mod_add($add_r)
510 * In accounting.php3 show the attribute description instead of the attribute name.
511 Ver 1.19:
512 * In lib/ldap/check_password.php3 don't do a user search but use the already available user DN
513 * Remove the language support from the get_user_info() functions. They are only used in the user_finger page
514 * In user_state show weekly usage for the week starting from sunday 00:00, not for the last 7 days
515 * Show upload/download when connected or for the last time the user connected
516 * Fixed a few minor problems with the help and about pages
517 Ver 1.18:
518 * Fixed a small problem with total upload,download numbers in user_admin
519 * Fixed a major problem in the accounting report generator when adding an attribute check. Now it
520   should be all OK.
521 * Fixed a small bug in lib/mysql/functions.php3. Bug found be galileo@microsky.net
522 Ver 1.17:
523 * Fixed a few more problems in the mysql code
524 * Updated README
525 * the help page now prints the README file. It also has a common layout with the other pages
526 * Changed the about page to have a common look with the other pages.
527 Ver 1.16:
528 * Fixed a few typing mistakes in mysql.attrmap
529 * If the corresponding attribute name (in ldap or mysql) is 'none' then do not
530   edit/add it. Based on a bug report by galileo@microsky.net
531 * Fixed a few errors in lib/attrshow.php3
532 Ver 1.15:
533 * Added user test page. It will use radclient to send a radius access-request
534   to the radius server and check the response. This page is also used to check
535   that the radius server is working fine. Added user_test.php3 and a few config
536   file parameters.
537 * Support for multi valued attributes.
538 * Changed cleartext encryption name from none to clear
539 * Renamed the general_sql_row_limit configuration directive to sql_row_limit
540 Ver 1.12:
541 * Added an FAQ
542 * Small changes in html code
543 * Small changes in the README file
544 * Fixed a small problem in delete_user from ldap
545 * Removed the Base64 encode since it was causing problems
546 Ver 1.11:
547 * Changed all ldap_bind() to use the ldap bind DN and password. Should have been
548   the default behaviour
549 * Do a Base64 encode in ldap/change_password.php3 before sending the password to
550   the ldap server
551 * Added support for module messages in log_badlogins and user_accounting
552 * Updated documentation
553 Ver 1.10:
554 * Added support for users in mysql database. All bugs are welcome. To activate
555   just use mysql as library_type
556 * Added support for salt in crypt.php3
557 * Added userinfo table to keep information for users (Name,Phone etc). Added two
558   corresponding values in admin.conf
559 * Added mysql.attrmap for mysql support
560 * Added TODO
561 * Added persistent connections for mysql (mysql_pconnect())
562 Ver 1.00:
563 * Added password change facility in user_edit. Support for multiple
564   password encryption methods
565 * Added user deletion page user_delete.php3 with corresponding ldap lib code
566 * Moved the second user_info.php3 include in user_edit to the correct location. Also
567   used isset instead of == ''
568 * Moved the action toolbar (show,edit,accounting...) into a separate html file
569 * Added the nas model in user_finger.php3
570 Ver 0.99.8:
571 * Added the caller id in the finger facility
572 * Changed the start date in the badusers file to 0000
573 * Added the out of quota message in user_admin
574 * fixed a few problems with the html code in user_admin.php3
575 * calculate account status in user_admin for the last week only
576 * Change font color to red if used time > corresponding limit (weekly or daily)
577 * Added the user_stats.php3. It can be used by outside pages to get a quick
578   overview of the status of the user. It will return the following fields
579   separated by new lines:
580   account_status(active or inactive),lock message,weekly limit,daily limit,
581   weekly used,weekly connections,daily used,daily connections
582 * fixed a bug in the subscription analysis in user_admin.php3
583 * calculate weekly used from sunday 00:00:00 when the counters reset
584 * added clean_radacct which will clean radacct entries which have been open
585   for more than a day. It will not do any harm even if it is incorrect since
586   when rlm_sql runs if the update operation fails then it will fall back to
587   insert (see sql.conf)
588 * added log_badlogins. It will continuously read the radius.log file and log
589   to the radacct table all login incorrect and multiple logins with a
590   corresponding acctterminatecause. user_accounting.php3 is already prepared
591   for this (it will show those entries in red)
592 * fix a small bug with null values in change_vals.php3 of the ldap lib
593 Ver 0.99:
594 * Added the badusers table
595 * Added the default and regular profile from ldap for user_edit
596 * Added the snmpfinger in the finger facility so that it will not
597   relly on the sql database.
598 * Added the new user facility
599 * Added support for the Lock Message facility
600 * Various bug fixes and enhancements
601
602 Ver 0.31:
603 * Added the @ sign in the {mysql,ldap}_{open,close} functions so that
604   they don't show error messages
605 * Changed double quotes with single quotes where applicable for performance
606   reasons