freeradius.git
21 years ago Allow no output pairs if we're not waiting.
aland [Fri, 31 Jan 2003 16:10:37 +0000 (16:10 +0000)]
Allow no output pairs if we're not waiting.

21 years ago Removed 'static' functions from the radiusd header file.
aland [Fri, 31 Jan 2003 15:14:40 +0000 (15:14 +0000)]
Removed 'static' functions from the radiusd header file.

If we're not threaded, then (as of now), we have no child
processes, so we don't need to catch SIGCHLD.

21 years ago If we don't have threads, then force the server to never spawn
aland [Thu, 30 Jan 2003 17:35:35 +0000 (17:35 +0000)]
If we don't have threads, then force the server to never spawn
child processes to handle requests.  The child processes can NEVER
return information to the main server, as they don't share memory.

This means duplicate requests are processed twice, and proxying
doesn't work.

The solution is to disable the child forks in non-threaded mode,
until such time as someone implements shared memory.

21 years agoAdd a few comments in the tot_stats and monthly_tot_stats scripts
kkalev [Wed, 29 Jan 2003 22:42:48 +0000 (22:42 +0000)]
Add a few comments in the tot_stats and monthly_tot_stats scripts

21 years ago Added sample configuration for rlm_exec
aland [Wed, 29 Jan 2003 20:11:44 +0000 (20:11 +0000)]
Added sample configuration for rlm_exec

21 years ago Allow exec in authenticate sections, too.
aland [Wed, 29 Jan 2003 20:02:09 +0000 (20:02 +0000)]
Allow exec in authenticate sections, too.

21 years ago Last stage of getting rlm_exec to work in multiple sections.
aland [Wed, 29 Jan 2003 19:53:07 +0000 (19:53 +0000)]
Last stage of getting rlm_exec to work in multiple sections.

With a little more work, all of the Exec-Program, etc. functionality
can move out of the server core, and into this module.

21 years ago How to build the server on XP, using Cygwin, by Philip Blow
aland [Wed, 29 Jan 2003 15:26:13 +0000 (15:26 +0000)]
How to build the server on XP, using Cygwin, by Philip Blow

21 years ago Look for CC
aland [Wed, 29 Jan 2003 15:23:55 +0000 (15:23 +0000)]
Look for CC

21 years ago Create a strvalue when we're creating a NAS-IP-Address attribute.
aland [Tue, 28 Jan 2003 19:28:09 +0000 (19:28 +0000)]
Create a strvalue when we're creating a NAS-IP-Address attribute.

21 years ago A little cleaner information for error messages
aland [Tue, 28 Jan 2003 16:21:52 +0000 (16:21 +0000)]
A little cleaner information for error messages

21 years ago Add two new tables totacct and mtotacct containing per user aggregated statistics...
kkalev [Tue, 28 Jan 2003 15:59:16 +0000 (15:59 +0000)]
  Add two new tables totacct and mtotacct containing per user aggregated statistics for each day and month
  respectively. Also add two corresponding scripts in the bin folder, tot_stats and monthly_tot_stats. Lastly,
  create a new page, user_stats.php3 which will show the top users in connections or connections duration based
  on the data in the totacct table.

21 years agoAdd a column Admin in the badusers table which will contain the administrator usernam...
kkalev [Tue, 28 Jan 2003 15:32:19 +0000 (15:32 +0000)]
Add a column Admin in the badusers table which will contain the administrator username if that is available

21 years agoIn user_new show a select box with all the available groups. Based on an idea by...
kkalev [Tue, 28 Jan 2003 14:14:53 +0000 (14:14 +0000)]
In user_new show a select box with all the available groups. Based on an idea by Karel Stadler (kstadler)

21 years ago Added preliminary large file support, with macros stolen from INN.
aland [Mon, 27 Jan 2003 18:21:27 +0000 (18:21 +0000)]
Added preliminary large file support, with macros stolen from INN.

Large file support is off by default, until the code is audited
& checked for use of off_t.  For details, see:

http://freshmeat.net/articles/view/709/

21 years agoAdd an entry about using InnoDB for mysql
kkalev [Mon, 27 Jan 2003 17:34:45 +0000 (17:34 +0000)]
Add an entry about using InnoDB for mysql

21 years ago Delayed commit from friday.
aland [Mon, 27 Jan 2003 16:12:31 +0000 (16:12 +0000)]
Delayed commit from friday.

21 years agoDo a write lock in radacct before truncating it in truncate_radacct
kkalev [Sun, 26 Jan 2003 16:54:12 +0000 (16:54 +0000)]
Do a write lock in radacct before truncating it in truncate_radacct

21 years ago Pass reasonable values to other routines, instead of NULL's
aland [Fri, 24 Jan 2003 21:31:46 +0000 (21:31 +0000)]
Pass reasonable values to other routines, instead of NULL's

Bug found by Wichert Akkerman.

21 years ago Define datadir
aland [Fri, 24 Jan 2003 21:06:39 +0000 (21:06 +0000)]
Define datadir

21 years ago Made exec program return the VP's which were parsed from the
aland [Fri, 24 Jan 2003 20:40:25 +0000 (20:40 +0000)]
Made exec program return the VP's which were parsed from the
executed program.  This allows the caller to decide what to
do with them.

21 years ago Now that we have ${datadir}, we can install the documentation
aland [Fri, 24 Jan 2003 18:19:34 +0000 (18:19 +0000)]
Now that we have ${datadir}, we can install the documentation
in (usually) /usr/local/share/doc/freeradius-version

21 years ago Don't make the HTML versions of the RFC's unless specifically asked.
aland [Fri, 24 Jan 2003 18:18:56 +0000 (18:18 +0000)]
Don't make the HTML versions of the RFC's unless specifically asked.

21 years ago OK, datadir is now ${prefix}/share, which is what it's supposed
aland [Fri, 24 Jan 2003 18:05:53 +0000 (18:05 +0000)]
OK, datadir is now ${prefix}/share, which is what it's supposed
to be.

Added a new 'dictdir' variable, to tell us where the dictionaries
are located.  It's defined as ${datadir}/freeradius

21 years ago Patch from Wichert Akkerman to increase the size of some fields
aland [Fri, 24 Jan 2003 16:25:01 +0000 (16:25 +0000)]
Patch from Wichert Akkerman to increase the size of some fields
to a more useful value.

21 years agoChanged instruction flow in ldap_groupcmp() to improve make code easier to
pam [Fri, 24 Jan 2003 13:35:30 +0000 (13:35 +0000)]
Changed instruction flow in ldap_groupcmp() to improve make code easier to
understand.

21 years agoMake more consistent use of defines in buffer size definitions
pam [Fri, 24 Jan 2003 12:53:03 +0000 (12:53 +0000)]
Make more consistent use of defines in buffer size definitions
Use sizeof() to specify buffer size in function calls.

21 years agoRemove search/replace generated typo
pam [Fri, 24 Jan 2003 12:04:54 +0000 (12:04 +0000)]
Remove search/replace generated typo

21 years ago Re-formatted, and added more attributes found on the net.
aland [Thu, 23 Jan 2003 21:01:20 +0000 (21:01 +0000)]
Re-formatted, and added more attributes found on the net.

21 years ago Don't use strncmp.
aland [Thu, 23 Jan 2003 20:54:46 +0000 (20:54 +0000)]
Don't use strncmp.

21 years ago Make 'datadir' point to '.../share/freeradius', instead of
aland [Thu, 23 Jan 2003 20:02:20 +0000 (20:02 +0000)]
Make 'datadir' point to '.../share/freeradius', instead of
adding 'freeradius' on elsewhere.  This makes the config a little
more consistent.

21 years ago Add preliminary stage of 'exec' module, which currently only
aland [Thu, 23 Jan 2003 19:50:15 +0000 (19:50 +0000)]
Add preliminary stage of 'exec' module, which currently only
supports calling via xlat.

21 years ago Modified the 'exec program' functionality to be thread-safe
aland [Thu, 23 Jan 2003 19:48:59 +0000 (19:48 +0000)]
Modified the 'exec program' functionality to be thread-safe
(no more 'static' buffers)

Made it slightly more configurable, in preparation for allowing
xlat's via exec.

21 years ago More hacks for hacking fork() to work with threaded systems.
aland [Thu, 23 Jan 2003 19:15:18 +0000 (19:15 +0000)]
More hacks for hacking fork() to work with threaded systems.

Change the book-keeping to be O(1), instead of O(n), in the
number of exec'd programs.  This makes the server behave better
under load.

21 years ago Updated the install, config file, and config reader to look for
aland [Thu, 23 Jan 2003 17:00:11 +0000 (17:00 +0000)]
Updated the install, config file, and config reader to look for
dictionary files in $(datadir)/freeradius

It's not versioned, because we don't expect there to be conflicts
between versions.

RPMs, DEBs, etc. definitions haven't been updated, and should be.

21 years ago Delete these files from raddb, as they're being moved to ../share
aland [Thu, 23 Jan 2003 16:46:00 +0000 (16:46 +0000)]
Delete these files from raddb, as they're being moved to ../share

I've logged into the CVS repository, and copied the CVS version
controlled files over to ../share, so we don't lose any history.

21 years ago Don't say how to include it in the main dictionary, it's done
aland [Wed, 22 Jan 2003 23:26:37 +0000 (23:26 +0000)]
Don't say how to include it in the main dictionary, it's done
by default.

21 years ago More vendor dictionaries found on the net.
aland [Wed, 22 Jan 2003 23:25:52 +0000 (23:25 +0000)]
More vendor dictionaries found on the net.

21 years ago More attributes found on the net.
aland [Tue, 21 Jan 2003 19:52:31 +0000 (19:52 +0000)]
More attributes found on the net.

21 years ago Updated with dictionaries and entries from Yard RADIUS
aland [Tue, 21 Jan 2003 19:29:38 +0000 (19:29 +0000)]
Updated with dictionaries and entries from Yard RADIUS

21 years ago Cleanups & additions from Wichert Akkerman
aland [Tue, 21 Jan 2003 19:18:52 +0000 (19:18 +0000)]
Cleanups & additions from Wichert Akkerman

21 years ago Updated with more descriptions and examples from Chris Brotsos
aland [Tue, 21 Jan 2003 19:14:23 +0000 (19:14 +0000)]
Updated with more descriptions and examples from Chris Brotsos

21 years agoStress out the fact that the Pool-Name attribute is a check item.
kkalev [Tue, 21 Jan 2003 08:44:05 +0000 (08:44 +0000)]
Stress out the fact that the Pool-Name attribute is a check item.

21 years ago Updated for latest set of fixes to MAC OSX.
aland [Mon, 20 Jan 2003 18:22:16 +0000 (18:22 +0000)]
Updated for latest set of fixes to MAC OSX.

21 years ago Added notes about why you don't want users to authenticate to
aland [Mon, 20 Jan 2003 18:15:40 +0000 (18:15 +0000)]
Added notes about why you don't want users to authenticate to
the SQL database.

21 years agoDocumented Ldap-Group hadnling group DNs
pam [Mon, 20 Jan 2003 15:45:25 +0000 (15:45 +0000)]
Documented Ldap-Group hadnling group DNs
Reformated document to 78-character long lines

21 years agoExtend ldap_groupcmp to handle DNs as Ldap-Group attribute.
pam [Mon, 20 Jan 2003 15:38:41 +0000 (15:38 +0000)]
Extend ldap_groupcmp to handle DNs as Ldap-Group attribute.

21 years ago Mark some targets as phony, so that case-insensitive systems
aland [Fri, 17 Jan 2003 17:00:11 +0000 (17:00 +0000)]
Mark some targets as phony, so that case-insensitive systems
like MACOSX don't get excited that INSTALL exists, and refuse
to 'make install'

21 years ago Darwin is a BSD-style OS, so utmp doesn't have ut_user, it has
aland [Fri, 17 Jan 2003 16:47:36 +0000 (16:47 +0000)]
Darwin is a BSD-style OS, so utmp doesn't have ut_user, it has
ut_name.

21 years agoAdd a few comments about PostAuth-Type,Acct-Type and Session-Type in the
kkalev [Thu, 16 Jan 2003 21:51:15 +0000 (21:51 +0000)]
Add a few comments about PostAuth-Type,Acct-Type and Session-Type in the
Autz-Type file. Add links for these section types to Autz-Type

21 years agoWork even if we have multiple attributes
kkalev [Tue, 14 Jan 2003 15:44:16 +0000 (15:44 +0000)]
Work even if we have multiple attributes

21 years agoAdd support for Acct-Type,Session-Type and PostAuth-Type
kkalev [Tue, 14 Jan 2003 13:10:09 +0000 (13:10 +0000)]
Add support for Acct-Type,Session-Type and PostAuth-Type

21 years ago Reset vp->strvalue after adding port to IP address, so that the
aland [Mon, 13 Jan 2003 18:37:21 +0000 (18:37 +0000)]
Reset vp->strvalue after adding port to IP address, so that the
strvalue of the attribute is correct.

21 years ago When we set the IP address in vp->lvalue, set the string value,
aland [Mon, 13 Jan 2003 16:15:56 +0000 (16:15 +0000)]
When we set the IP address in vp->lvalue, set the string value,
too.  This way they're kept in sync.

21 years agoFix a small problem with debugging
kkalev [Mon, 13 Jan 2003 08:01:43 +0000 (08:01 +0000)]
Fix a small problem with debugging

21 years agodebian: rename daemon to "freeradiusd" to be polite to other potential
cmiller [Mon, 13 Jan 2003 02:05:25 +0000 (02:05 +0000)]
debian: rename daemon to "freeradiusd" to be polite to other potential
  packages.  Creating compatibility symlink for now.
debian: use system libtool, really, this time.

21 years agoFix a small bug in lib/ldap/create_user.php3. Unset the mod array before adding any...
kkalev [Sun, 12 Jan 2003 11:15:03 +0000 (11:15 +0000)]
Fix a small bug in lib/ldap/create_user.php3. Unset the mod array before adding any values to it

21 years agoAdd a missing {
kkalev [Sun, 12 Jan 2003 11:07:07 +0000 (11:07 +0000)]
Add a missing {

21 years agoMake things a little bit more simple in lib/ldap/change_attrs.php3
kkalev [Sun, 12 Jan 2003 11:03:13 +0000 (11:03 +0000)]
Make things a little bit more simple in lib/ldap/change_attrs.php3

21 years agoAdd a few missing {
kkalev [Sun, 12 Jan 2003 10:55:14 +0000 (10:55 +0000)]
Add a few missing {

21 years agoDon't include user_info.php3 in the user_test page.
kkalev [Sat, 11 Jan 2003 23:29:24 +0000 (23:29 +0000)]
Don't include user_info.php3 in the user_test page.

21 years agoAdd ldap_debug in admin.conf
kkalev [Sat, 11 Jan 2003 18:46:34 +0000 (18:46 +0000)]
Add ldap_debug in admin.conf

21 years agoIn debug, output the sql queries in italic. Refer to enabling debugging in the FAQ
kkalev [Sat, 11 Jan 2003 18:45:32 +0000 (18:45 +0000)]
In debug, output the sql queries in italic. Refer to enabling debugging in the FAQ

21 years ago* Add a directive ldap_debug. Add debuging statements in the ldap library
kkalev [Sat, 11 Jan 2003 18:33:10 +0000 (18:33 +0000)]
* Add a directive ldap_debug. Add debuging statements in the ldap library
* Add debug statements in the pg driver

21 years agoAlso update the admin.conf
kkalev [Sat, 11 Jan 2003 16:54:48 +0000 (16:54 +0000)]
Also update the admin.conf

21 years agoAdd a directive sql_debug. Add debuging statements in the sql library
kkalev [Sat, 11 Jan 2003 16:53:06 +0000 (16:53 +0000)]
Add a directive sql_debug. Add debuging statements in the sql library

21 years ago Added notes from the list
aland [Fri, 10 Jan 2003 15:03:51 +0000 (15:03 +0000)]
Added notes from the list

21 years agoCreate a daily instance of the counter module and also add it the
kkalev [Fri, 10 Jan 2003 09:04:05 +0000 (09:04 +0000)]
Create a daily instance of the counter module and also add it the
instantiate section so that people don't get confused

21 years agobreak stale locks on syncdata
fcusack [Fri, 10 Jan 2003 07:04:08 +0000 (07:04 +0000)]
break stale locks on syncdata

21 years ago One more delete of builddbm stuff
aland [Thu, 9 Jan 2003 20:36:05 +0000 (20:36 +0000)]
One more delete of builddbm stuff

21 years ago Removed builddbm. It hasn't been used for ages.
aland [Thu, 9 Jan 2003 20:35:28 +0000 (20:35 +0000)]
Removed builddbm.  It hasn't been used for ages.

21 years ago Removed unnecessary variable to simplify things.
aland [Wed, 8 Jan 2003 20:38:55 +0000 (20:38 +0000)]
Removed unnecessary variable to simplify things.

21 years agoUpdate logrotate to rotate sqltrace.sql
pnixon [Mon, 6 Jan 2003 10:44:16 +0000 (10:44 +0000)]
Update logrotate to rotate sqltrace.sql
This file can get huge if sql debugging is enabled, and on linux, if this file reached 2GB radiusd will stop.

21 years agoMove the files module in the correct place in the authorize section.
kkalev [Mon, 6 Jan 2003 10:20:34 +0000 (10:20 +0000)]
Move the files module in the correct place in the authorize section.
Bug noted by Wisam Najim <wnajim@emirates.net.ae>

21 years agoDelete duplicate attributes from the radiusprofile definition.
kkalev [Mon, 6 Jan 2003 10:15:06 +0000 (10:15 +0000)]
Delete duplicate attributes from the radiusprofile definition.
Bug reported by "Gerald (Jerry) Carter" <jerry@samba.org>

21 years ago make octet counter bigint, to allow it to grow past 2G.
aland [Thu, 2 Jan 2003 18:29:52 +0000 (18:29 +0000)]
make octet counter bigint, to allow it to grow past 2G.

Based on list comments from Klaus Heck

21 years ago Correct typo in syntax, and check for pid file before using it.
aland [Thu, 2 Jan 2003 18:27:59 +0000 (18:27 +0000)]
Correct typo in syntax, and check for pid file before using it.

Patch from pavelsh

21 years agoIn log_badlogins create a separate sql input file for each sql server and append...
kkalev [Wed, 1 Jan 2003 23:30:29 +0000 (23:30 +0000)]
In log_badlogins create a separate sql input file for each sql server and append sql commands to it. If the
sql command succeeds we delete the corresponding input file. That way if an sql server is down we store the
accounting info in the input file and then send it all when it comes back up.

21 years agoAdd sql_connect_timeout and sql_extra_servers configuration directives to be
kkalev [Mon, 30 Dec 2002 10:15:15 +0000 (10:15 +0000)]
Add sql_connect_timeout and sql_extra_servers configuration directives to be
used by the log_badlogins script

21 years agoAdd more error messages when interacting with the SQL database
kkalev [Sat, 28 Dec 2002 11:33:20 +0000 (11:33 +0000)]
Add more error messages when interacting with the SQL database

21 years agoOnly run for Accounting-Stop packets in accounting
kkalev [Sat, 28 Dec 2002 10:47:09 +0000 (10:47 +0000)]
Only run for Accounting-Stop packets in accounting

21 years agoSet default values for the server and basedn parameters
kkalev [Tue, 24 Dec 2002 21:45:14 +0000 (21:45 +0000)]
Set default values for the server and basedn parameters

21 years ago Define 'datadir' in make files.
aland [Tue, 24 Dec 2002 16:49:34 +0000 (16:49 +0000)]
Define 'datadir' in make files.

New make file for the 'doc' directory, so that we actually
install the documentation along with the server.

Updated make file for the 'doc/rfc' directory, which assume that
perl exists...  but that can be fixed later.

21 years ago Add calls to the new post_proxy section.
aland [Mon, 23 Dec 2002 20:31:59 +0000 (20:31 +0000)]
Add calls to the new post_proxy section.

Patch from Chris Brotsos

21 years ago Now that we're about to add post-proxying, add a configuration
aland [Mon, 23 Dec 2002 20:28:09 +0000 (20:28 +0000)]
Now that we're about to add post-proxying, add a configuration
section which allows us to do:

receive packet
authorize
proxy -> home server
home server replies
post_proxy
MAYBE authorize
send reply packet

The MAYBE is set to 'yes' for backwards compatibility.  The reason
is that proxy replies should really NOT be sent through the
'authorize' stage again.

Patch from Chris Brotsos

21 years ago Update text for new proxying
aland [Mon, 23 Dec 2002 20:05:56 +0000 (20:05 +0000)]
Update text for new proxying

21 years agoAdd sql_use_http_credentials configuration directive to connect to the sql database...
kkalev [Sun, 22 Dec 2002 15:44:14 +0000 (15:44 +0000)]
Add sql_use_http_credentials configuration directive to connect to the sql database using the http user
credentials (that way there can be more than one administrator usernames, each with different privileges
on the sql database).

21 years agoMake schema work for openldap 2.1. Patch from Wolfgang Rosenauer <stark@suse.de>
kkalev [Fri, 20 Dec 2002 15:33:21 +0000 (15:33 +0000)]
Make schema work for openldap 2.1. Patch from Wolfgang Rosenauer <stark@suse.de>

21 years ago Patch to look for dbm functions in std libs
aland [Fri, 20 Dec 2002 15:31:26 +0000 (15:31 +0000)]
Patch to look for dbm functions in std libs

from Andrei Koulik

21 years agoCheck that the reset time is not never before reseting the db in the instantiate...
kkalev [Thu, 19 Dec 2002 09:11:10 +0000 (09:11 +0000)]
Check that the reset time is not never before reseting the db in the instantiate section

21 years ago Meaningless white-space changes
aland [Wed, 18 Dec 2002 19:04:40 +0000 (19:04 +0000)]
Meaningless white-space changes

21 years ago Clean ups and code re-arrangements
aland [Wed, 11 Dec 2002 21:46:55 +0000 (21:46 +0000)]
Clean ups and code re-arrangements

21 years ago Made the name buffer a little bigger...
aland [Wed, 11 Dec 2002 19:18:10 +0000 (19:18 +0000)]
Made the name buffer a little bigger...

21 years ago Remove commented-out code
aland [Wed, 11 Dec 2002 16:05:12 +0000 (16:05 +0000)]
Remove commented-out code

21 years ago Use 'sizeof', instead of hard-coded numbers.
aland [Wed, 11 Dec 2002 16:04:17 +0000 (16:04 +0000)]
Use 'sizeof', instead of hard-coded numbers.

Patch from David Kerry

21 years agoPut the counter module in the end of the authorize section
kkalev [Tue, 10 Dec 2002 21:06:56 +0000 (21:06 +0000)]
Put the counter module in the end of the authorize section

21 years ago Trivial fix to print error message, from Thomas Krantz
aland [Tue, 10 Dec 2002 20:18:15 +0000 (20:18 +0000)]
Trivial fix to print error message, from Thomas Krantz

21 years ago Data is int, not int*
aland [Tue, 10 Dec 2002 15:34:06 +0000 (15:34 +0000)]
Data is int, not int*

21 years ago SQL doesn't do authentication, so change that in the examples.
aland [Tue, 10 Dec 2002 14:52:11 +0000 (14:52 +0000)]
SQL doesn't do authentication, so change that in the examples.

21 years ago Use the correct string for error printing, instead of an
aland [Mon, 9 Dec 2002 18:45:38 +0000 (18:45 +0000)]
Use the correct string for error printing, instead of an
uninitialized buffer