]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agoDoxygen and pedanticism
Arran Cudbard-Bell [Tue, 7 Nov 2017 18:07:16 +0000 (18:07 +0000)] 
Doxygen and pedanticism

8 years agoMerge pull request #2109 from mattrose/v4.0.x
Alan DeKok [Tue, 7 Nov 2017 21:30:26 +0000 (16:30 -0500)] 
Merge pull request #2109 from mattrose/v4.0.x

fix rpm build errors

8 years agofix rpm build errors 2109/head
Matt Rose [Tue, 7 Nov 2017 21:06:02 +0000 (16:06 -0500)] 
fix rpm build errors

8 years agoUse new value box based function for one letter expansions
Arran Cudbard-Bell [Tue, 7 Nov 2017 17:49:25 +0000 (17:49 +0000)] 
Use new value box based function for one letter expansions

8 years agoAdd inline fr_cursor_free function for removing and freeing the current and subsequen...
Arran Cudbard-Bell [Tue, 7 Nov 2017 17:05:40 +0000 (17:05 +0000)] 
Add inline fr_cursor_free function for removing and freeing the current and subsequent items

8 years agos/XLAT_PERCENT/XLAT_ONE_LETTER/ s/XLAT_MODULE/XLAT_FUNC/
Arran Cudbard-Bell [Tue, 7 Nov 2017 17:14:34 +0000 (17:14 +0000)] 
s/XLAT_PERCENT/XLAT_ONE_LETTER/ s/XLAT_MODULE/XLAT_FUNC/

PERCENT didn't really mean anything.

MODULE is a misnomer, because the majority of the xlat functions are not from modules.

8 years agoRevert "one more fr_event_timer fix"
Alan T. DeKok [Tue, 7 Nov 2017 13:46:40 +0000 (08:46 -0500)] 
Revert "one more fr_event_timer fix"

This reverts commit 33499ae0ecc1314bbaa679d45e3d29918cf208ae.

one more of let's see if this works

8 years agoRevert "if we're leaking in event link ctx, don't link ctx"
Alan T. DeKok [Tue, 7 Nov 2017 13:46:17 +0000 (08:46 -0500)] 
Revert "if we're leaking in event link ctx, don't link ctx"

This reverts commit ba91811370c1f48e3bb2f194734f4cd7047d0f87.

let's see if this works

8 years agoordering issues in free
Alan T. DeKok [Tue, 7 Nov 2017 00:46:27 +0000 (19:46 -0500)] 
ordering issues in free

don't do double frees.  Assign correct pointer to link->self

8 years agoredo link ctx stuff to remove leak
Alan T. DeKok [Mon, 6 Nov 2017 21:16:07 +0000 (16:16 -0500)] 
redo link ctx stuff to remove leak

8 years agoone more fr_event_timer fix
Alan T. DeKok [Mon, 6 Nov 2017 17:53:22 +0000 (12:53 -0500)] 
one more fr_event_timer fix

8 years agoMerge pull request #2108 from pwdng/v4.0.x
Arran Cudbard-Bell [Mon, 6 Nov 2017 15:18:51 +0000 (15:18 +0000)] 
Merge pull request #2108 from pwdng/v4.0.x

Remove execution bit for systemd service conf file.

8 years agoRemove execution bit for systemd service conf file. 2108/head
Philippe Wooding [Mon, 6 Nov 2017 15:15:00 +0000 (16:15 +0100)] 
Remove execution bit for systemd service conf file.
This is to avoid 'Configuration file /usr/lib/systemd/system/radiusd.service is marked executable. Please remove executable permission bits. ' log messages

8 years agoif we're leaking in event link ctx, don't link ctx
Alan T. DeKok [Mon, 6 Nov 2017 14:28:41 +0000 (09:28 -0500)] 
if we're leaking in event link ctx, don't link ctx

8 years agoStupid stats...
Arran Cudbard-Bell [Sun, 5 Nov 2017 16:10:09 +0000 (16:10 +0000)] 
Stupid stats...

8 years agoHelps to link the radius client against the radius library...
Arran Cudbard-Bell [Sun, 5 Nov 2017 16:03:19 +0000 (16:03 +0000)] 
Helps to link the radius client against the radius library...

8 years agoExplicitly link rlm_chap to libfreeradius-radius
Arran Cudbard-Bell [Sun, 5 Nov 2017 15:54:04 +0000 (15:54 +0000)] 
Explicitly link rlm_chap to libfreeradius-radius

8 years agoand another fr_packet_codes reference
Arran Cudbard-Bell [Sun, 5 Nov 2017 15:45:45 +0000 (15:45 +0000)] 
and another fr_packet_codes reference

8 years agoUse the Packet-Type attribute to resolve packet codes to names
Arran Cudbard-Bell [Sun, 5 Nov 2017 15:36:26 +0000 (15:36 +0000)] 
Use the Packet-Type attribute to resolve packet codes to names

8 years agoOnly a dependency if we're building with OpenSSL
Arran Cudbard-Bell [Sun, 5 Nov 2017 15:28:18 +0000 (15:28 +0000)] 
Only a dependency if we're building with OpenSSL

8 years agoFunctions now available in libfreeradius-server
Arran Cudbard-Bell [Sun, 5 Nov 2017 15:22:57 +0000 (15:22 +0000)] 
Functions now available in libfreeradius-server

8 years agoExplicitly link libfreeradius-io to libfreeradius-server
Arran Cudbard-Bell [Sun, 5 Nov 2017 15:14:22 +0000 (15:14 +0000)] 
Explicitly link libfreeradius-io to libfreeradius-server

8 years agoExplicitly link against the RADIUS library
Arran Cudbard-Bell [Sun, 5 Nov 2017 14:46:11 +0000 (14:46 +0000)] 
Explicitly link against the RADIUS library

8 years agoDoxygen
Arran Cudbard-Bell [Sun, 5 Nov 2017 14:33:54 +0000 (14:33 +0000)] 
Doxygen

8 years agoRemove dependencies on main_config from modules.c and move to libfreeradius-server
Arran Cudbard-Bell [Sun, 5 Nov 2017 14:31:16 +0000 (14:31 +0000)] 
Remove dependencies on main_config from modules.c and move to libfreeradius-server

8 years agocorrectly put spaces into dependency_libs
Alan T. DeKok [Sun, 5 Nov 2017 13:13:47 +0000 (08:13 -0500)] 
correctly put spaces into dependency_libs

8 years agonote one more todo
Alan T. DeKok [Sun, 5 Nov 2017 12:29:18 +0000 (07:29 -0500)] 
note one more todo

8 years agocheck cleanup_delay
Alan T. DeKok [Sat, 4 Nov 2017 22:20:00 +0000 (18:20 -0400)] 
check cleanup_delay

8 years agoBuild unlang and virtual servers as part of the server library
Arran Cudbard-Bell [Sun, 5 Nov 2017 13:35:59 +0000 (13:35 +0000)] 
Build unlang and virtual servers as part of the server library

8 years agoRemove dependency on main_config from unlang_compile.c and virtual_servers.c
Arran Cudbard-Bell [Sun, 5 Nov 2017 13:35:28 +0000 (13:35 +0000)] 
Remove dependency on main_config from unlang_compile.c and virtual_servers.c

8 years agoMove tls support functions into their own library
Arran Cudbard-Bell [Sun, 5 Nov 2017 11:29:10 +0000 (11:29 +0000)] 
Move tls support functions into their own library

8 years agoMove max_attributes and tunnel_password_zeros out of the global config
Arran Cudbard-Bell [Sun, 5 Nov 2017 11:28:54 +0000 (11:28 +0000)] 
Move max_attributes and tunnel_password_zeros out of the global config

This means we no longer have to link radiusd to the radius library, which is worth the extra hassle.

8 years agoLimit FreeRADIUS memory to 2G
Arran Cudbard-Bell [Fri, 3 Nov 2017 12:02:11 +0000 (12:02 +0000)] 
Limit FreeRADIUS memory to 2G

8 years agoremove unused assignment
Alan T. DeKok [Sat, 4 Nov 2017 20:15:35 +0000 (16:15 -0400)] 
remove unused assignment

8 years agoclean up conflicting packets
Alan T. DeKok [Sat, 4 Nov 2017 19:01:49 +0000 (15:01 -0400)] 
clean up conflicting packets

i.e. toss the new one, but don't send a reply for the old one.

8 years agojust rely on src_dst information
Alan T. DeKok [Sat, 4 Nov 2017 18:55:39 +0000 (14:55 -0400)] 
just rely on src_dst information

As per commit 293ce7e991843f

we don't need to track ID / code separately

8 years agodistinguish conflicting packets from dups, from new ones
Alan T. DeKok [Sat, 4 Nov 2017 18:52:33 +0000 (14:52 -0400)] 
distinguish conflicting packets from dups, from new ones

8 years agodisallow src_dst_size == 0
Alan T. DeKok [Sat, 4 Nov 2017 18:35:04 +0000 (14:35 -0400)] 
disallow src_dst_size == 0

8 years agoRevert "Build tls functions into libfreeradius-server not radiusd"
Alan T. DeKok [Thu, 2 Nov 2017 16:12:35 +0000 (12:12 -0400)] 
Revert "Build tls functions into libfreeradius-server not radiusd"

This reverts commit 6087844e40959be171062dde235294810954bca1.

this breaks the build.  It needs to be re-done once it builds
correctly.

8 years agoremove unused assignment
Alan T. DeKok [Thu, 2 Nov 2017 15:55:46 +0000 (11:55 -0400)] 
remove unused assignment

8 years agoremove unused struct entries
Alan T. DeKok [Thu, 2 Nov 2017 15:54:21 +0000 (11:54 -0400)] 
remove unused struct entries

8 years agoremove unused struct entries
Alan T. DeKok [Thu, 2 Nov 2017 15:52:55 +0000 (11:52 -0400)] 
remove unused struct entries

8 years agomove declaration to inside ifdef, where it's used
Alan T. DeKok [Thu, 2 Nov 2017 15:51:52 +0000 (11:51 -0400)] 
move declaration to inside ifdef, where it's used

8 years ago%zd -> %zu for size_t
Alan T. DeKok [Thu, 2 Nov 2017 15:50:40 +0000 (11:50 -0400)] 
%zd -> %zu for size_t

8 years agodo run-time check of rbtree_insert()
Alan T. DeKok [Thu, 2 Nov 2017 15:50:05 +0000 (11:50 -0400)] 
do run-time check of rbtree_insert()

8 years agoadd assertions for RBtree checks
Alan T. DeKok [Thu, 2 Nov 2017 15:39:20 +0000 (11:39 -0400)] 
add assertions for RBtree checks

8 years agosrcdst structure is const
Alan T. DeKok [Thu, 2 Nov 2017 14:56:12 +0000 (10:56 -0400)] 
srcdst structure is const

8 years agosrc/dst addresses are const
Alan T. DeKok [Thu, 2 Nov 2017 14:56:02 +0000 (10:56 -0400)] 
src/dst addresses are const

8 years agoMove tls_strerror_printf into its own header file
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:43:07 +0000 (13:43 +0000)] 
Move tls_strerror_printf into its own header file

8 years agoAdd implementation of 3GPP ephemeral identities
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:41:49 +0000 (13:41 +0000)] 
Add implementation of 3GPP ephemeral identities

8 years agoBuild tls functions into libfreeradius-server not radiusd
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:41:08 +0000 (13:41 +0000)] 
Build tls functions into libfreeradius-server not radiusd

8 years agoExpose the arrays used to encoding/decoding base64 directly
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:39:43 +0000 (13:39 +0000)] 
Expose the arrays used to encoding/decoding base64 directly

8 years agoremove unused assignment
Alan T. DeKok [Tue, 31 Oct 2017 20:50:43 +0000 (16:50 -0400)] 
remove unused assignment

8 years agomore preparations for eventual cleanup
Alan T. DeKok [Tue, 31 Oct 2017 20:16:57 +0000 (16:16 -0400)] 
more preparations for eventual cleanup

8 years agodestroy worker where we created it
Alan T. DeKok [Tue, 31 Oct 2017 20:10:36 +0000 (16:10 -0400)] 
destroy worker where we created it

note that we would LIKE to free the event list here, too.
But... the event list is cached in many modules, and therefore
cannot be freed until all of the modules have been freed,
and all of the threads have exited.

8 years agotimer events are parented from the event list
Alan T. DeKok [Tue, 31 Oct 2017 20:05:02 +0000 (16:05 -0400)] 
timer events are parented from the event list

so delete them manually, before calling talloc_free_children(),
otherwise we will try to access children that no longer exist...

8 years agonotes on thread exiting
Alan T. DeKok [Tue, 31 Oct 2017 20:00:34 +0000 (16:00 -0400)] 
notes on thread exiting

8 years agosimplify use of circular list
Alan T. DeKok [Tue, 31 Oct 2017 19:47:10 +0000 (15:47 -0400)] 
simplify use of circular list

8 years agoFix coverity issues CID #1420467, 1420478, 1420469
Alan T. DeKok [Tue, 31 Oct 2017 19:37:53 +0000 (15:37 -0400)] 
Fix coverity issues CID #142046714204781420469

8 years agoadd assertion
Alan T. DeKok [Tue, 31 Oct 2017 19:35:54 +0000 (15:35 -0400)] 
add assertion

8 years agoset entry->reply = NULL as necessary
Alan T. DeKok [Tue, 31 Oct 2017 18:50:33 +0000 (14:50 -0400)] 
set entry->reply = NULL as necessary

8 years agomove polling message to debug3
Alan T. DeKok [Tue, 31 Oct 2017 17:35:32 +0000 (13:35 -0400)] 
move polling message to debug3

it will still wake up and print "ready to receive requests",
but one less debug message is useful

8 years agodo more memory cleanup on exit
Alan T. DeKok [Tue, 31 Oct 2017 17:31:59 +0000 (13:31 -0400)] 
do more memory cleanup on exit

8 years agofree children before the queues they use
Alan T. DeKok [Tue, 31 Oct 2017 17:30:19 +0000 (13:30 -0400)] 
free children before the queues they use

8 years agomove debug message to higher level
Alan T. DeKok [Tue, 31 Oct 2017 16:08:16 +0000 (12:08 -0400)] 
move debug message to higher level

8 years agonote todo
Alan T. DeKok [Tue, 31 Oct 2017 15:46:44 +0000 (11:46 -0400)] 
note todo

8 years agocoalesce stats across multiple threads
Alan T. DeKok [Tue, 31 Oct 2017 14:47:47 +0000 (10:47 -0400)] 
coalesce stats across multiple threads

8 years agoclean up schedule exit code
Alan T. DeKok [Tue, 31 Oct 2017 14:22:06 +0000 (10:22 -0400)] 
clean up schedule exit code

because of back & forth signaling issues, we have to be careful
how we clean up memory.

First, the network is signaled to exit.  When it does, the
scheduler thread sends a semaphore saying so.  That signals the
master thread to call fr_network_destroy(), which in turn signals
the worker threads that it's exiting.

BUT fr_network_destory() doesn't free underlying memory.  Instead,
we have to wait for all of the workers to finish.

The workers are signaled to finish, and again don't call
fr_worker_destroy().  Instead, they don't ACK the channel close,
but do signal the semaphore again.

When all of the workers are done, it's safe to free the network
memory.  And then it's also safe to free the worker memory.

... and then disable most of it, because apparently even
signaling the workers to exit causes problems.

8 years agoallow storing and querying stats by src/dst/global
Alan T. DeKok [Mon, 30 Oct 2017 20:45:01 +0000 (16:45 -0400)] 
allow storing and querying stats by src/dst/global

for now, it's thread-specific.  But it does work.

Next, merge all of the stats from other threads...

8 years agotrack statistics by src/dst IP address, too
Alan T. DeKok [Mon, 30 Oct 2017 19:45:42 +0000 (15:45 -0400)] 
track statistics by src/dst IP address, too

8 years agomerge thread stats into global stats on thread exit
Alan T. DeKok [Mon, 30 Oct 2017 19:12:11 +0000 (15:12 -0400)] 
merge thread stats into global stats on thread exit

8 years agofirst pass at having statistics in v4
Alan T. DeKok [Mon, 30 Oct 2017 18:29:15 +0000 (14:29 -0400)] 
first pass at having statistics in v4

8 years agoRevert "add counters by packet code"
Alan T. DeKok [Fri, 27 Oct 2017 16:14:29 +0000 (12:14 -0400)] 
Revert "add counters by packet code"

This reverts commit 2b75a31a05de9c6160b493dc60fb29ec141ec332.

in the end, this belongs elsewhere

8 years agoremove redundant memset. CID #1271306
Alan T. DeKok [Fri, 27 Oct 2017 13:48:28 +0000 (09:48 -0400)] 
remove redundant memset.  CID #1271306

8 years agoclarify error message
Alan T. DeKok [Fri, 27 Oct 2017 13:02:57 +0000 (09:02 -0400)] 
clarify error message

8 years agoremove unnecessary variable
Alan T. DeKok [Fri, 27 Oct 2017 13:01:24 +0000 (09:01 -0400)] 
remove unnecessary variable

8 years agoMerge pull request #2103 from pwdng/v4.0.x
Alan DeKok [Fri, 27 Oct 2017 10:49:02 +0000 (06:49 -0400)] 
Merge pull request #2103 from pwdng/v4.0.x

Bug fix to get radsniff working

8 years agoBug fix to get radsniff working 2103/head
Philippe Wooding [Fri, 27 Oct 2017 09:15:56 +0000 (11:15 +0200)] 
Bug fix to get radsniff working

8 years agomulti-stage docker builds
Matthew Newton [Thu, 26 Oct 2017 23:38:24 +0000 (00:38 +0100)] 
multi-stage docker builds

8 years agoadd counters by packet code
Alan T. DeKok [Thu, 26 Oct 2017 23:00:19 +0000 (19:00 -0400)] 
add counters by packet code

8 years agofix dictionary error printing
Alan T. DeKok [Thu, 26 Oct 2017 22:47:44 +0000 (18:47 -0400)] 
fix dictionary error printing

dict.c now pushes errors
and the caller now prints them line by line

also double-checked the various messages so that they all make sense...

8 years agouse new RADIUS API
Alan T. DeKok [Thu, 26 Oct 2017 17:24:00 +0000 (13:24 -0400)] 
use new RADIUS API

8 years agoremove unnecessary debug message
Alan T. DeKok [Thu, 26 Oct 2017 17:22:16 +0000 (13:22 -0400)] 
remove unnecessary debug message

8 years agotrack statistics in proto_radius_udp
Alan T. DeKok [Thu, 26 Oct 2017 17:10:03 +0000 (13:10 -0400)] 
track statistics in proto_radius_udp

Only global statistics.  Per-packet statistics should be done
in a module.  Sorry about that...

8 years agorework dockerfiles
Matthew Newton [Thu, 26 Oct 2017 21:28:09 +0000 (22:28 +0100)] 
rework dockerfiles

8 years agomk-build-deps needs pkg called libkqueue-dev
Matthew Newton [Wed, 25 Oct 2017 11:58:47 +0000 (12:58 +0100)] 
mk-build-deps needs pkg called libkqueue-dev

8 years agodebian 9 build dependency
Matthew Newton [Wed, 25 Oct 2017 11:46:32 +0000 (12:46 +0100)] 
debian 9 build dependency

8 years agoforce install in dockerfile
Matthew Newton [Wed, 25 Oct 2017 10:14:04 +0000 (11:14 +0100)] 
force install in dockerfile

8 years agoMerge pull request #2102 from herwinw/rlm_rest_value_box_rest_http_status_code
Arran Cudbard-Bell [Wed, 25 Oct 2017 08:51:45 +0000 (21:51 +1300)] 
Merge pull request #2102 from herwinw/rlm_rest_value_box_rest_http_status_code

Fixed rlm_rest

8 years agoFixed rlm_rest 2102/head
Herwin Weststrate [Wed, 25 Oct 2017 06:21:07 +0000 (08:21 +0200)] 
Fixed rlm_rest

Add an explicit type to the value assigned to REST-HTTP-Status-Code.
Without this, the following error occurs:

CONSISTENCY CHECK FAILED src/lib/util/pair_cursor.c[478]: VALUE_PAIR
attribute 0xb6c639a8 "REST-HTTP-Status-Code" data type (int8) does not
match da type (uint32)

8 years agore-add deleted variable
Alan T. DeKok [Wed, 25 Oct 2017 00:44:02 +0000 (20:44 -0400)] 
re-add deleted variable

8 years agoRevert "remove rad_authenticate()"
Alan T. DeKok [Tue, 24 Oct 2017 20:58:07 +0000 (16:58 -0400)] 
Revert "remove rad_authenticate()"

This reverts commit 8f22ef299bb34a45bc9c10c70c675e21747417ad.

8 years agostart the timer when we get the packet
Alan T. DeKok [Tue, 24 Oct 2017 20:56:50 +0000 (16:56 -0400)] 
start the timer when we get the packet

not when we first send it.  If all of the connections are down,
the timers will never fire.

8 years agodistinguish different kinds of stop messages
Alan T. DeKok [Tue, 24 Oct 2017 20:39:45 +0000 (16:39 -0400)] 
distinguish different kinds of stop messages

because it was already mostly doing that

8 years agomore assertions
Alan T. DeKok [Tue, 24 Oct 2017 20:07:41 +0000 (16:07 -0400)] 
more assertions

8 years agodelete only if they're in the heaps
Alan T. DeKok [Tue, 24 Oct 2017 20:01:20 +0000 (16:01 -0400)] 
delete only if they're in the heaps

8 years agoremove more unused functions
Alan T. DeKok [Tue, 24 Oct 2017 19:26:04 +0000 (15:26 -0400)] 
remove more unused functions

8 years agoremove unused variable
Alan T. DeKok [Tue, 24 Oct 2017 17:50:51 +0000 (13:50 -0400)] 
remove unused variable

8 years agoreset "is_set" on every round through the loop
Alan T. DeKok [Tue, 24 Oct 2017 16:33:54 +0000 (12:33 -0400)] 
reset "is_set" on every round through the loop

8 years agoname2 can be NULL
Alan T. DeKok [Tue, 24 Oct 2017 16:14:31 +0000 (12:14 -0400)] 
name2 can be NULL