freeradius.git
10 years agoMinor tweaks before the release release_3_0_2
Alan T. DeKok [Fri, 21 Mar 2014 12:27:25 +0000 (08:27 -0400)]
Minor tweaks before the release

10 years agoMake Simultaneous-Use "access denied" message configurable
Alan T. DeKok [Fri, 21 Mar 2014 01:17:28 +0000 (21:17 -0400)]
Make Simultaneous-Use "access denied" message configurable

10 years agoportmasters copy of the livingston site is no longer active
Alan T. DeKok [Thu, 20 Mar 2014 18:26:24 +0000 (14:26 -0400)]
portmasters copy of the livingston site is no longer active

And we shouldn't be pointing people to 15 year-old docs

10 years agoAdd "retry_delay".
Alan T. DeKok [Thu, 20 Mar 2014 18:24:11 +0000 (14:24 -0400)]
Add "retry_delay".

And re-set "last_failed" if we managed to open a connection

10 years agoAdd ToC
Arran Cudbard-Bell [Thu, 20 Mar 2014 18:15:35 +0000 (18:15 +0000)]
Add ToC

10 years agoMinor tweaks
Alan T. DeKok [Thu, 20 Mar 2014 18:01:01 +0000 (14:01 -0400)]
Minor tweaks

10 years agoAnother typo
Arran Cudbard-Bell [Thu, 20 Mar 2014 17:58:19 +0000 (17:58 +0000)]
Another typo

10 years agolast re-arrangement
Alan T. DeKok [Thu, 20 Mar 2014 17:51:20 +0000 (13:51 -0400)]
last re-arrangement

10 years agoRe-organization for clarity
Alan T. DeKok [Thu, 20 Mar 2014 17:48:48 +0000 (13:48 -0400)]
Re-organization for clarity

10 years agoAdd ToC
Arran Cudbard-Bell [Thu, 20 Mar 2014 17:45:58 +0000 (17:45 +0000)]
Add ToC

10 years agoDocument all new modules
Arran Cudbard-Bell [Thu, 20 Mar 2014 17:37:19 +0000 (17:37 +0000)]
Document all new modules

10 years agoDocument unlang changes, and other cleanups
Alan T. DeKok [Thu, 20 Mar 2014 16:27:54 +0000 (12:27 -0400)]
Document unlang changes, and other cleanups

10 years agoNote changes
Alan T. DeKok [Thu, 20 Mar 2014 15:37:52 +0000 (11:37 -0400)]
Note changes

10 years agooreect Message-Authenticator calculation for CoA packets.
Alan T. DeKok [Mon, 7 May 2012 16:33:31 +0000 (18:33 +0200)]
oreect Message-Authenticator calculation for CoA packets.

Patch from Jouni Malinen.

10 years agoFix a few more minor issues
Arran Cudbard-Bell [Thu, 20 Mar 2014 08:08:26 +0000 (08:08 +0000)]
Fix a few more minor issues

10 years agoIf the module was optional (-sql) it's real name is "sql"
Alan T. DeKok [Wed, 19 Mar 2014 23:05:45 +0000 (19:05 -0400)]
If the module was optional (-sql) it's real name is "sql"

So that the debugging output is clearer

10 years agoFixup formatting of SQL queries
Arran Cudbard-Bell [Wed, 19 Mar 2014 23:00:22 +0000 (23:00 +0000)]
Fixup formatting of SQL queries

10 years agoRemove extraneous ?. It's ugly
Alan T. DeKok [Wed, 19 Mar 2014 20:14:16 +0000 (16:14 -0400)]
Remove extraneous ?.  It's ugly

10 years agoDon't indent debugging messages so much
Alan T. DeKok [Wed, 19 Mar 2014 20:09:42 +0000 (16:09 -0400)]
Don't indent debugging messages so much

10 years agoSuppress more xlat debugging
Alan T. DeKok [Wed, 19 Mar 2014 19:58:16 +0000 (15:58 -0400)]
Suppress more xlat debugging

10 years agoReplace NOW() with date('now') in sqlite accounting queries. Oops.
Arran Cudbard-Bell [Wed, 19 Mar 2014 17:52:20 +0000 (17:52 +0000)]
Replace NOW() with date('now') in sqlite accounting queries. Oops.

10 years agoUse "next" instead of "node"
Alan T. DeKok [Wed, 19 Mar 2014 17:44:25 +0000 (13:44 -0400)]
Use "next" instead of "node"

10 years agoMerge pull request #555 from mcnewton/v3.0.x
Alan DeKok [Wed, 19 Mar 2014 17:14:51 +0000 (13:14 -0400)]
Merge pull request #555 from mcnewton/v3.0.x

sqlite doesn't have NOW() or INTERVAL

10 years agosqlite doesn't have NOW() or INTERVAL
Matthew Newton [Wed, 19 Mar 2014 15:10:27 +0000 (15:10 +0000)]
sqlite doesn't have NOW() or INTERVAL

10 years agoNote recent changes
Alan T. DeKok [Wed, 19 Mar 2014 14:49:51 +0000 (10:49 -0400)]
Note recent changes

10 years agoFix prototype for radius_vpt_get_vp
Arran Cudbard-Bell [Wed, 19 Mar 2014 14:47:47 +0000 (14:47 +0000)]
Fix prototype for radius_vpt_get_vp

10 years agoWe only need 2 %% now that we've fixed xlat
Alan T. DeKok [Wed, 19 Mar 2014 14:45:43 +0000 (10:45 -0400)]
We only need 2 %% now that we've fixed xlat

10 years agoParsing 'foo%%s' requires an intermediate literal of "%"
Alan T. DeKok [Wed, 19 Mar 2014 14:38:02 +0000 (10:38 -0400)]
Parsing 'foo%%s' requires an intermediate literal of "%"

The %% takes 2 characters. We need one to terminate the
previous string.  One for the %.  And one to terminate
the "%" string.  That's three, which doesn't fit into the
space of %%.  So... talloc_strdup to the rescue

We could add "optimization" code to detect of the previous
character was zero, OR the previous node was a literal,
and avoid the creation of a new node / talloc.  But... that's
more fragile.  Just doing the simple thing will work

10 years agoMake XLAT_DEBUG output clearer
Alan T. DeKok [Wed, 19 Mar 2014 14:37:10 +0000 (10:37 -0400)]
Make XLAT_DEBUG output clearer

10 years agoHard-code sql dialect
Alan T. DeKok [Wed, 19 Mar 2014 14:11:33 +0000 (10:11 -0400)]
Hard-code sql dialect

nested references don't work

10 years agoRename queries to new standard
Alan T. DeKok [Wed, 19 Mar 2014 13:42:31 +0000 (09:42 -0400)]
Rename queries to new standard

10 years agoMerge pull request #553 from mcnewton/v3.0.x
Alan DeKok [Wed, 19 Mar 2014 14:41:01 +0000 (10:41 -0400)]
Merge pull request #553 from mcnewton/v3.0.x

basic config for dhcp IP allocation using sqlite

10 years agoAdd radius_copy_vp
Arran Cudbard-Bell [Wed, 19 Mar 2014 14:38:18 +0000 (14:38 +0000)]
Add radius_copy_vp

10 years agoUpdate ChangeLog
Arran Cudbard-Bell [Wed, 19 Mar 2014 12:18:21 +0000 (12:18 +0000)]
Update ChangeLog

10 years agoRemove duplicate escaping/special rules in sqlippool_expand
Arran Cudbard-Bell [Wed, 19 Mar 2014 12:08:57 +0000 (12:08 +0000)]
Remove duplicate escaping/special rules in sqlippool_expand

10 years agoFix log message types, formatting and examples in rlm_unpack
Arran Cudbard-Bell [Wed, 19 Mar 2014 08:32:01 +0000 (08:32 +0000)]
Fix log message types, formatting and examples in rlm_unpack

10 years agobasic config for dhcp IP allocation using sqlite
Matthew Newton [Wed, 19 Mar 2014 01:08:54 +0000 (01:08 +0000)]
basic config for dhcp IP allocation using sqlite

10 years ago%% is a LITERAL, not a PERCENT expansion
Alan T. DeKok [Wed, 19 Mar 2014 00:17:11 +0000 (20:17 -0400)]
%% is a LITERAL, not a PERCENT expansion

PERCENT expansions are escaped.  LITERALs are not.

10 years agoNote rlm_unpack
Alan T. DeKok [Wed, 19 Mar 2014 00:12:20 +0000 (20:12 -0400)]
Note rlm_unpack

10 years agoAdded rlm_unpack
Alan T. DeKok [Wed, 19 Mar 2014 00:10:45 +0000 (20:10 -0400)]
Added rlm_unpack

Which makes it easier to unpack binary data

10 years agoEscape %s in sqlite counter queries
Arran Cudbard-Bell [Tue, 18 Mar 2014 23:42:44 +0000 (23:42 +0000)]
Escape %s in sqlite counter queries

10 years agoRemove redundant escaping from sqlcounter
Arran Cudbard-Bell [Tue, 18 Mar 2014 23:41:19 +0000 (23:41 +0000)]
Remove redundant escaping from sqlcounter

10 years agoMerge pull request #552 from mcnewton/v3.0.x
Alan DeKok [Tue, 18 Mar 2014 21:55:50 +0000 (17:55 -0400)]
Merge pull request #552 from mcnewton/v3.0.x

allocate-update should be allocate_update for dhcp_sqlippool

10 years agoallocate-update should be allocate_update for dhcp_sqlippool
Matthew Newton [Tue, 18 Mar 2014 21:40:23 +0000 (21:40 +0000)]
allocate-update should be allocate_update for dhcp_sqlippool

10 years agoFix for latest functionality of the format script
Alan T. DeKok [Tue, 18 Mar 2014 19:28:20 +0000 (15:28 -0400)]
Fix for latest functionality of the format script

10 years agoUpdate ChangeLog
Arran Cudbard-Bell [Tue, 18 Mar 2014 18:10:45 +0000 (18:10 +0000)]
Update ChangeLog

10 years agoDoxygen
Arran Cudbard-Bell [Tue, 18 Mar 2014 18:04:54 +0000 (18:04 +0000)]
Doxygen

10 years agoDeal with HTTP 100 responses correctly
Arran Cudbard-Bell [Tue, 18 Mar 2014 18:02:18 +0000 (18:02 +0000)]
Deal with HTTP 100 responses correctly

10 years agoImprove error messages in HTTP header parser
Arran Cudbard-Bell [Tue, 18 Mar 2014 18:00:32 +0000 (18:00 +0000)]
Improve error messages in HTTP header parser

10 years agoTweak buffer allocation to alloc double the previous memory as before when encoding...
Arran Cudbard-Bell [Tue, 18 Mar 2014 17:00:13 +0000 (17:00 +0000)]
Tweak buffer allocation to alloc double the previous memory as before when encoding requests to avoid unnecessary allocs

10 years agoFix issue in fr_prints_string
Arran Cudbard-Bell [Tue, 18 Mar 2014 16:29:34 +0000 (16:29 +0000)]
Fix issue in fr_prints_string

10 years agoOutput what we expected and got it unittest.c
Arran Cudbard-Bell [Tue, 18 Mar 2014 16:28:22 +0000 (16:28 +0000)]
Output what we expected and got it unittest.c

10 years agoModify functions in print.c to return > than outlen if they run out of buffer. This...
Arran Cudbard-Bell [Tue, 18 Mar 2014 15:12:27 +0000 (15:12 +0000)]
Modify functions in print.c to return > than outlen if they run out of buffer. This is required for correct operation of rlm_rest stream encoders

10 years agoFormatting in rlm_rest
Arran Cudbard-Bell [Tue, 18 Mar 2014 14:20:57 +0000 (14:20 +0000)]
Formatting in rlm_rest

10 years agoWe should not set a default connect_uri
Arran Cudbard-Bell [Tue, 18 Mar 2014 06:42:31 +0000 (06:42 +0000)]
We should not set a default connect_uri

We should set a default timeout (in this case 4 seconds). To disable timeout it can be set to 0.

10 years agoUse the same names for variables as the rest of the code in rlm_rest encoders
Arran Cudbard-Bell [Mon, 17 Mar 2014 23:31:33 +0000 (23:31 +0000)]
Use the same names for variables as the rest of the code in rlm_rest encoders

Add more error checking around curl_easy_escape

Make the encoder code clearer

10 years agoFix typo
Alan T. DeKok [Mon, 17 Mar 2014 22:19:47 +0000 (18:19 -0400)]
Fix typo

10 years agoIncrement p *then* set last full attribute pointer. Fixes #550
Arran Cudbard-Bell [Mon, 17 Mar 2014 21:29:59 +0000 (21:29 +0000)]
Increment p *then* set last full attribute pointer. Fixes #550

10 years agoRemove weird pipe substitution hack for JSON data
Arran Cudbard-Bell [Mon, 17 Mar 2014 14:20:13 +0000 (14:20 +0000)]
Remove weird pipe substitution hack for JSON data

10 years agoAvoid calling json_object_array_get_idx on non-array objects, bad things happen...
Arran Cudbard-Bell [Mon, 17 Mar 2014 13:37:00 +0000 (13:37 +0000)]
Avoid calling json_object_array_get_idx on non-array objects, bad things happen...

10 years agoMore formatting
Arran Cudbard-Bell [Mon, 17 Mar 2014 13:36:28 +0000 (13:36 +0000)]
More formatting

10 years agoStrip trailing & in post data
Arran Cudbard-Bell [Mon, 17 Mar 2014 13:36:04 +0000 (13:36 +0000)]
Strip trailing & in post data

10 years agoWork around Perl's weird crap
Arran Cudbard-Bell [Mon, 17 Mar 2014 13:35:33 +0000 (13:35 +0000)]
Work around Perl's weird crap

10 years agoOrder of operations...
Arran Cudbard-Bell [Mon, 17 Mar 2014 06:16:55 +0000 (06:16 +0000)]
Order of operations...

10 years agoFix GCC warnings
Arran Cudbard-Bell [Sun, 16 Mar 2014 23:10:21 +0000 (23:10 +0000)]
Fix GCC warnings

10 years agoFixup weird formatting, uneeded allocs, and duplicate code in rlm_rest
Arran Cudbard-Bell [Sun, 16 Mar 2014 22:37:42 +0000 (22:37 +0000)]
Fixup weird formatting, uneeded allocs, and duplicate code in rlm_rest

10 years agoRemove duplicate fr_strerror_printf declaration
Arran Cudbard-Bell [Sun, 16 Mar 2014 18:12:13 +0000 (18:12 +0000)]
Remove duplicate fr_strerror_printf declaration

10 years agoFix parsing of JSON attributes returned by REST application
Arran Cudbard-Bell [Sun, 16 Mar 2014 18:01:12 +0000 (18:01 +0000)]
Fix parsing of JSON attributes returned by REST application

10 years agoradius_parseattr should output errors with fr_strerror_printf (even though it's not...
Arran Cudbard-Bell [Sun, 16 Mar 2014 17:59:55 +0000 (17:59 +0000)]
radius_parseattr should output errors with fr_strerror_printf (even though it's not a library function)

10 years agoChange order of arguments in radius_parse_attr
Arran Cudbard-Bell [Sun, 16 Mar 2014 16:08:25 +0000 (16:08 +0000)]
Change order of arguments in radius_parse_attr

10 years agoBackport additional types VALUEPAIR union types 'byte' and 'short'
Arran Cudbard-Bell [Sun, 16 Mar 2014 13:37:06 +0000 (13:37 +0000)]
Backport additional types VALUEPAIR union types 'byte' and 'short'

10 years agoDisable -Wunused-function for macro generated 'get' TLS functions
Arran Cudbard-Bell [Sun, 16 Mar 2014 12:47:21 +0000 (12:47 +0000)]
Disable -Wunused-function for macro generated 'get' TLS functions

10 years agoBackport fr_cursor name changes
Arran Cudbard-Bell [Sun, 16 Mar 2014 09:58:13 +0000 (09:58 +0000)]
Backport fr_cursor name changes

10 years agoReturn error if we don't have sufficient buffer space to write out decoded base64...
Arran Cudbard-Bell [Thu, 13 Mar 2014 15:17:04 +0000 (15:17 +0000)]
Return error if we don't have sufficient buffer space to write out decoded base64 string

10 years agoFix "not responding" debug message in DHCP
Arran Cudbard-Bell [Thu, 13 Mar 2014 15:18:39 +0000 (15:18 +0000)]
Fix "not responding" debug message in DHCP

10 years agoMerge pull request #548 from mcnewton/v3.0.x
Alan DeKok [Fri, 14 Mar 2014 14:57:14 +0000 (10:57 -0400)]
Merge pull request #548 from mcnewton/v3.0.x

Add more incoming DHCP packet types to config

10 years agoAdd more incoming DHCP packet types to config
Matthew Newton [Fri, 14 Mar 2014 14:21:46 +0000 (14:21 +0000)]
Add more incoming DHCP packet types to config

10 years agoUpdate documentation for DHCP unknown packet types
Alan T. DeKok [Fri, 14 Mar 2014 14:00:51 +0000 (10:00 -0400)]
Update documentation for DHCP unknown packet types

10 years agoCheck for client/home entries. Fixes #547
Alan T. DeKok [Fri, 14 Mar 2014 13:30:06 +0000 (09:30 -0400)]
Check for client/home entries.  Fixes #547

10 years agoRemove warnings that DHCP is experimental
Alan T. DeKok [Fri, 14 Mar 2014 13:21:19 +0000 (09:21 -0400)]
Remove warnings that DHCP is experimental

10 years agoIf relay IP is 0.0.0.0, don't use it
Alan T. DeKok [Thu, 13 Mar 2014 18:00:51 +0000 (14:00 -0400)]
If relay IP is 0.0.0.0, don't use it

10 years agoIf the request was unicast, the reply can be unicast, too
Alan T. DeKok [Thu, 13 Mar 2014 17:59:15 +0000 (13:59 -0400)]
If the request was unicast, the reply can be unicast, too

10 years agoRe-added missing line
Alan T. DeKok [Thu, 13 Mar 2014 15:39:08 +0000 (11:39 -0400)]
Re-added missing line

10 years agoNote recent changes
Alan T. DeKok [Thu, 13 Mar 2014 14:25:27 +0000 (10:25 -0400)]
Note recent changes

10 years agoDocument src_ipaddr
Alan T. DeKok [Thu, 13 Mar 2014 14:25:12 +0000 (10:25 -0400)]
Document src_ipaddr

10 years agoSet src IP on more situations.
Alan T. DeKok [Thu, 13 Mar 2014 14:17:00 +0000 (10:17 -0400)]
Set src IP on more situations.

If the admin set "ipaddr = *", and no "src_ipaddr = ...", then
we used to send packets from 0.0.0.0.  That's wrong.

We now look for server identifier or server IP address.
If one of those is found, we use that as the source IP

10 years agoFix new warnings emitted by clang
Arran Cudbard-Bell [Thu, 13 Mar 2014 12:36:55 +0000 (12:36 +0000)]
Fix new warnings emitted by clang

10 years agoUpdate ChangeLog
Arran Cudbard-Bell [Thu, 13 Mar 2014 08:33:27 +0000 (08:33 +0000)]
Update ChangeLog

10 years agoFormatting and extra debugging in rlm_attr_filter
Arran Cudbard-Bell [Wed, 12 Mar 2014 22:08:57 +0000 (22:08 +0000)]
Formatting and extra debugging in rlm_attr_filter

10 years agoCompare da not just attribute number (fix clashing vendor and RFC space attributes)
Arran Cudbard-Bell [Wed, 12 Mar 2014 22:08:22 +0000 (22:08 +0000)]
Compare da not just attribute number (fix clashing vendor and RFC space attributes)

10 years agoCorrect comment
Arran Cudbard-Bell [Wed, 12 Mar 2014 21:41:26 +0000 (21:41 +0000)]
Correct comment

10 years agoFix typos
Alan T. DeKok [Wed, 12 Mar 2014 21:36:55 +0000 (17:36 -0400)]
Fix typos

10 years agoRe-arrange normalization code in parser
Alan T. DeKok [Wed, 12 Mar 2014 18:34:51 +0000 (14:34 -0400)]
Re-arrange normalization code in parser

also make map return a valid map, no matter what the operator
having hacks in the map parser to deal with =* and ~* is wrong

10 years agoPrint out more information with -xx
Alan T. DeKok [Wed, 12 Mar 2014 18:16:38 +0000 (14:16 -0400)]
Print out more information with -xx

10 years agoNormalize literals in conditions
Alan T. DeKok [Wed, 12 Mar 2014 18:05:56 +0000 (14:05 -0400)]
Normalize literals in conditions

if ('') is false
if ("foo") is true
if (bar) is invalid, as the condition needs to be a module rcode

10 years agoUpdated example
Alan T. DeKok [Wed, 12 Mar 2014 15:04:00 +0000 (11:04 -0400)]
Updated example

10 years agoMerge pull request #546 from mcnewton/v3.0.x
Arran Cudbard-Bell [Wed, 12 Mar 2014 16:56:21 +0000 (16:56 +0000)]
Merge pull request #546 from mcnewton/v3.0.x

V3.0.x

10 years agodhcp config comments about mac2ip
Matthew Newton [Wed, 12 Mar 2014 16:44:19 +0000 (16:44 +0000)]
dhcp config comments about mac2ip

10 years agoadd comments about dhcp listen section
Matthew Newton [Wed, 12 Mar 2014 16:38:03 +0000 (16:38 +0000)]
add comments about dhcp listen section

10 years agoMerge pull request #545 from mcnewton/v3.0.x
Alan DeKok [Wed, 12 Mar 2014 16:27:29 +0000 (12:27 -0400)]
Merge pull request #545 from mcnewton/v3.0.x

V3.0.x