]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
11 years agoAdd power operator to expr
Arran Cudbard-Bell [Mon, 2 Dec 2013 18:39:38 +0000 (18:39 +0000)] 
Add power operator to expr

Who needs left shift when you can do %{expr:(%{Acct-Output-Gigawords} * (2 ^ 32)) + %{Acct-Input-Octets}}}. Ok bad example, but i'm sure someone will find it useful.

11 years agoradusergroup needs a primary key too, else PgAdmin (rightly) refuses to work with it
Arran Cudbard-Bell [Sun, 1 Dec 2013 21:37:50 +0000 (16:37 -0500)] 
radusergroup needs a primary key too, else PgAdmin (rightly) refuses to work with it

11 years agoTemporary fix for SQL counter module
Arran Cudbard-Bell [Sun, 1 Dec 2013 21:19:03 +0000 (21:19 +0000)] 
Temporary fix for SQL counter module

Really need nested expansion of config items to do this properly

11 years agoTypo
Alan T. DeKok [Sun, 1 Dec 2013 13:57:38 +0000 (08:57 -0500)] 
Typo

11 years agoUpdate ChangeLog
Arran Cudbard-Bell [Sat, 30 Nov 2013 22:51:24 +0000 (17:51 -0500)] 
Update ChangeLog

11 years agoInitialise TLS *ONCE* in main, don't reinitialise it every time a new ctx is created.
Arran Cudbard-Bell [Sat, 30 Nov 2013 22:36:24 +0000 (22:36 +0000)] 
Initialise TLS *ONCE* in main, don't reinitialise it every time a new ctx is created.

Late initialisation was causing the PostgreSQL driver to fail with rlm_sql_postgresql: Connection failed: could not create SSL context: SSL error code 336236705

11 years agoAllow arbitrary connection parameters to be listed in radius_db in the PostgreSQL...
Arran Cudbard-Bell [Sat, 30 Nov 2013 22:04:23 +0000 (22:04 +0000)] 
Allow arbitrary connection parameters to be listed in radius_db in the PostgreSQL driver, this allows things like open SSL to be disabled/enabled.

11 years agoNote more changes
Arran Cudbard-Bell [Sat, 30 Nov 2013 11:47:46 +0000 (06:47 -0500)] 
Note more changes

11 years agoAdd SSL support to the MySQL driver, and document driver specific options.
Arran Cudbard-Bell [Fri, 29 Nov 2013 22:23:46 +0000 (22:23 +0000)] 
Add SSL support to the MySQL driver, and document driver specific options.

11 years agoLDAP_OPT_DEBUG_LEVEL only appears to work if set in the global context
Arran Cudbard-Bell [Fri, 29 Nov 2013 20:53:31 +0000 (20:53 +0000)] 
LDAP_OPT_DEBUG_LEVEL only appears to work if set in the global context

11 years agoInitialise TLS context last, after setting all the TLS options, else they're not...
Arran Cudbard-Bell [Fri, 29 Nov 2013 20:53:08 +0000 (20:53 +0000)] 
Initialise TLS context last, after setting all the TLS options, else they're not respected...

11 years agoNote recent changes
Alan T. DeKok [Fri, 29 Nov 2013 15:08:31 +0000 (10:08 -0500)] 
Note recent changes

11 years agoMove some useful functions into misc.c
Arran Cudbard-Bell [Thu, 28 Nov 2013 13:08:42 +0000 (13:08 +0000)] 
Move some useful functions into misc.c

11 years agoDo compile time checks of literal map values
Arran Cudbard-Bell [Thu, 28 Nov 2013 13:25:48 +0000 (13:25 +0000)] 
Do compile time checks of literal map values

11 years agoFiles have CR at EOF
Alan T. DeKok [Wed, 27 Nov 2013 16:25:49 +0000 (11:25 -0500)] 
Files have CR at EOF

11 years agoAbstract module dependencies
Alan T. DeKok [Wed, 27 Nov 2013 16:25:27 +0000 (11:25 -0500)] 
Abstract module dependencies

So that we link the raddb config and the module.la before
running the tests

11 years agoEnsure that the raddb directory is set up before running tests
Alan T. DeKok [Wed, 27 Nov 2013 16:06:42 +0000 (11:06 -0500)] 
Ensure that the raddb directory is set up before running tests

11 years agoUse different context for input and output REQUESTs
Alan T. DeKok [Wed, 27 Nov 2013 14:32:36 +0000 (09:32 -0500)] 
Use different context for input and output REQUESTs

11 years agoFix typo
Arran Cudbard-Bell [Wed, 27 Nov 2013 13:47:25 +0000 (13:47 +0000)] 
Fix typo

11 years agoAlways respect control:Response-Packet-Type if it's present, no matter what the reque...
Arran Cudbard-Bell [Wed, 27 Nov 2013 13:40:41 +0000 (13:40 +0000)] 
Always respect control:Response-Packet-Type if it's present, no matter what the request type was.

This allows:

accounting {
update {
control:Response-Packet-Type := Accounting-Response
}
handled
}

If you want to short circuit accounting. This is consistent with authentication behaviour.

Conflicts:
src/main/process.c

11 years agoShould be case insensitive comparison
Arran Cudbard-Bell [Wed, 27 Nov 2013 12:25:03 +0000 (12:25 +0000)] 
Should be case insensitive comparison

11 years agoAdd example to access_attribute
Arran Cudbard-Bell [Wed, 27 Nov 2013 11:16:55 +0000 (06:16 -0500)] 
Add example to access_attribute

11 years agoAdded "status" to the init script
Alan T. DeKok [Wed, 27 Nov 2013 04:02:12 +0000 (23:02 -0500)] 
Added "status" to the init script

11 years agoAdd note about access attribute 'false' value
Arran Cudbard-Bell [Tue, 26 Nov 2013 17:30:14 +0000 (12:30 -0500)] 
Add note about access attribute 'false' value

11 years agoProcess attribute maps if we just have a generic attribute set
Arran Cudbard-Bell [Tue, 26 Nov 2013 17:16:33 +0000 (17:16 +0000)] 
Process attribute maps if we just have a generic attribute set

11 years agoUse the map functions to parse VALUE_PAIR string tuples
Arran Cudbard-Bell [Tue, 26 Nov 2013 17:16:11 +0000 (17:16 +0000)] 
Use the map functions to parse VALUE_PAIR string tuples

11 years agoFormatting
Arran Cudbard-Bell [Tue, 26 Nov 2013 16:37:25 +0000 (16:37 +0000)] 
Formatting

11 years agoattribute with value 'false' always negates result of LDAP access_check
Arran Cudbard-Bell [Tue, 26 Nov 2013 16:37:15 +0000 (16:37 +0000)] 
attribute with value 'false' always negates result of LDAP access_check

11 years agoRun tests only when doing "make test"
Alan T. DeKok [Tue, 26 Nov 2013 16:08:18 +0000 (11:08 -0500)] 
Run tests only when doing "make test"

11 years agoEnsure that "break" can only occur in "foreach" sections
Alan T. DeKok [Tue, 26 Nov 2013 16:03:11 +0000 (11:03 -0500)] 
Ensure that "break" can only occur in "foreach" sections

11 years agoEnsure we only grab one error message
Alan T. DeKok [Tue, 26 Nov 2013 16:02:34 +0000 (11:02 -0500)] 
Ensure we only grab one error message

11 years agoMake "break" jump out of the "foreach" loop
Alan T. DeKok [Tue, 26 Nov 2013 15:47:04 +0000 (10:47 -0500)] 
Make "break" jump out of the "foreach" loop

and add a test to that effect!

11 years agoPrint input VPs to the log
Alan T. DeKok [Tue, 26 Nov 2013 15:30:52 +0000 (10:30 -0500)] 
Print input VPs to the log

11 years agoSimple tests for parse errors
Alan T. DeKok [Tue, 26 Nov 2013 14:54:49 +0000 (09:54 -0500)] 
Simple tests for parse errors

11 years agoFrom extreme
Alan T. DeKok [Tue, 26 Nov 2013 13:52:20 +0000 (08:52 -0500)] 
From extreme

11 years agoEnsure a one-way check
Alan T. DeKok [Mon, 25 Nov 2013 20:37:57 +0000 (15:37 -0500)] 
Ensure a one-way check

11 years agoDo allocate_clear no more than once per second
Alan T. DeKok [Mon, 25 Nov 2013 15:22:41 +0000 (10:22 -0500)] 
Do allocate_clear no more than once per second

To lower the load on the database.

11 years agoPut a separate transaction around allocate_clear
Alan T. DeKok [Mon, 25 Nov 2013 15:19:16 +0000 (10:19 -0500)] 
Put a separate transaction around allocate_clear

to deal with MySQL issues.  It reduces deadlocks

11 years agoDon't need debugging when we open a new TLS socket
Alan T. DeKok [Fri, 22 Nov 2013 15:12:17 +0000 (10:12 -0500)] 
Don't need debugging when we open a new TLS socket

11 years agoDon't worry about threading when doing radiusd -C
Alan T. DeKok [Fri, 22 Nov 2013 14:50:26 +0000 (09:50 -0500)] 
Don't worry about threading when doing radiusd -C

We're not opening sockets or starting threads, so the error
message isn't necessary

11 years agoFix the test. Fixes #480
Alan T. DeKok [Fri, 22 Nov 2013 03:30:05 +0000 (22:30 -0500)] 
Fix the test.  Fixes #480

Returns aren't recursive.
See doc/configuration/configurable_failover.rst

The "Handle accounting packets" line doesn't do "detail2" if
"detail1" succeeds.  However, it DOES do the "redundant" block
immediately following the "group" which contains both "detail1"
and "detail2"

11 years agoAdd return and return-group tests
Arran Cudbard-Bell [Thu, 21 Nov 2013 23:47:52 +0000 (23:47 +0000)] 
Add return and return-group tests

11 years agoUpdate rcradiusd
annanymous2 [Mon, 4 Nov 2013 12:26:54 +0000 (13:26 +0100)] 
Update rcradiusd

Two new Parameters for SuSe init-Script

11 years agolibiodbc2 now needs to be install before libiodbc2-dev
Arran Cudbard-Bell [Thu, 21 Nov 2013 12:41:13 +0000 (12:41 +0000)] 
libiodbc2 now needs to be install before libiodbc2-dev

11 years agoClean up counters when we close the socket
Alan T. DeKok [Thu, 21 Nov 2013 00:16:05 +0000 (19:16 -0500)] 
Clean up counters when we close the socket

11 years agoUse sock context for allocating packets
Alan T. DeKok [Thu, 21 Nov 2013 00:14:31 +0000 (19:14 -0500)] 
Use sock context for allocating packets

So they get free'd correctly when we exit

11 years agocheck_config is now a bool
Alan T. DeKok [Wed, 20 Nov 2013 23:04:29 +0000 (18:04 -0500)] 
check_config is now a bool

11 years agoNote recent changes
Alan T. DeKok [Wed, 20 Nov 2013 14:49:09 +0000 (09:49 -0500)] 
Note recent changes

11 years agoFix typo
Alan T. DeKok [Wed, 20 Nov 2013 04:35:55 +0000 (23:35 -0500)] 
Fix typo

11 years agoRemove rlm_eap from messages. It's no longer in a module
Alan T. DeKok [Mon, 18 Nov 2013 22:05:54 +0000 (17:05 -0500)] 
Remove rlm_eap from messages.  It's no longer in a module

11 years agoProper fix for .gitignore and debian packaging
Arran Cudbard-Bell [Sun, 17 Nov 2013 17:55:25 +0000 (17:55 +0000)] 
Proper fix for .gitignore and debian packaging

11 years agoRemove patches after build
Arran Cudbard-Bell [Sun, 17 Nov 2013 17:04:45 +0000 (17:04 +0000)] 
Remove patches after build

11 years agoDebian fixes
Arran Cudbard-Bell [Sun, 17 Nov 2013 13:26:25 +0000 (13:26 +0000)] 
Debian fixes

11 years agoQuiet static analysis
Arran Cudbard-Bell [Sun, 17 Nov 2013 13:01:16 +0000 (13:01 +0000)] 
Quiet static analysis

11 years agoWe should probably still make a minimal effort not to leak memory
Arran Cudbard-Bell [Sat, 16 Nov 2013 21:32:43 +0000 (21:32 +0000)] 
We should probably still make a minimal effort not to leak memory

11 years agoSet operator correctly when calling paircompare from radius_evaluate_map
Arran Cudbard-Bell [Sat, 16 Nov 2013 21:22:03 +0000 (21:22 +0000)] 
Set operator correctly when calling paircompare from radius_evaluate_map

11 years agoCopy vp doesn't copy OP
Arran Cudbard-Bell [Fri, 15 Nov 2013 22:09:36 +0000 (22:09 +0000)] 
Copy vp doesn't copy OP

11 years agoFix invalid operator message priority
Arran Cudbard-Bell [Fri, 15 Nov 2013 17:00:55 +0000 (17:00 +0000)] 
Fix invalid operator message priority

Conflicts:
src/main/valuepair.c

11 years agoFix error message to be clearer
Alan T. DeKok [Fri, 15 Nov 2013 15:43:20 +0000 (10:43 -0500)] 
Fix error message to be clearer

11 years agoProtect the server from people breaking the dictionaries
Alan T. DeKok [Fri, 15 Nov 2013 15:40:52 +0000 (10:40 -0500)] 
Protect the server from people breaking the dictionaries

11 years agoDepend on local files
Alan T. DeKok [Fri, 15 Nov 2013 15:27:16 +0000 (10:27 -0500)] 
Depend on local files

11 years agoUse locally linked version of tests.
Alan T. DeKok [Fri, 15 Nov 2013 14:51:17 +0000 (09:51 -0500)] 
Use locally linked version of tests.

Otherwise they pick up the installed libraries, which may be different

11 years agoChange order of arguments for radius_get_vp to be the same as master
Arran Cudbard-Bell [Fri, 15 Nov 2013 12:15:26 +0000 (12:15 +0000)] 
Change order of arguments for radius_get_vp to be the same as master

11 years agoChange how rlm_date operates. Now takes an attribute ref and infers operation from...
Arran Cudbard-Bell [Fri, 15 Nov 2013 11:48:22 +0000 (11:48 +0000)] 
Change how rlm_date operates. Now takes an attribute ref and infers operation from attribute type.

11 years agoDate formatting module
Artur Malinowski [Tue, 5 Nov 2013 16:37:45 +0000 (16:37 +0000)] 
Date formatting module

11 years agoMake error message more descriptive
Alan T. DeKok [Thu, 14 Nov 2013 15:01:31 +0000 (10:01 -0500)] 
Make error message more descriptive

11 years agoDocument references
Alan T. DeKok [Thu, 14 Nov 2013 14:49:21 +0000 (09:49 -0500)] 
Document references

11 years agoUpdate the conffile parser to treat the fields mapped to PW_TYPE_BOOLEAN as bools
Arran Cudbard-Bell [Thu, 14 Nov 2013 14:41:59 +0000 (14:41 +0000)] 
Update the conffile parser to treat the fields mapped to PW_TYPE_BOOLEAN as bools

11 years agoRely on mods-enabled/expr now that we use it
Alan T. DeKok [Thu, 14 Nov 2013 02:03:14 +0000 (21:03 -0500)] 
Rely on mods-enabled/expr now that we use it

11 years agoMore descriptive error messages for casts
Alan T. DeKok [Wed, 13 Nov 2013 22:05:20 +0000 (17:05 -0500)] 
More descriptive error messages for casts

11 years agoOn error, dump the entire debug log
Alan T. DeKok [Wed, 13 Nov 2013 21:54:36 +0000 (16:54 -0500)] 
On error, dump the entire debug log

11 years agoMore tests
Alan T. DeKok [Wed, 13 Nov 2013 21:50:59 +0000 (16:50 -0500)] 
More tests

11 years agoMore tests
Alan T. DeKok [Wed, 13 Nov 2013 21:43:21 +0000 (16:43 -0500)] 
More tests

11 years agoPrint correct output filename
Alan T. DeKok [Wed, 13 Nov 2013 21:20:19 +0000 (16:20 -0500)] 
Print correct output filename

11 years agoAutomatically find all test files
Alan T. DeKok [Wed, 13 Nov 2013 15:44:28 +0000 (10:44 -0500)] 
Automatically find all test files

11 years agoFormatting
Alan T. DeKok [Wed, 13 Nov 2013 15:34:05 +0000 (10:34 -0500)] 
Formatting

11 years agoFormatting
Alan T. DeKok [Wed, 13 Nov 2013 15:32:54 +0000 (10:32 -0500)] 
Formatting

11 years agoUpdates for dependencies
Alan T. DeKok [Wed, 13 Nov 2013 15:32:04 +0000 (10:32 -0500)] 
Updates for dependencies

11 years agoOne more test
Alan T. DeKok [Wed, 13 Nov 2013 14:47:29 +0000 (09:47 -0500)] 
One more test

11 years agoTrying out the new test framework
Arran Cudbard-Bell [Tue, 12 Nov 2013 19:14:24 +0000 (19:14 +0000)] 
Trying out the new test framework

It works!

11 years agoSet a lower bound on delay
Alan T. DeKok [Tue, 12 Nov 2013 20:18:53 +0000 (15:18 -0500)] 
Set a lower bound on delay

11 years agoAdd %{Response-Packet-Type} back in
Arran Cudbard-Bell [Tue, 12 Nov 2013 14:46:42 +0000 (14:46 +0000)] 
Add %{Response-Packet-Type} back in

11 years agoKey should be double quoted
Arran Cudbard-Bell [Mon, 11 Nov 2013 17:31:37 +0000 (12:31 -0500)] 
Key should be double quoted

11 years agoRemove base64 encode alloc and decode alloc, they're pointless when we have the macro...
Arran Cudbard-Bell [Mon, 11 Nov 2013 16:02:18 +0000 (16:02 +0000)] 
Remove base64 encode alloc and decode alloc, they're pointless when we have the macros to calculate the required encoded and decoded buffers.

12 years agoOnly put the clone_mutex in the rlm_perl struct if using ITHREADS
Herwin Weststrate [Fri, 8 Nov 2013 18:51:15 +0000 (19:51 +0100)] 
Only put the clone_mutex in the rlm_perl struct if using ITHREADS

All the code concerning clone_mutex has been wrapped in ifdef-blocks. This way we don't have lingering variables around.

12 years agoMore docs
Alan T. DeKok [Thu, 7 Nov 2013 17:52:01 +0000 (09:52 -0800)] 
More docs

12 years agoAdd example of limit section
Alan T. DeKok [Thu, 7 Nov 2013 17:43:22 +0000 (09:43 -0800)] 
Add example of limit section

copied from "default"

12 years agoAdd the efficient IP vendor dictionary
Arran Cudbard-Bell [Wed, 6 Nov 2013 17:37:06 +0000 (17:37 +0000)] 
Add the efficient IP vendor dictionary

Some guy sent over the ACS definitions, so why not...

12 years agoRename gettime to fr_get_time and move into misc.c
Arran Cudbard-Bell [Tue, 5 Nov 2013 12:07:47 +0000 (12:07 +0000)] 
Rename gettime to fr_get_time and move into misc.c

12 years agoUseful to have this
Alan T. DeKok [Tue, 5 Nov 2013 02:19:21 +0000 (18:19 -0800)] 
Useful to have this

12 years agoAs sent via email
Alan T. DeKok [Tue, 5 Nov 2013 02:18:42 +0000 (18:18 -0800)] 
As sent via email

12 years agoAdded elsif test
Alan T. DeKok [Mon, 4 Nov 2013 21:41:48 +0000 (13:41 -0800)] 
Added elsif test

12 years agoStop trying to encode things if the packet is full
Alan T. DeKok [Mon, 4 Nov 2013 16:52:31 +0000 (08:52 -0800)] 
Stop trying to encode things if the packet is full

12 years agoMerge pull request #459 from jlohiser/v3.0.x_rpm_spec_fixes
Arran Cudbard-Bell [Mon, 4 Nov 2013 13:53:24 +0000 (05:53 -0800)] 
Merge pull request #459 from jlohiser/v3.0.x_rpm_spec_fixes

Updates to redhat/freeradius.spec

12 years agoUse .attrs instead of .txt for request/response definitions
Arran Cudbard-Bell [Sun, 3 Nov 2013 19:28:17 +0000 (19:28 +0000)] 
Use .attrs instead of .txt for request/response definitions

12 years agoFormatting
Arran Cudbard-Bell [Thu, 31 Oct 2013 14:57:03 +0000 (14:57 +0000)] 
Formatting

12 years agoMissed this in previous commits
Alan T. DeKok [Sat, 2 Nov 2013 14:57:52 +0000 (10:57 -0400)] 
Missed this in previous commits

12 years agoClarification
Alan T. DeKok [Sat, 2 Nov 2013 13:52:54 +0000 (09:52 -0400)] 
Clarification

12 years agoMore tests, and updated build rules
Alan T. DeKok [Sat, 2 Nov 2013 13:48:00 +0000 (09:48 -0400)] 
More tests, and updated build rules

12 years agorequire modules to be enabled before running the tests
Alan T. DeKok [Sat, 2 Nov 2013 03:05:56 +0000 (23:05 -0400)] 
require modules to be enabled before running the tests