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