Add a <?php tag instead of a <?. Bug noted by Isam Ishaq <isam@planet.edu>
[freeradius.git] / dialup_admin / Changelog
1 Ver 1.63:
2 * Do an eval on the attribute description strings in the user_edit page. That will allow the login-time creation
3   page to work properly.
4 * Add a login-time creation page which will allow the administrator to create the login-time string through a gui
5   instead of writing it directly in UUCP format.
6 * Call lib/{ldap,sql}/user_info in user_info before displaying any information about the user
7 * Add a configuration directive general_charset. Add a language meta tag in all pages
8 * Use sql_extra_servers directive when adding users in the badusers table. Add a da_sql_host_connect() function
9   to connect to a specific sql host
10 * Fix a typo in lib/sql/attrmap.php3
11 * Add an entry in the FAQ about the Dialup-Access attribute
12 * Add an entry in the FAQ about duplicate personal attributes in the user_admin page
13 * Only show the personal attributes in the New User page if we have ldap or we are using the userinfo table in sql
14 * Add a per nas finger_type directive
15 * Update the TODO file
16 * Add an entry in the FAQ about adding .php3 handling
17 * Add a few installation notes
18 * Fix a problem with user_stats.php3
19 * Update the README file with notes about the scripts present in the bin folder
20 * Add a <?php tag instead of a <?. Bug noted by Isam Ishaq <isam@planet.edu>
21 Ver 1.62:
22 * Remove one sql query from user_admin which was not needed.
23 * Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime
24   <= 'YYYY-MM-DD 23:59:59'" which will allow us to use sql indexes better.
25 * Add a few comments in bin/clean_radacct
26 * Add a new script bin/truncate_radacct which will delete all sessions from the radacct table which
27   are older than a configurable number of days
28 * Fix a typo in sql.attrmap. Fix by Evren Yurtesen <eyurtese@turkuamk.fi>
29 * Work even when register_globals if off. Suggestion from Evren Yurtesen <eyurtese@turkuamk.fi>
30   Also add an entry in the FAQ about that.
31 * We don't need ORDER BY GroupName in show_groups.php3 since we have GROUP BY
32 * Use CISCO-POP-MGMT-MIB in snmpfinger instead of CISCO-CALL-HISTORY-MIB. Thanks to
33   Evren Yurtesen <eyurtese@turkuamk.fi> for the suggestion.
34 * Remember a few things in the user_test page. Also add another configuration file directive
35   general_radius_server_auth_proto specifying the default authentication protocol of the radius
36   server (pap or chap).
37 * Replace single quotes with double quotes in log_badlogins
38 * Add a missing <?php tag. Bug noted by Simon Burns <simon@ababa.org>
39 * Add sql_use_http_credentials configuration directive to connect to the sql database using the http user
40   credentials (that way there can be more than one administrator usernames, each with different privileges
41   on the sql database).
42 * Add more error messages when interacting with the SQL database
43 * Add sql_connect_timeout and sql_extra_servers configuration directives to be used by the log_badlogins script
44 * In log_badlogins create a separate sql input file for each sql server and append sql commands to it. If the
45   sql command succeeds we delete the corresponding input file. That way if an sql server is down we store the
46   accounting info in the input file and then send it all when it comes back up.
47 * Add a directive sql_debug. Add debugging statements in the sql library
48 * Add a directive ldap_debug. Add debugging statements in the ldap library
49 * Add debug statements in the pg driver
50 * In debug, output the sql queries in italic. Refer to enabling debugging in the FAQ
51 * Don't include user_info.php3 in the user_test page.
52 * Make things a little bit more simple in lib/ldap/change_attrs.php3
53 * Fix a small bug in lib/ldap/create_user.php3. Unset the mod array before adding any values to it.
54 * Fix a small problem with debugging
55 * Do a write lock in radacct before truncating it in truncate_radacct
56 * In user_new show a select box with all the available groups. Based on an idea by Karel Stadler (kstadler)
57 * Add a column Admin in the badusers table which will contain the administrator username if that is available
58 * Add two new tables totacct and mtotacct containing per user aggregated statistics for each day and month
59   respectively. Also add two corresponding scripts in the bin folder, tot_stats and monthly_tot_stats. Lastly,
60   create a new page, user_stats.php3 which will show the top users in connections or connections duration based
61   on the data in the totacct table.
62 * Add a few comments in the tot_stats and monthly_tot_stats scripts
63 * Add support for ! in usernames in log_badlogins
64 * Call gethostbyaddr with an @ in front to suppress error messages
65 * Also add support for @ in usernames in log_badlogins
66 Ver 1.61:
67 * Add a string encoder for greek
68 * If general_decode_normal_attributes is set then encode attributes in lib/ldap/change_info. In the near future
69   language specific user attributes will be added in the change info and new user pages. Remove comments from
70   admin.conf about the change info page not working if this directive is used.
71 * When spliting cn in lib/ldap/create_user.php3 limit the split to 2 new elements not 3.
72 * Fix a few bugs in log_badlogins
73 * Fix a parse error in failed_logins.php3
74 * Fix a bug in lib/defaults.php3 which did not allow the default.vals file to be used correctly
75 * Include password.php3 in lib/ldap/password_check.php3
76 * When searching a user in ldap through the find page only try to find the users which have a uid attribute (username)
77 * Allow selecting a specific access server in the failed logins page
78 * In the user admin page use AcctStartTime not AcctStopTime when calculating usage for the last 7 days
79 * Also show server:port in the user test page (so that it shows when used for server checks)
80 * Now the create user page should work with sql
81 * Make the default general_lib_type sql instead of ldap
82 Ver 1.60:
83 * Use require_once when including lib/functions.php3 in lib/sql
84 * In the buttons toolbar Edit User should not be clickable.
85 * Add an arrow gif in htdocs/images to be used in the buttons page when adding multiple finger pages
86 * In snmpfinger also consider '-' as a valid character for a username
87 * Add support for realm in username and allow for realm striping in the web pages and in log_badlogins
88 * Add a few more comments in the admin.conf
89 * Update the FAQ with an entry about the Online Users page not showing anything.
90 * Update the FAQ with an entry about sessions.
91 * Allow the user to add extra attributes in the test user page
92 * Add a few comments in log_badlogins, support auth logs containing the password, work nice when the client
93   is localhost, add an option to scan the whole radius.log and add failed logins in the sql database (can be
94   used for initialization).
95 * html fixes in accounting.php3
96 * Fix a problem in user_accounting when NASIPAddress is not set.
97 * Use CISCO-AAA-SESSION-MIB in snmpfinger
98 * In lib/ldap/functions.php3 only ask for the cn attribute in ldap_search not the whole entry. That should make
99   user_finger a lot faster when the user database is in ldap
100 * In lib/functions.php3 pass a second argument to date2timediv with the current time. user_finger calls that
101   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
102   user_finger somewhat faster.
103 * Fix a small issue with the general_accounting_info_order
104 * Fix a problem in failed_logins when NASIPAddress is not set.
105 * Allow for multiple regular profile attributes in a user entry.
106 * Allow for normal ldap user attributes to be utf8 encoded instead of ascii. Changing attribute values through
107   user_info will not work in that case.
108 * Fix a small bug in lib/ldap/defaults.php3. We should not be using $i in a for() loop but a new variable
109 * Add a comment in admin.conf about ldap server failover
110 * Map a specific username to the directory manager if we are using ldap and http authentication
111 Ver 1.59:
112 * Small html fixes in user_edit.php3 and password.php3
113 * Show number of failed logins in the last 7 days in the user admin page
114 * Show date in the user/server test page
115 * In config.php3 include a relative admin.conf file not an absolute
116 * Add an entry in the FAQ about php magic quotes
117 * Escape double quotes in attribute values in the user edit page
118 * Fix a bug in lib/sql/change_passwd.php3 when not using operators.
119   Bug report from Sheldon Fougere <sfougere@solutioninc.com>
120 * Add the caller id in the connection status attributes in the show user page
121 * Allow for multiple default values. Also add a generic flag in ldap attrmap. If it exists then the
122   attribute is generic and user values *do not* overwrite default values. The operators in the generic
123   attribute can be used for that. The same is very difficult to implement for sql, so for now user
124   values overwrite default values in sql (user edit page).
125   A lot of code and a lot of files where changed so there may be bugs somewhere.
126 * In the user edit page print a message under the User Password field about if it exists or not. Update
127   the user_info.php3 lib files to check for it.
128 * In lib/ldap/defaults.php3 Dialup-Access should not be added in the default_vals. It is not inherited.
129 * If we are editing a group show a comment that in the radiusd sql module the group tables are evaluated
130   after the user tables. As a result user values should in general overwrite default values.
131 * Add support for the default_user_profile of the sql module in lib/sql/defaults.php3
132 * In sql.attrmap User-Password should map to User-Password, not Password
133 * If an sql attribute is not contained in sql, assume that it has the same name as in dialup_admin and that
134   it is a reply item. Add a comment for that in conf/sql.attrmap.
135 * Change the way radius attributes are read from the sql database. The change should make things somewhat
136   faster. Create a reverse mapping from radius attributes to dialup_admin attributes.
137 * Add a configuration directive called ldap_use_http_credentials. If it is set to yes then we try to
138   connect to the ldap server with the username/password given in http authentication, not those contained
139   in admin.conf. That way multiple admins with different permissions on the ldap tree can work on a single
140   dialup_admin.
141 * With the same logic we allow for multiple buttons html pages. We now create a folder html/buttons which
142   by default contains a folder default. If the user logs in with http authentication then we try
143   to open the file html/buttons/<username>/buttons.html.php3. If we can't we open
144   html/buttons/default/buttons.html.php3. That way we can create muiltiple views of say the online users
145   page based on which admin requests the page.
146 * Call config.php3 before outputing any html.
147 * Add sessions in order to cache the various mappings. Add a corresponding configuration directive
148   general_use_session. Also add a session cache destroy page.
149 * Also cache the admin.conf if use_session is set to 1 in config.php3
150 * Fix a few bugs
151 * Remove the auto password generator from the user edit page. It has no meaning since the password is not
152   shown
153 * In lib/sql/defaults.php3 instead of doing a select for each group the user belongs to, do one select with
154   a where in () caluse.
155 * Also cache the default.vals file.
156 * Update documentation
157 * Only connect and bind to the ldap server if we haven't done that before.
158 * Remove previous change. It was causing problems
159 * In the user test page ignore comments from the auth.request file
160 * Add a new config directive, ldap_write_server. If it is set then when we update the directory we try to
161   connect to that one instead of the ldap_server. That way we can read from the fast read-only replicas and
162   write to a slower master.
163 * Fix a few more bugs
164 * Add a failed logins page, to show the most recent failed logins.
165 * Fix a bug in the failed logins page
166 * Change use of AcctStartTime with AcctStopTime in failed_logins.php3 to match that in user_admin
167 * Fix a bug with failed logins in user_admin.
168 * Add the failed logins page in the buttons page
169 * Add a missing WHERE UserName = '$login' in the UPDATE statement in lib/sql/change_info.php3. Patch by
170   Eddie Bindt <eddieb@users.sourceforge.net>
171 Ver 1.55:
172 * Update the FAQ about missing attributes from the user/group edit pages and add a few comments
173   in the configuration files
174 * Add support for the Expiration attribute. Add it in the sql attribute map, in user_edit.attrs and
175   check for it in user_admin
176 * Add a few more keys in the userinfo and badusers tables.
177 * Fix a problem with lib/sql/defaults.php3 where the first character in the default value when using
178   operators was set to the opeator
179 * Add a user find page. User can be searched based on the full name, department or RADIUS attribute.
180   The radius attribute should be included in the _user_ profile, not in a group/regular/default profile.
181 * Add support for the user ldap regular profile attribute in user_edit.attrs
182 * Fix a stupid bug in accounting.php3. We should not use the show_attrs array.
183 Ver 1.54:
184 * Add attributes for the sql group tables in admin.conf. Now SQL group support should really work!
185 Ver 1.53:
186 * html fixes in show_groups.php3
187 * When reporting sql errors also print the output of da_sql_error
188 * When updating ldap user information don't do an update if the new attribute value
189   is '-' (default value)
190 * Comment out Reply-Message in conf/user_edit.attrs since in sql it maps to the same attribute as
191   the lock message
192 Ver 1.52:
193 * Add Reply-Message in conf/user_edit.attrs so that it appears in the user/group edit pages
194 * Allow the administrator to specify a group in the New User page. Update lib/sql/create_user.php3 to add
195   the user to the specified group
196 * Call user_info.php3 and defaults.php3 in user_new.php3 after creating a user
197 * Only run if $login is not NULL in lib/sql/defaults.php3
198 * In group admin add a button to administer the selected user which will redirect the administrator to the
199   corresponding user_admin page
200 * Add a show_groups.php3 to show all active user groups
201 Ver 1.51:
202 * Only call user_info.php3 in user_new.php3 when we are creating a user
203 * Fix a bug with personal information attributes in user_new.php3
204 Ver 1.50:
205 * Add support for groups in SQL. Added several new files and modified a few more.
206 * Default values in SQL are now extracted from the group membership. Added a lib/sql/defaults.php3 file.
207   As a result the default operator is not '=' anymore but whatever we find in the group check and reply tables.
208 * In lib/sql/user_info.php3 set user_exists in more than one places.
209 * Add support for the '=*' and '!*' operators
210 * Added a HELP_WANTED file describing what are the major things missing which people could contribute.
211 * Updated TODO
212 * Added a help page for the Session Timeout and Idle Timeout attributes.
213 * The new group page should only be available if the general library type is sql.
214 * Fix a small bug in lib/sql/create_user.php3 where work and home phone were stored in the wrong fields.
215 * Set personal information attributes in lib/sql/user_info.php3 to default values.
216 * Add a page to change the user's personal information. Changed the user toolbar and added htdocs/user_info.php3
217   along with lib/{sql,ldap}/change_info.php3
218 * Print a message if we can't connect to the ldap server in lib/ldap/user_info.php3
219 * Use a textarea for new members in group_admin.php3 and group_new.php3. Update lib/sql/create_group.php3 and
220   lib/sql/group_admin.php3
221 * Set a few more personal information attributes to defaults in lib/sql/user_info.php3
222 * Fix a typo for department
223 * Set personal information attributes to defaults in lib/ldap/user_info.php3
224 * Have adddress and home address in user personal info
225 * Set $user_info in lib/{ldap,sql}/user_info.php3 and only if the user exists and has personal info
226 * Show language attributes only if general_prefered_lang is not 'en'
227 Ver 1.30:
228 * Add limit of results returned in accounting.php3
229 * Fix a bug in time2strclock() in lib/functions.php3. Seconds ammount more than 9 would not show.
230   Bug noted by Timophey <bcloud@mail.ru>
231 * Reaarange a few things in user_admin. Put Subscription Analysis first and 'Account Status' second. Make a
232   few things bold.
233 * Change log_badlogins to use the mysql binary instead of the DBI module. That way we don't have any
234   dependencies and we don't need to bother with connection maintainance (dead mysql connections etc).
235 * html fixes in user_finger.php3
236 * Fix a bug in lib/add_badusers.php3 which did not allow inserts in the badusers table.
237 * Make lib/ldap/password_check.php3 behave properly when it is passed a null password
238 * Allow for daily/weekly/monthly limits to be set to none and show correct results in the show user page
239 * Fix a small bug in user_admin.php3.
240 * Pass the whole password as salt in da_encrypt() in password_check.php3
241 * Refresh the online users page every 50 secs. Patch by Alexandre Strube <surak@barroco.com.br>
242 * Check if the last logged in server and client ip are valid before calling gethostbyaddr
243 * If the same attribute appears more than once in the user edit page then show a count of the number of
244   occurences next to the attribute name
245 * Add a server argument to user_finger.php3. If it is set then the page will only show the logged in users
246   in that access server instead of all of them. Update the README with documentation for that fact.
247 Ver 1.29:
248 * Add general_ld_library_path directive and set LD_LIBRARY_PATH accordingly (used in snmpfinger and
249   radaclient).
250 * Add general_finger_type directive to determine if we will use snmpfinger in user_finger.php3
251 * Fix a bug in config.php3 when we have a directive containing ':'
252 * Fix a bug in lib/ldap/change_attrs.php3 that did not allow changing more than one value of a 
253   multivalued attribute simultaneously.
254 * Added selection of ordering in user_accounting.php3. Now it can be either ascending (older records
255   first) or descending (most recent records first). Added a corresponding configuration directive.
256 * Added operator support in sql. The eq(=),set(:=) and add(+=) operators are supported. Added an
257   sql_use_operators configuration directive. Hope everything works.
258 * Fixed a bug in sql/change_attrs which did not allow multi valued attributes in sql.
259 * unset item_vals before adding info in ldap and sql user_info files.
260 * Add support for the rest of the operators. Created the lib/operators.php3 file containing helper functions
261 * Fix a small bug in log_badlogins. The nas domain should be a variable not hard coded.
262 * Fix a bug in lib/sql/delete_user.php3. Call da_sql_query with the correct arguments
263 Ver 1.28:
264 * Make user_delete.php3 print something when a user is deleted
265 * Cache nas hostname lookups in user_accounting
266 Ver 1.27:
267 * Allow for variable expansion in the configuration file. Something like:
268   general_base_dir: /usr/local/dialup_admin
269   general_default_file: %{general_base_dir}/conf/default.vals
270 * Small changes in the README file
271 * A few corrections in the sql drivers
272 * Enlarged the textboxes in the user_edit page
273 * Created a folder help
274 * Added a help page for:
275    o Login-Time
276    o Simultaneous-Use
277    o Dialup-Access
278    o Framed-Compression
279    o Port-Limit
280    o Lock Message
281    o Framed-IP-Address
282 Ver 1.26:
283 * A few bugfixes for the general sql code (typo mistakes mostly)
284 Ver 1.25:
285 * Deleted a mysql_close from lib/mysql/create_user since we now have persistent sql connections
286 * Removed the select_db() from accounting.php3 since it is not needed
287 * A lot of html changes in accounting.php3
288 * Changed the sql code to be modular. Now under lib we don't have a mysql directory but a sql directory
289   with a directory drivers which contains the database specific functions. As a result all calls to mysql*
290   functions where changed to call da_sql* functions. Right now mysql should work and postgresql *may* work
291   It is not tested though. Hopefully things will come back to being stable in a few days.
292 * Added sql_port and sql_type configuration file directives
293 Ver 1.20:
294 * Fixed a bug in lib/ldap/change_attrs. When we modify an attribute do an ldap_mod_del($mod) and then a
295   ldap_mod_add($add_r)
296 * In accounting.php3 show the attribute description instead of the attribute name.
297 Ver 1.19:
298 * In lib/ldap/check_password.php3 don't do a user search but use the already available user DN
299 * Remove the language support from the get_user_info() functions. They are only used in the user_finger page
300 * In user_state show weekly usage for the week starting from sunday 00:00, not for the last 7 days
301 * Show upload/download when connected or for the last time the user connected
302 * Fixed a few minor problems with the help and about pages
303 Ver 1.18:
304 * Fixed a small problem with total upload,download numbers in user_admin
305 * Fixed a major problem in the accounting report generator when adding an attribute check. Now it
306   should be all OK.
307 * Fixed a small bug in lib/mysql/functions.php3. Bug found be galileo@microsky.net
308 Ver 1.17:
309 * Fixed a few more problems in the mysql code
310 * Updated README
311 * the help page now prints the README file. It also has a common layout with the other pages
312 * Changed the about page to have a common look with the other pages.
313 Ver 1.16:
314 * Fixed a few typing mistakes in mysql.attrmap
315 * If the corresponding attribute name (in ldap or mysql) is 'none' then do not
316   edit/add it. Based on a bug report by galileo@microsky.net
317 * Fixed a few errors in lib/attrshow.php3
318 Ver 1.15:
319 * Added user test page. It will use radclient to send a radius access-request
320   to the radius server and check the response. This page is also used to check
321   that the radius server is working fine. Added user_test.php3 and a few config
322   file parameters.
323 * Support for multi valued attributes.
324 * Changed cleartext encryption name from none to clear
325 * Renamed the general_sql_row_limit configuration directive to sql_row_limit
326 Ver 1.12:
327 * Added an FAQ
328 * Small changes in html code
329 * Small changes in the README file
330 * Fixed a small problem in delete_user from ldap
331 * Removed the Base64 encode since it was causing problems
332 Ver 1.11:
333 * Changed all ldap_bind() to use the ldap bind DN and password. Should have been
334   the default behaviour
335 * Do a Base64 encode in ldap/change_password.php3 before sending the password to
336   the ldap server
337 * Added support for module messages in log_badlogins and user_accounting
338 * Updated documentation
339 Ver 1.10:
340 * Added support for users in mysql database. All bugs are welcome. To activate
341   just use mysql as library_type
342 * Added support for salt in crypt.php3
343 * Added userinfo table to keep information for users (Name,Phone etc). Added two
344   corresponding values in admin.conf
345 * Added mysql.attrmap for mysql support
346 * Added TODO
347 * Added persistent connections for mysql (mysql_pconnect())
348 Ver 1.00:
349 * Added password change facility in user_edit. Support for multiple
350   password encryption methods
351 * Added user deletion page user_delete.php3 with corresponding ldap lib code
352 * Moved the second user_info.php3 include in user_edit to the correct location. Also
353   used isset instead of == ''
354 * Moved the action toolbar (show,edit,accounting...) into a separate html file
355 * Added the nas model in user_finger.php3
356 Ver 0.99.8:
357 * Added the caller id in the finger facility
358 * Changed the start date in the badusers file to 0000
359 * Added the out of quota message in user_admin
360 * fixed a few problems with the html code in user_admin.php3
361 * calculate account status in user_admin for the last week only
362 * Change font color to red if used time > corresponding limit (weekly or daily)
363 * Added the user_stats.php3. It can be used by outside pages to get a quick
364   overview of the status of the user. It will return the following fields
365   separated by new lines:
366   account_status(active or inactive),lock message,weekly limit,daily limit,
367   weekly used,weekly connections,daily used,daily connections
368 * fixed a bug in the subscription analysis in user_admin.php3
369 * calculate weekly used from sunday 00:00:00 when the counters reset
370 * added clean_radacct which will clean radacct entries which have been open
371   for more than a day. It will not do any harm even if it is incorrect since
372   when rlm_sql runs if the update operation fails then it will fall back to
373   insert (see sql.conf)
374 * added log_badlogins. It will continuously read the radius.log file and log
375   to the radacct table all login incorrect and multiple logins with a
376   corresponding acctterminatecause. user_accounting.php3 is already prepared
377   for this (it will show those entries in red)
378 * fix a small bug with null values in change_vals.php3 of the ldap lib
379 Ver 0.99:
380 * Added the badusers table
381 * Added the default and regular profile from ldap for user_edit
382 * Added the snmpfinger in the finger facility so that it will not
383   relly on the sql database.
384 * Added the new user facility
385 * Added support for the Lock Message facility
386 * Various bug fixes and enhancements
387
388 Ver 0.31:
389 * Added the @ sign in the {mysql,ldap}_{open,close} functions so that
390   they don't show error messages
391 * Changed double quotes with single quotes where applicable for performance
392   reasons