freeradius.git
11 years agoDocument the upgrade process for rlm_sql release_3_0_0_beta0
Arran Cudbard-Bell [Wed, 12 Sep 2012 14:50:17 +0000 (16:50 +0200)]
Document the upgrade process for rlm_sql

11 years agoNote more 3.0 features
Arran Cudbard-Bell [Wed, 12 Sep 2012 13:04:38 +0000 (15:04 +0200)]
Note more 3.0 features

11 years agoMinor fixes
Arran Cudbard-Bell [Sat, 8 Sep 2012 20:16:39 +0000 (21:16 +0100)]
Minor fixes

11 years agoAdded script for monit
Alan T. DeKok [Sun, 2 Sep 2012 08:12:14 +0000 (10:12 +0200)]
Added script for monit

11 years agoRemove old radwatch script
Arran Cudbard-Bell [Sat, 8 Sep 2012 20:19:52 +0000 (21:19 +0100)]
Remove old radwatch script

11 years agoDon't die if the clients file doesn't contain client <name> {}
Arran Cudbard-Bell [Fri, 7 Sep 2012 16:01:59 +0000 (17:01 +0100)]
Don't die if the clients file doesn't contain client <name> {}

11 years agoDon't die if the clients file doesn't contain client {}
Arran Cudbard-Bell [Fri, 7 Sep 2012 15:39:27 +0000 (16:39 +0100)]
Don't die if the clients file doesn't contain client {}

11 years agoHungroups and hints should default to NULL, so theyre disabled if omitted
Arran Cudbard-Bell [Fri, 7 Sep 2012 13:47:39 +0000 (14:47 +0100)]
Hungroups and hints should default to NULL, so theyre disabled if omitted

11 years agoUpdate src/modules/rlm_cache/rlm_cache.c
Arran Cudbard-Bell [Thu, 6 Sep 2012 16:55:27 +0000 (18:55 +0200)]
Update src/modules/rlm_cache/rlm_cache.c

11 years agoAdd cache to accounting and preacct
Arran Cudbard-Bell [Thu, 6 Sep 2012 16:50:15 +0000 (18:50 +0200)]
Add cache to accounting and preacct

11 years agoCheck for more parse errors when reading dicts. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 09:32:16 +0000 (11:32 +0200)]
Check for more parse errors when reading dicts.  Bug found by Coverity

11 years agoDouble-check that we don't over-run the buffer
Alan T. DeKok [Thu, 6 Sep 2012 09:25:45 +0000 (11:25 +0200)]
Double-check that we don't over-run the buffer

11 years agoCheck for memset of zero
Alan T. DeKok [Thu, 6 Sep 2012 09:22:24 +0000 (11:22 +0200)]
Check for memset of zero

11 years agoClose directory when done with it. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 09:21:09 +0000 (11:21 +0200)]
Close directory when done with it.  Bug found by Coverity

11 years agoClose socket on error. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 09:18:15 +0000 (11:18 +0200)]
Close socket on error.  Bug found by Coverity

11 years agoClose FD if there's nothing to log. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 09:11:02 +0000 (11:11 +0200)]
Close FD if there's nothing to log.  Bug found by Coverity

11 years agoEnsure all fields are initialized
Alan T. DeKok [Thu, 6 Sep 2012 09:09:46 +0000 (11:09 +0200)]
Ensure all fields are initialized

11 years agoFix possible bug
Alan T. DeKok [Thu, 6 Sep 2012 09:00:26 +0000 (11:00 +0200)]
Fix possible bug

11 years agoFix use after free. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 08:57:53 +0000 (10:57 +0200)]
Fix use after free.  Bug found by Coverity

11 years agoOnly log known Acct-Status-Types. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 08:54:27 +0000 (10:54 +0200)]
Only log known Acct-Status-Types.  Bug found by Coverity

11 years agoCorrected bug with NS-MTA-MD5 passwords. Found by coverity.
Alan T. DeKok [Thu, 6 Sep 2012 08:52:06 +0000 (10:52 +0200)]
Corrected bug with NS-MTA-MD5 passwords.  Found by coverity.

11 years agoRemove double free. Found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 08:42:18 +0000 (10:42 +0200)]
Remove double free.  Found by Coverity

11 years agoAdd debug option
Arran Cudbard-Bell [Thu, 6 Sep 2012 08:58:19 +0000 (10:58 +0200)]
Add debug option

11 years agoAdd hup to default logrotate script
Arran Cudbard-Bell [Wed, 5 Sep 2012 17:46:25 +0000 (18:46 +0100)]
Add hup to default logrotate script

11 years agoAllow defaults to come from env
Arran Cudbard-Bell [Wed, 5 Sep 2012 17:23:13 +0000 (18:23 +0100)]
Allow defaults to come from env

11 years agoCFLAGS now includes OPENSSL_INCLUDE
Alan T. DeKok [Wed, 5 Sep 2012 14:50:10 +0000 (16:50 +0200)]
CFLAGS now includes OPENSSL_INCLUDE

So we can remove it from all sub-makefiles

11 years agoMake it build using old Make && new jlibtool
Alan T. DeKok [Wed, 5 Sep 2012 14:44:05 +0000 (16:44 +0200)]
Make it build using old Make && new jlibtool

11 years agoDisable ticket cache in the default configuration
Arran Cudbard-Bell [Wed, 5 Sep 2012 13:29:27 +0000 (15:29 +0200)]
Disable ticket cache in the default configuration

11 years agoFix build error
Alan T. DeKok [Tue, 4 Sep 2012 13:12:52 +0000 (15:12 +0200)]
Fix build error

11 years agoFix typo in m4 macro
Alan T. DeKok [Tue, 4 Sep 2012 13:01:51 +0000 (15:01 +0200)]
Fix typo in m4 macro

11 years agoUpdate wiki link
Arran Cudbard-Bell [Wed, 5 Sep 2012 10:19:26 +0000 (12:19 +0200)]
Update wiki link

11 years agoAdd option to disable krb5 cache
Arran Cudbard-Bell [Tue, 28 Aug 2012 10:20:06 +0000 (11:20 +0100)]
Add option to disable krb5 cache

11 years agoRemove very old libltdl
Alan T. DeKok [Tue, 4 Sep 2012 12:27:01 +0000 (14:27 +0200)]
Remove very old libltdl

We now use dlopen() where possible.  If --with-system-libltdl
is passed to configure, we use the systems version of libltdl.

Shipping our own version of libltdl is no longer necessary.

11 years agoUpdate configure to not use our local libltdl
Alan T. DeKok [Tue, 4 Sep 2012 12:24:33 +0000 (14:24 +0200)]
Update configure to not use our local libltdl

11 years agoSwitch to using dlopen() instead of libltdl.
Alan T. DeKok [Tue, 4 Sep 2012 12:19:11 +0000 (14:19 +0200)]
Switch to using dlopen() instead of libltdl.

And there was much rejoicing.

This commit does little more than change WITHOUT_LIBLTDL for WITH_LIBLTDL.
Previously, you had to specifically request WITHOUT_LIBLTDL.
Now you have to specifically request LIBLTDL.

11 years agoDisable EAP-PWD by default.
Alan T. DeKok [Tue, 4 Sep 2012 12:13:51 +0000 (14:13 +0200)]
Disable EAP-PWD by default.

It's not available in all versions of OpenSSL

11 years agoTweak file read/parse errors, they're confusing when that's all you see
Arran Cudbard-Bell [Mon, 3 Sep 2012 11:00:38 +0000 (12:00 +0100)]
Tweak file read/parse errors, they're confusing when that's all you see

11 years agoAdd configuration check on restart/reload
Arran Cudbard-Bell [Fri, 31 Aug 2012 14:49:21 +0000 (15:49 +0100)]
Add configuration check on restart/reload
Add configtest option
Switch to lsb functions for start/stop

11 years agoDrop packets means drop packets
Alan T. DeKok [Fri, 31 Aug 2012 06:04:33 +0000 (08:04 +0200)]
Drop packets means drop packets

11 years agoAdd BT dictionary
Arran Cudbard-Bell [Thu, 30 Aug 2012 12:34:02 +0000 (13:34 +0100)]
Add BT dictionary

11 years agoUnique indexes for everybody!
Arran Cudbard-Bell [Wed, 29 Aug 2012 17:57:23 +0000 (18:57 +0100)]
Unique indexes for everybody!

11 years agoCheck for NULL secret on dynamic clients
Alan T. DeKok [Wed, 29 Aug 2012 16:40:03 +0000 (18:40 +0200)]
Check for NULL secret on dynamic clients

11 years agoCorrect wiki link
Arran Cudbard-Bell [Wed, 29 Aug 2012 14:24:33 +0000 (15:24 +0100)]
Correct wiki link

11 years agoAdd additional attributes to support features on the 7750 service router
Arran Cudbard-Bell [Wed, 29 Aug 2012 14:18:42 +0000 (15:18 +0100)]
Add additional attributes to support features on the 7750 service router

11 years agoAdd entry hit stats
Arran Cudbard-Bell [Tue, 28 Aug 2012 15:26:10 +0000 (16:26 +0100)]
Add entry hit stats

11 years agoFix typo
Arran Cudbard-Bell [Tue, 28 Aug 2012 10:52:13 +0000 (12:52 +0200)]
Fix typo

11 years agoUse functions from version 3 API for processing list qualifiers
Arran Cudbard-Bell [Sun, 26 Aug 2012 22:15:39 +0000 (23:15 +0100)]
Use functions from version 3 API for processing list qualifiers

11 years agoAdd xlat support for retrieving specific attributes from the cache
Arran Cudbard-Bell [Sun, 26 Aug 2012 22:14:42 +0000 (23:14 +0100)]
Add xlat support for retrieving specific attributes from the cache

11 years agoUnblocked, not blocked
Alan T. DeKok [Fri, 24 Aug 2012 15:44:02 +0000 (17:44 +0200)]
Unblocked, not blocked

11 years agoTrack blocked / non-blocked state
Alan T. DeKok [Fri, 24 Aug 2012 15:30:18 +0000 (17:30 +0200)]
Track blocked / non-blocked state

If a REQUEST transitions from OK to STOP_PROCESSING during
a module call, say WHICH module did this.

11 years agoAdd rlm_caching. Order alphabetically
Alan T. DeKok [Fri, 24 Aug 2012 13:52:15 +0000 (15:52 +0200)]
Add rlm_caching.  Order alphabetically

11 years agoUse correct subsection name
Alan T. DeKok [Fri, 24 Aug 2012 13:29:36 +0000 (15:29 +0200)]
Use correct subsection name

11 years agoUpdate for 3.0 API
Alan T. DeKok [Fri, 24 Aug 2012 13:29:23 +0000 (15:29 +0200)]
Update for 3.0 API

11 years agoMakefile for new build system
Alan T. DeKok [Fri, 24 Aug 2012 13:29:10 +0000 (15:29 +0200)]
Makefile for new build system

11 years agoRemove main rlm_caching code
Arran Cudbard-Bell [Thu, 23 Aug 2012 20:18:00 +0000 (21:18 +0100)]
Remove main rlm_caching code

11 years agoRemove old rlm_caching module
Arran Cudbard-Bell [Thu, 23 Aug 2012 20:14:24 +0000 (21:14 +0100)]
Remove old rlm_caching module

11 years agoMove rlm_cache config file
Arran Cudbard-Bell [Thu, 23 Aug 2012 17:20:29 +0000 (18:20 +0100)]
Move rlm_cache config file

11 years agoAdd rlm_cache
Alan T. DeKok [Thu, 23 Aug 2012 12:24:07 +0000 (14:24 +0200)]
Add rlm_cache

11 years agoMerge pull request #15 from pobept/dictionary-redback
Alan DeKok [Thu, 23 Aug 2012 13:30:25 +0000 (06:30 -0700)]
Merge pull request #15 from pobept/dictionary-redback

Dictionary redback

11 years agoFixup some log messages
Arran Cudbard-Bell [Wed, 22 Aug 2012 22:51:37 +0000 (23:51 +0100)]
Fixup some log messages

11 years agoOutput the name of the file were reading
Arran Cudbard-Bell [Wed, 22 Aug 2012 22:51:12 +0000 (23:51 +0100)]
Output the name of the file were reading

11 years agoQuiet the compiler
Arran Cudbard-Bell [Wed, 22 Aug 2012 17:40:36 +0000 (18:40 +0100)]
Quiet the compiler

11 years agoShould be redebug
Arran Cudbard-Bell [Wed, 22 Aug 2012 17:31:48 +0000 (18:31 +0100)]
Should be redebug

11 years agoUpdates as per recent documentation
Alan T. DeKok [Mon, 27 Feb 2012 13:17:11 +0000 (14:17 +0100)]
Updates as per recent documentation

11 years agoSection configs structs arent pointers...
Arran Cudbard-Bell [Wed, 22 Aug 2012 16:35:41 +0000 (17:35 +0100)]
Section configs structs arent pointers...

11 years agoFix typo
Arran Cudbard-Bell [Wed, 22 Aug 2012 16:27:33 +0000 (17:27 +0100)]
Fix typo

11 years agoFix typo
Arran Cudbard-Bell [Wed, 22 Aug 2012 16:16:43 +0000 (18:16 +0200)]
Fix typo

11 years agoMissing out ssection configs is ok, but we need a sanity check if were still being...
Arran Cudbard-Bell [Wed, 22 Aug 2012 16:12:39 +0000 (17:12 +0100)]
Missing out ssection configs is ok, but we need a sanity check if were still being called for that section

11 years agoFix and document max_uses
Arran Cudbard-Bell [Wed, 22 Aug 2012 15:24:52 +0000 (16:24 +0100)]
Fix and document max_uses

11 years agoUpdate src/modules/rlm_ldap/rlm_ldap.c
Arran Cudbard-Bell [Wed, 22 Aug 2012 13:50:53 +0000 (15:50 +0200)]
Update src/modules/rlm_ldap/rlm_ldap.c

Add debug message noting the closure

11 years agoAdded "max_uses" parameter
Alan T. DeKok [Wed, 22 Aug 2012 13:32:22 +0000 (15:32 +0200)]
Added "max_uses" parameter

11 years agoMore cleanups of xlat code
Alan T. DeKok [Wed, 22 Aug 2012 12:39:32 +0000 (14:39 +0200)]
More cleanups of xlat code

Ouch.

11 years agoIf we're expanding a non-attribute, try the namne
Alan T. DeKok [Wed, 22 Aug 2012 08:15:48 +0000 (10:15 +0200)]
If we're expanding a non-attribute, try the namne

11 years agoNuke the '[' on expansion
Alan T. DeKok [Wed, 22 Aug 2012 07:58:09 +0000 (09:58 +0200)]
Nuke the '[' on expansion

11 years agoAccounting only needs select, insert, update
Alan T. DeKok [Tue, 21 Aug 2012 13:33:50 +0000 (15:33 +0200)]
Accounting only needs select, insert, update

Not delete.  Not table mods

11 years agoe table name, not "radius.table"
Alan T. DeKok [Tue, 21 Aug 2012 13:32:47 +0000 (15:32 +0200)]
e table name, not "radius.table"

11 years agoFix "update" logic
Alan T. DeKok [Tue, 21 Aug 2012 13:19:11 +0000 (15:19 +0200)]
Fix "update" logic

update reply {
Foo = Bar
}

update outer.reply {
Reply-Message := "%{reply:Foo}"
}

The *expansion* should be done in the context of the current request.
The *insertion* should be done in the context of the "update X" name.

11 years agoAdd nas identifier to attribute list
Arran Cudbard-Bell [Mon, 20 Aug 2012 13:42:46 +0000 (14:42 +0100)]
Add nas identifier to attribute list

11 years agoRemove rlm_acct_unique
Arran Cudbard-Bell [Mon, 20 Aug 2012 13:40:48 +0000 (14:40 +0100)]
Remove rlm_acct_unique

11 years agoMerge pull request #79 from alanbuxey/master
Arran Cudbard-Bell [Mon, 20 Aug 2012 08:42:25 +0000 (01:42 -0700)]
Merge pull request #79 from alanbuxey/master

update of Copyright to 2012 in several files and where date is printed by daemon

11 years agoMerge pull request #78 from alanbuxey/cui-updates
Arran Cudbard-Bell [Mon, 20 Aug 2012 08:39:51 +0000 (01:39 -0700)]
Merge pull request #78 from alanbuxey/cui-updates

updated CUI to use new connection pools

11 years agoMerge pull request #77 from alanbuxey/fixes
Alan DeKok [Mon, 20 Aug 2012 07:41:23 +0000 (00:41 -0700)]
Merge pull request #77 from alanbuxey/fixes

fixed error in dialup.conf for PSQL

11 years agoupdate of Copyright date in recently updated files
Alan Buxey [Sun, 19 Aug 2012 20:41:38 +0000 (21:41 +0100)]
update of Copyright date in recently updated files

2012 printed by code and marked in headers

11 years agoupdated CUI to use new connection pools
Alan Buxey [Sun, 19 Aug 2012 20:33:02 +0000 (21:33 +0100)]
updated CUI to use new connection pools

update of the CUI module config to use the new connection pools method
as per its 'parent' SQL heritage

11 years agofixed error in dialup.conf for PSQL
Alan Buxey [Sun, 19 Aug 2012 20:13:34 +0000 (21:13 +0100)]
fixed error in dialup.conf for PSQL

fixed variable definition in new dialup.conf file - without this the
server blows up on startup with 'unknown variable' message as soon as
someone tries to use postgres

11 years agorlm_wimax is now stable
Alan T. DeKok [Fri, 17 Aug 2012 15:25:26 +0000 (17:25 +0200)]
rlm_wimax is now stable

11 years agoIf there's no pool{} configuration, use the defaults
Alan T. DeKok [Tue, 14 Aug 2012 14:08:03 +0000 (16:08 +0200)]
If there's no pool{} configuration, use the defaults

11 years agoSQL could be used just for xlat, or ip pool.
Alan T. DeKok [Tue, 14 Aug 2012 10:01:12 +0000 (12:01 +0200)]
SQL could be used just for xlat, or ip pool.

The post-auth && accounting sections are NOT mandatory

11 years agoRemoved references to sqltrace
Alan T. DeKok [Tue, 14 Aug 2012 07:16:42 +0000 (09:16 +0200)]
Removed references to sqltrace

Having it in each module is ridiculous

11 years agoRemove unused variable
Alan T. DeKok [Mon, 13 Aug 2012 15:01:17 +0000 (17:01 +0200)]
Remove unused variable

11 years agoRemove unused code
Alan T. DeKok [Sat, 11 Aug 2012 07:24:07 +0000 (09:24 +0200)]
Remove unused code

11 years agoRemove compiler warning
Alan T. DeKok [Sat, 11 Aug 2012 07:23:56 +0000 (09:23 +0200)]
Remove compiler warning

11 years agoAdd accounting-on / off statements
Alan T. DeKok [Fri, 10 Aug 2012 09:19:51 +0000 (11:19 +0200)]
Add accounting-on / off statements

11 years agoUpdated example
Alan T. DeKok [Thu, 9 Aug 2012 13:03:18 +0000 (15:03 +0200)]
Updated example

11 years agoIgnore regex comparisons, too
Alan T. DeKok [Wed, 1 Aug 2012 22:56:50 +0000 (15:56 -0700)]
Ignore regex comparisons, too

11 years agoV6-enable the log filename
Alan T. DeKok [Wed, 1 Aug 2012 22:55:26 +0000 (15:55 -0700)]
V6-enable the log filename

11 years agoDocument changes to SQL
Alan T. DeKok [Fri, 10 Aug 2012 13:53:34 +0000 (15:53 +0200)]
Document changes to SQL

11 years agoAllow rlm_sql_null, and minor fixes to the sql logging
Alan T. DeKok [Fri, 10 Aug 2012 13:47:12 +0000 (15:47 +0200)]
Allow rlm_sql_null, and minor fixes to the sql logging

So that we can avoid the "sql_log" module

11 years agoAdded NULL sql driver. It does nothing.
Alan T. DeKok [Fri, 10 Aug 2012 12:17:03 +0000 (14:17 +0200)]
Added NULL sql driver.  It does nothing.

11 years agoClean up SQL "tracefile" code
Alan T. DeKok [Fri, 10 Aug 2012 10:45:37 +0000 (12:45 +0200)]
Clean up SQL "tracefile" code

There is now just a "logfile" configuration.  There is no need
to have "trace=yes" and "tracefile".

Since the logfile also locks the file, we can probably get rid of
the sql_log module.

Also document the "logfile" directive in the dialup.conf files