kkalev [Tue, 26 Nov 2002 12:30:56 +0000 (12:30 +0000)]
Remember a few things in the user_test page. Also add another configuration file directive
general_radius_server_auth_proto specifying the default authentication protocol of the radius
server (pap or chap).
kkalev [Mon, 25 Nov 2002 16:35:35 +0000 (16:35 +0000)]
* Use CISCO-POP-MGMT-MIB in snmpfinger instead of CISCO-CALL-HISTORY-MIB. Thanks to
Evren Yurtesen <eyurtese@turkuamk.fi> for the suggestion.
* Also do the same in checkrad for cisco routers
kkalev [Thu, 21 Nov 2002 23:33:32 +0000 (23:33 +0000)]
* Remove one sql query from user_admin which was not needed.
* Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime
<= 'YYYY-MM-DD 23:59:59'" which will allow us to use sql indexes better.
* Add a few comments in bin/clean_radacct
* Add a new script bin/truncate_radacct which will delete all sessions from the radacct table which
are older than a configurable number of days.
* Add an entry in tuning_guide about creating a multi column index for (UserName,AcctStopTime). This
will really help sql_checksimul and the corresponding queries.
kkalev [Tue, 12 Nov 2002 21:55:12 +0000 (21:55 +0000)]
* Allow selecting a specific access server in the failed logins page
* In the user admin page use AcctStartTime not AcctStopTime when calculating usage for the last 7 days
kkalev [Sun, 13 Oct 2002 20:18:17 +0000 (20:18 +0000)]
* Add a string encoder for greek
* If general_decode_normal_attributes is set then encode attributes in lib/ldap/change_info. In the near future
language specific user attributes will be added in the change info and new user pages. Remove comments from
admin.conf about the change info page not working if this directive is used.
* When spliting cn in lib/ldap/create_user.php3 limit the split to 2 new elements not 3.
* In lib/ldap/functions.php3 only ask for the cn attribute in ldap_search not the whole entry. That should make
user_finger a lot faster when the user database is in ldap
* In lib/functions.php3 pass a second argument to date2timediv with the current time. user_finger calls that
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
user_finger somewhat faster.
Add a few comments in log_badlogins, support auth logs containing the password, work nice when the client
is localhost, add an option to scan the whole radius.log and add failed logins in the sql database (can be
used for initialization).
Add a new config directive, ldap_write_server. If it is set then when we update the directory we try to
connect to that one instead of the ldap_server. That way we can read from the fast read-only replicas and
write to a slower master.
Add sessions in order to cache the various mappings. Add a corresponding
configuration directive general_use_session. Also add a session cache
destroy page.
* If an sql attribute is not contained in sql, assume that it has the same name as in dialup_admin and that
it is a reply item. Add a comment for that in conf/sql.attrmap.
* Change the way radius attributes are read from the sql database. The change should make things somewhat
faster. Create a reverse mapping from radius attributes to dialup_admin attributes.
* Add a configuration directive called ldap_use_http_credentials. If it is set to yes then we try to
connect to the ldap server with the username/password given in http authentication, not those contained
in admin.conf. That way multiple admins with different permissions on the ldap tree can work on a single
dialup_admin.
* With the same logic we allow for multiple buttons html pages. We now create a folder html/buttons which
by default contains a folder default. If the user logs in with http authentication then we try
to open the file html/buttons/<username>/buttons.html.php3. If we can't we open
html/buttons/default/buttons.html.php3. That way we can create muiltiple views of say the online users
page based on which admin requests the page.
* If we are editing a group show a comment that in the radiusd sql module the group tables are evaluated
after the user tables. As a result user values should in general overwrite default values.
* Add support for the default_user_profile of the sql module in lib/sql/defaults.php3
* In the user edit page print a message under the User Password field about if it exists or not. Update
the user_info.php3 lib files to check for it.
* In lib/ldap/defaults.php3 Dialup-Access should not be added in the default_vals. It is not inherited.
* Allow for multiple default values. Also add a generic flag in ldap attrmap. If it exists then the
attribute is generic and user values *do not* overwrite default values. The operators in the generic
attribute can be used for that. The same is very difficult to implement for sql, so for now user
values overwrite default values in sql (user edit page).
A lot of code and a lot of files where changed so there may be bugs somewhere.
* In config.php3 include a relative admin.conf file not an absolute
* Add an entry in the FAQ about php magic quotes
* Escape double quotes in attribute values in the user edit page
kkalev [Tue, 20 Aug 2002 14:34:10 +0000 (14:34 +0000)]
Add a user find page. User can be searched based on the full name, department or RADIUS attribute.
The radius attribute should be included in the _user_ profile, not in a group/regular/default profile.
kkalev [Tue, 20 Aug 2002 11:58:34 +0000 (11:58 +0000)]
* Add support for the Expiration attribute. Add it in the sql attribute map, in user_edit.attrs and
check for it in user_admin
* Add a few more keys in the userinfo and badusers tables.
* Fix a problem with lib/sql/defaults.php3 where the first character in the default value when using
operators was set to the opeator
kkalev [Tue, 13 Aug 2002 10:18:30 +0000 (10:18 +0000)]
* Allow the administrator to specify a group in the New User page. Update lib/sql/create_user.php3 to add
the user to the specified group
* Call user_info.php3 and defaults.php3 in user_new.php3 after creating a user
* Only run if $login is not NULL in lib/sql/defaults.php3
* In group admin add a button to administer the selected user which will redirect the administrator to the
corresponding user_admin page
kkalev [Tue, 13 Aug 2002 07:00:23 +0000 (07:00 +0000)]
* Have adddress and home address in user personal info
* Set $user_info in lib/{ldap,sql}/user_info.php3 and only if the user exists and has personal info
* Show language attributes only if general_prefered_lang is not 'en'
kkalev [Mon, 12 Aug 2002 13:08:20 +0000 (13:08 +0000)]
* Fix a small bug in lib/sql/create_user.php3 where work and home phone were stored in the wrong fields.
* Set personal information attributes in lib/sql/user_info.php3 to default values.
* Add a page to change the user's personal information. Changed the user toolbar and added htdocs/user_info.php3
along with lib/{sql,ldap}/change_info.php3
* Print a message if we can't connect to the ldap server in lib/ldap/user_info.php3