freeradius.git
19 years agoMove the Login-Time,Current-Time,Expiration attribute handling to separate
kkalev [Mon, 9 Aug 2004 15:31:05 +0000 (15:31 +0000)]
Move the Login-Time,Current-Time,Expiration attribute handling to separate
modules, rlm_logintime and rlm_expiration. Move timestr.c to rlm_logintime.
Update makefiles and radiusd.conf

19 years ago Updated debug message, in the hope that a little more text would make
aland [Mon, 9 Aug 2004 13:36:33 +0000 (13:36 +0000)]
Updated debug message, in the hope that a little more text would make
people READ it.

19 years ago Deleted authenticate_query
aland [Sun, 8 Aug 2004 18:59:22 +0000 (18:59 +0000)]
Deleted authenticate_query

19 years agoFix operator escaping in lib/sql/change_attrs.php3
kkalev [Sat, 31 Jul 2004 07:30:57 +0000 (07:30 +0000)]
Fix operator escaping in lib/sql/change_attrs.php3

19 years agoWrong foreach in show_groups and group_new.
kkalev [Sat, 31 Jul 2004 06:57:11 +0000 (06:57 +0000)]
Wrong foreach in show_groups and group_new.

19 years agoAdd a help screen. The administrator can now also reset the counters.
kkalev [Fri, 30 Jul 2004 13:58:15 +0000 (13:58 +0000)]
Add a help screen. The administrator can now also reset the counters.

19 years agoSome stupid NASes (Cisco CSPS and Ericsson GGSN to name a couple) do not send AcctSes...
pnixon [Thu, 29 Jul 2004 15:01:46 +0000 (15:01 +0000)]
Some stupid NASes (Cisco CSPS and Ericsson GGSN to name a couple) do not send AcctSessionTime in Stop packets

19 years ago So says the contact at trapeze
aland [Tue, 27 Jul 2004 21:53:00 +0000 (21:53 +0000)]
So says the contact at trapeze

19 years agoUpdate the Authors file
kkalev [Tue, 27 Jul 2004 16:36:15 +0000 (16:36 +0000)]
Update the Authors file

19 years agoUse lower cased row names in badusers page
kkalev [Tue, 27 Jul 2004 16:29:25 +0000 (16:29 +0000)]
Use lower cased row names in badusers page

19 years ago* Add the style sheet in the content.html
kkalev [Tue, 27 Jul 2004 11:33:41 +0000 (11:33 +0000)]
* Add the style sheet in the content.html
* Enlarge the width for the left frame
* Make show_groups and the drop down menu in group_new work

19 years agoSmall fix to show_groups.php3
kkalev [Tue, 27 Jul 2004 04:27:08 +0000 (04:27 +0000)]
Small fix to show_groups.php3

19 years ago* Add a drop down menu with existing groups in group_new.php3
kkalev [Mon, 26 Jul 2004 21:13:06 +0000 (21:13 +0000)]
* Add a drop down menu with existing groups in group_new.php3
* Check for sql in show_groups.php3
* In lib/sql/group_info.php3 if $login is not set, find available groups and place them in
  $existing_groups along with a count of users per group. Use the functionality in group_new.php3
  and show_groups.php3
* Update TODO

19 years ago* A LOT of security related fixes. Now dialupadmin should hopefully be secure enough to
kkalev [Mon, 26 Jul 2004 20:37:38 +0000 (20:37 +0000)]
* A LOT of security related fixes. Now dialupadmin should hopefully be secure enough to
  be accessed by normal users (not administrators).
* Move a few elements in the CSS file from the body tag. Suggestion by Gary McKinney
* Update FAQ about using php with no sql support.
* Allow the user to select between viewing FAQ,HOWTO or README in the help page.
* Use $_SERVER instead of $HTTP_SERVER_VARS

19 years agoAdd nas_table definition. Add readclients directive in postgresql.conf
kkalev [Fri, 23 Jul 2004 08:29:37 +0000 (08:29 +0000)]
Add nas_table definition. Add readclients directive in postgresql.conf

19 years ago We now have a man page
aland [Thu, 15 Jul 2004 15:04:17 +0000 (15:04 +0000)]
We now have a man page

19 years agoFixed incorrect offset calculations when creating the %{1}, %{2}... entries.
mgriego [Wed, 14 Jul 2004 20:55:20 +0000 (20:55 +0000)]
Fixed incorrect offset calculations when creating the %{1}, %{2}... entries.

19 years ago Catch bad modules, which pass NULL's to xlat
aland [Tue, 13 Jul 2004 19:31:13 +0000 (19:31 +0000)]
Catch bad modules, which pass NULL's to xlat

19 years ago Added support for %{Attribute-Name[*]}
aland [Tue, 13 Jul 2004 15:48:53 +0000 (15:48 +0000)]
Added support for %{Attribute-Name[*]}

19 years ago Added support for %{Attribute-Name[#]}, which isn't the same
aland [Mon, 12 Jul 2004 18:38:08 +0000 (18:38 +0000)]
Added support for %{Attribute-Name[#]}, which isn't the same
as what the shell uses ($#foo[]), but it still makes sense.

19 years agoFix a small error in lib/sql/find.php3. This closes bug #103
kkalev [Mon, 12 Jul 2004 13:14:39 +0000 (13:14 +0000)]
Fix a small error in lib/sql/find.php3. This closes bug #103

19 years agoSet the general_username_mappings_file variable
kkalev [Fri, 9 Jul 2004 14:22:13 +0000 (14:22 +0000)]
Set the general_username_mappings_file variable

19 years agoSet general_restrict_nasadmin_access to no by default. It causes confusion.
kkalev [Fri, 9 Jul 2004 14:18:26 +0000 (14:18 +0000)]
Set general_restrict_nasadmin_access to no by default. It causes confusion.

19 years agoAdd a missing.php3 file with functions that may be missing from the PHP version used...
kkalev [Fri, 9 Jul 2004 12:14:39 +0000 (12:14 +0000)]
Add a missing.php3 file with functions that may be missing from the PHP version used. Include it
if a function is missing. Currently only array_change_key_case() is included

19 years ago* Use require_once instead of require when including xlat.php3
kkalev [Thu, 8 Jul 2004 11:48:18 +0000 (11:48 +0000)]
* Use require_once instead of require when including xlat.php3
* Add debug statements in sql connect functions

19 years agoUpdate for Debian Policy 3.6.1.1.
phampson [Tue, 6 Jul 2004 23:55:37 +0000 (23:55 +0000)]
Update for Debian Policy 3.6.1.1.
Change test for invoke-rc.d.

19 years agoUpdate the _comment_ regarding autotools-dev support.
phampson [Tue, 6 Jul 2004 23:43:21 +0000 (23:43 +0000)]
Update the _comment_ regarding autotools-dev support.
Seems someone already updated the _code_ for autoconf 2.52+

19 years agoUpdate Debian build scripts and changelog with net-snmp in ucd-snmp mode
phampson [Tue, 6 Jul 2004 23:34:05 +0000 (23:34 +0000)]
Update Debian build scripts and changelog with net-snmp in ucd-snmp mode
support.

19 years agoRerun autoconf after acinlude.m4 1.27 "use ucd-snmp-config.h with ucd-snmp"
phampson [Tue, 6 Jul 2004 23:26:05 +0000 (23:26 +0000)]
Rerun autoconf after acinlude.m4 1.27 "use ucd-snmp-config.h with ucd-snmp"

19 years agoRegenerate using aclocal 1.4-p6 after acinclude.m4 1.2
phampson [Tue, 6 Jul 2004 23:12:34 +0000 (23:12 +0000)]
Regenerate using aclocal 1.4-p6 after acinclude.m4 1.2

19 years agoInclude ucd-snmp/ucd-snmp-config.h when using ucd-snmp headers. This fixes
phampson [Tue, 6 Jul 2004 23:11:16 +0000 (23:11 +0000)]
Include ucd-snmp/ucd-snmp-config.h when using ucd-snmp headers. This fixes
net-snmp's ucd-snmp compatibility mode.

19 years agoAlso delete .lo files on clean
phampson [Tue, 6 Jul 2004 22:25:27 +0000 (22:25 +0000)]
Also delete .lo files on clean

19 years agoRemove other stuff that ends up in src/modules/lib. Maybe it shouldn't be
phampson [Tue, 6 Jul 2004 22:24:33 +0000 (22:24 +0000)]
Remove other stuff that ends up in src/modules/lib. Maybe it shouldn't be
there at all?

19 years agoClean up after ourselves by removing src/modules/rlm_sql/drivers/lib on clean
phampson [Tue, 6 Jul 2004 22:20:50 +0000 (22:20 +0000)]
Clean up after ourselves by removing src/modules/rlm_sql/drivers/lib on clean

19 years agoDon't core dump when ldap.attrmap contains only one reply item
kkalev [Tue, 6 Jul 2004 19:07:17 +0000 (19:07 +0000)]
Don't core dump when ldap.attrmap contains only one reply item

19 years ago Removed dup
aland [Mon, 5 Jul 2004 19:03:32 +0000 (19:03 +0000)]
Removed dup

19 years ago As posted to the list
aland [Mon, 5 Jul 2004 16:06:41 +0000 (16:06 +0000)]
As posted to the list

19 years ago Move "missing", so we don't have bogus complaints
aland [Mon, 5 Jul 2004 15:17:08 +0000 (15:17 +0000)]
Move "missing", so we don't have bogus complaints

19 years ago If we don't have pthreads, don't call thread pool functions
aland [Mon, 5 Jul 2004 15:16:48 +0000 (15:16 +0000)]
If we don't have pthreads, don't call thread pool functions

19 years ago Updates
aland [Fri, 2 Jul 2004 14:54:55 +0000 (14:54 +0000)]
Updates

19 years agoMake previous change work
kkalev [Fri, 2 Jul 2004 14:23:15 +0000 (14:23 +0000)]
Make previous change work

19 years agoUpdate documentation for ippool
kkalev [Thu, 1 Jul 2004 09:24:00 +0000 (09:24 +0000)]
Update documentation for ippool

19 years agoIf Pool-Name is set to DEFAULT we always run
kkalev [Thu, 1 Jul 2004 09:20:36 +0000 (09:20 +0000)]
If Pool-Name is set to DEFAULT we always run

19 years agoAlways use sql_escape_func when calling radius_xlat
kkalev [Wed, 30 Jun 2004 12:22:06 +0000 (12:22 +0000)]
Always use sql_escape_func when calling radius_xlat

19 years ago* Escape special characters in the sql password. This closes bug #96
kkalev [Tue, 29 Jun 2004 10:09:26 +0000 (10:09 +0000)]
* Escape special characters in the sql password. This closes bug #96
* Do an xlat for general_accounting_attrs_file and general_user_edit_attrs_file. That way we can
  have different mappings for each administrator.

19 years agoChange is_int to is_numeric. This closes Bug #90
kkalev [Tue, 29 Jun 2004 09:21:54 +0000 (09:21 +0000)]
Change is_int to is_numeric. This closes Bug #90

19 years ago Cleanups for presufcmp(), to make it make more sense...
aland [Thu, 24 Jun 2004 17:33:26 +0000 (17:33 +0000)]
Cleanups for presufcmp(), to make it make more sense...

19 years ago Don't use AC_OUTPUT_COMMANDS, as it has been deprecated and no
aland [Thu, 24 Jun 2004 14:24:07 +0000 (14:24 +0000)]
Don't use AC_OUTPUT_COMMANDS, as it has been deprecated and no
longer works, or gives a warning when you run autoconf.

Instead, use AC_CONFIG_COMMANDS

19 years ago Minor change to allow the server to run from local directory,
aland [Thu, 24 Jun 2004 14:05:36 +0000 (14:05 +0000)]
Minor change to allow the server to run from local directory,
without installing (for testing)

19 years agoAlso pass $(LIBS) when compiling smbencrypt
kkalev [Wed, 23 Jun 2004 15:47:15 +0000 (15:47 +0000)]
Also pass $(LIBS) when compiling smbencrypt

19 years ago Updated with instructions on what to do, and what not to do.
aland [Wed, 23 Jun 2004 15:21:08 +0000 (15:21 +0000)]
Updated with instructions on what to do, and what not to do.

19 years ago Use new way of grabbing OpenSSL
aland [Wed, 23 Jun 2004 14:22:14 +0000 (14:22 +0000)]
Use new way of grabbing OpenSSL

19 years ago --with-openssl-foo sets OPENSSL_FOO_DIR.
aland [Tue, 22 Jun 2004 21:56:02 +0000 (21:56 +0000)]
--with-openssl-foo sets OPENSSL_FOO_DIR.

The top-level "configure" script looks for OpenSSL versions &&
header files, and sets OPENSSL_INCLUDE in Make.inc to -Iblah,
and OPENSSL_LIBS to -Lblah -lcrypto -lssl -lcrypto (don't ask)

It also exports OPENSSL_LIBS, so that the modules which *need*
OpenSSL have their configure script do:

check $OPENSSL_LIBS
if set, OK.  If not, don't built module.

This prevents the modules from finding *other* versions of
OpenSSL, which will cause the server to crash when it links
multiple versions of the same library.

This all works for --disable-shared.  I have no clue if it works
for non-static builds.

19 years ago New way of looking for OpenSSL libraries and includes: makefile changes
aland [Tue, 22 Jun 2004 21:51:10 +0000 (21:51 +0000)]
New way of looking for OpenSSL libraries and includes: makefile changes

19 years ago Don't pollute LIBS when looking for -lssl && -lcrypto
aland [Tue, 22 Jun 2004 21:02:48 +0000 (21:02 +0000)]
Don't pollute LIBS when looking for -lssl && -lcrypto

This means that rlm_x99_token is currently broken, but WTF.

19 years ago Re-gen from configure.in, now that those rules have been updated
aland [Tue, 22 Jun 2004 20:37:42 +0000 (20:37 +0000)]
Re-gen from configure.in, now that those rules have been updated

19 years ago libltdl is just a directory name, and doesn't need to be put
aland [Tue, 22 Jun 2004 20:36:27 +0000 (20:36 +0000)]
libltdl is just a directory name, and doesn't need to be put
into single quotes.

This was done via autoconf 2.57, and we should probably re-do it
with 2.59

19 years ago A little clearer explanation
aland [Tue, 22 Jun 2004 18:03:50 +0000 (18:03 +0000)]
A little clearer explanation

19 years ago Updated with latest changes
aland [Tue, 22 Jun 2004 17:58:02 +0000 (17:58 +0000)]
Updated with latest changes

19 years ago Re-arranged the order of options in the code && usage.
aland [Tue, 22 Jun 2004 17:44:28 +0000 (17:44 +0000)]
Re-arranged the order of options in the code && usage.

Added '-n N', to send N requests/second, evenly scattered.

19 years ago Add '-p', based on a patch from Nicolas Baradakis.
aland [Tue, 22 Jun 2004 16:22:37 +0000 (16:22 +0000)]
Add '-p', based on a patch from Nicolas Baradakis.

'-p N' results in N packets from one '-f file' being sent in
parallel.

Multiple '-f' still results in packets from each '-f' being sent
in parallel.

Multiple '-f' and '-p N' results in N packets from each file
all being sent in parallel

19 years ago These are no longer necessary
aland [Tue, 22 Jun 2004 15:45:27 +0000 (15:45 +0000)]
These are no longer necessary

19 years ago Don't do our own checks for -lcrypto
aland [Tue, 22 Jun 2004 15:07:26 +0000 (15:07 +0000)]
Don't do our own checks for -lcrypto

19 years ago No longer needed
aland [Tue, 22 Jun 2004 15:07:02 +0000 (15:07 +0000)]
No longer needed

19 years ago Use the timestamp from the request
aland [Tue, 22 Jun 2004 15:02:30 +0000 (15:02 +0000)]
Use the timestamp from the request

19 years agoAdd postgresql specific sql schema by apellido jr., wilfredo p. Move each sql schema...
kkalev [Tue, 22 Jun 2004 14:01:22 +0000 (14:01 +0000)]
Add postgresql specific sql schema by apellido jr., wilfredo p. Move each sql schema to a
separate directory (mysql and postgresql)

19 years agoFix a few bugs
kkalev [Fri, 18 Jun 2004 15:12:51 +0000 (15:12 +0000)]
Fix a few bugs
Enable debug for sql and ldap

19 years ago Fail if lber.h or ldap.h don't exist
aland [Fri, 18 Jun 2004 13:53:19 +0000 (13:53 +0000)]
Fail if lber.h or ldap.h don't exist

19 years ago* Move the xlat function to a separate file in lib/xlat.php3
kkalev [Fri, 18 Jun 2004 13:01:56 +0000 (13:01 +0000)]
* Move the xlat function to a separate file in lib/xlat.php3
* Add a lib/sql/nas_list.php3 to also get the nas list from sql (naslist.conf still works)
* add realms nasdb and nasadmin in username.mappings. nasadmin is used to signify if the
  user is allowed to use the nas_admin page. nasdb is used to shorten the nas list to only
  a few specific entries. That way administrator responsible for a few access servers will
  only be able to administer those access servers and not see the rest of the nas list.
* Add username searching in the find page as suggested by joram agten
* Don't use nas_list in nas_admin

19 years ago Corrected version from Kenneth Grady
aland [Thu, 17 Jun 2004 20:30:21 +0000 (20:30 +0000)]
Corrected version from Kenneth Grady

19 years ago Stop xlat of Reply-Message, as it's done automatically, now.
aland [Thu, 17 Jun 2004 18:51:07 +0000 (18:51 +0000)]
Stop xlat of Reply-Message, as it's done automatically, now.

19 years ago Cleaned up ATTR_FLAGS
aland [Thu, 17 Jun 2004 18:47:15 +0000 (18:47 +0000)]
Cleaned up ATTR_FLAGS

20 years ago Updated comments
aland [Wed, 16 Jun 2004 14:34:21 +0000 (14:34 +0000)]
Updated comments

20 years agoget the module ordering right, so rlm_eap_tls is built first
vorlon [Tue, 15 Jun 2004 15:26:56 +0000 (15:26 +0000)]
get the module ordering right, so rlm_eap_tls is built first

20 years ago Don't be smart. Don't use BYTE_ORDER
aland [Tue, 15 Jun 2004 15:00:54 +0000 (15:00 +0000)]
Don't be smart.  Don't use BYTE_ORDER

20 years ago Use memcpy, not bcopy
aland [Tue, 15 Jun 2004 14:44:37 +0000 (14:44 +0000)]
Use memcpy, not bcopy

20 years ago Don't call pairdelete() from pairmove() on :=.
aland [Tue, 15 Jun 2004 14:35:25 +0000 (14:35 +0000)]
Don't call pairdelete() from pairmove() on :=.

Some modules may wish to update request->packet->vps, PW_USER_NAME.
The problem is that it's ALSO pointed to from request->username,
and we can't update that from here.

We also can't update all of the modules to double-check
request->username after calling pairmove(), so the simplest thing
to do is to over-write the attributes in place, rather than
deleting the old ones, and adding the new ones

20 years agoautotools revamp:
vorlon [Tue, 15 Jun 2004 07:49:15 +0000 (07:49 +0000)]
autotools revamp:
- rebuild aclocal.m4 with current libtool support, and regen ltmain.sh
  as well
- rename all local macros to FR_* instead of AC_*
- require autoconf 2.53 or better, for better recursion support
- rerun autoconf
- update Debian build depends, and fix the way we're declaring our
  architecture to autoconf
- always use $(LIBTOOL) instead of $(CC) for compiling
- always link with $(LIBTOOL) --mode=link $(CC), not $(LD)
- break down the static/dynamic divide in the Makefiles (leave this to
  libtool)
- don't pass -module for objects that aren't freeradius modules
- always depend on .la targets, not .a
- declare modules' dependency on libradius.la
- link libeap.la and rlm_sql.la against libltdl
- declare interdependencies between rlm_eap submodules

20 years agodon't depend on a .a target when .la will do
vorlon [Tue, 15 Jun 2004 06:47:12 +0000 (06:47 +0000)]
don't depend on a .a target when .la will do

20 years agocommit non-ancient config.*
vorlon [Tue, 15 Jun 2004 06:39:24 +0000 (06:39 +0000)]
commit non-ancient config.*

20 years agonew files used for reworking autotools support
vorlon [Tue, 15 Jun 2004 06:27:33 +0000 (06:27 +0000)]
new files used for reworking autotools support

20 years ago syslog_facility is in a new place
aland [Mon, 14 Jun 2004 18:14:39 +0000 (18:14 +0000)]
syslog_facility is in a new place

20 years agoIncrease CallID field length to support the insanely long IDs sometimes generated...
pnixon [Mon, 14 Jun 2004 16:23:13 +0000 (16:23 +0000)]
Increase CallID field length to support the insanely long IDs sometimes generated by CSPS

20 years ago Corrected typo, for inet_ntop
aland [Mon, 14 Jun 2004 15:23:19 +0000 (15:23 +0000)]
Corrected typo, for inet_ntop

20 years ago Check to inet_ntop, too
aland [Mon, 14 Jun 2004 15:23:04 +0000 (15:23 +0000)]
Check to inet_ntop, too

20 years ago Check for inet_pton, too
aland [Mon, 14 Jun 2004 15:17:47 +0000 (15:17 +0000)]
Check for inet_pton, too

20 years ago Message is informational, not a real error
aland [Mon, 14 Jun 2004 14:49:13 +0000 (14:49 +0000)]
Message is informational, not a real error

20 years agoComment updates and automatic creation of plpgsql language in the database
pnixon [Mon, 14 Jun 2004 01:33:15 +0000 (01:33 +0000)]
Comment updates and automatic creation of plpgsql language in the database

20 years agoDocumentation update/cleanup
pnixon [Mon, 14 Jun 2004 01:31:09 +0000 (01:31 +0000)]
Documentation update/cleanup

20 years ago As found on the net, with edits
aland [Sun, 13 Jun 2004 12:58:59 +0000 (12:58 +0000)]
As found on the net, with edits

20 years ago Add support for ${Attribute-Name[2]}, which grabs value of the
aland [Fri, 11 Jun 2004 20:46:29 +0000 (20:46 +0000)]
Add support for ${Attribute-Name[2]}, which grabs value of the
N'th attribute of that name.

20 years ago Make it build. Forgot to commit thgis yesterday
aland [Fri, 11 Jun 2004 20:44:37 +0000 (20:44 +0000)]
Make it build.  Forgot to commit thgis yesterday

20 years ago Add $#{string}, which prints the number of characters in the string
aland [Fri, 11 Jun 2004 17:23:27 +0000 (17:23 +0000)]
Add $#{string}, which prints the number of characters in the string

20 years ago Added rlm_copy_packet, which is a trivial ~10-line module
aland [Fri, 11 Jun 2004 15:21:05 +0000 (15:21 +0000)]
Added rlm_copy_packet, which is a trivial ~10-line module

20 years ago Added a trivial module to copy the request to the reply.
aland [Fri, 11 Jun 2004 15:03:24 +0000 (15:03 +0000)]
Added a trivial module to copy the request to the reply.

Some systems may find this useful.

20 years ago Add two new fields to the REQUEST: module & component.
aland [Thu, 10 Jun 2004 20:01:16 +0000 (20:01 +0000)]
Add two new fields to the REQUEST: module & component.

Before calling a module, src/main/modcall.c updates these fields,
and sets them to NULL once the module has returned.

When a child becomes unresponsive, these fields MAY be used to
determine which part of the server is slow.

20 years ago Document new configuration items which allow logging to syslog
aland [Thu, 10 Jun 2004 18:29:16 +0000 (18:29 +0000)]
Document new configuration items which allow logging to syslog
to work.

20 years ago These don't need radlog_dest any more
aland [Thu, 10 Jun 2004 18:23:30 +0000 (18:23 +0000)]
These don't need radlog_dest any more

20 years ago Permit logging to syslog, after:
aland [Thu, 10 Jun 2004 18:23:10 +0000 (18:23 +0000)]
Permit logging to syslog, after:

- rearranging the code
- deprecating some command-line options & values
- adding some more configuration file parameters

20 years agoWe're really 1.1.0 now
phampson [Thu, 10 Jun 2004 17:51:55 +0000 (17:51 +0000)]
We're really 1.1.0 now