]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Tue, 7 Nov 2017 18:07:16 +0000 (18:07 +0000)]
Doxygen and pedanticism
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
Matt Rose [Tue, 7 Nov 2017 21:06:02 +0000 (16:06 -0500)]
fix rpm build errors
Arran Cudbard-Bell [Tue, 7 Nov 2017 17:49:25 +0000 (17:49 +0000)]
Use new value box based function for one letter expansions
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
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.
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
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
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
Alan T. DeKok [Mon, 6 Nov 2017 21:16:07 +0000 (16:16 -0500)]
redo link ctx stuff to remove leak
Alan T. DeKok [Mon, 6 Nov 2017 17:53:22 +0000 (12:53 -0500)]
one more fr_event_timer fix
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.
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
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
Arran Cudbard-Bell [Sun, 5 Nov 2017 16:10:09 +0000 (16:10 +0000)]
Stupid stats...
Arran Cudbard-Bell [Sun, 5 Nov 2017 16:03:19 +0000 (16:03 +0000)]
Helps to link the radius client against the radius library...
Arran Cudbard-Bell [Sun, 5 Nov 2017 15:54:04 +0000 (15:54 +0000)]
Explicitly link rlm_chap to libfreeradius-radius
Arran Cudbard-Bell [Sun, 5 Nov 2017 15:45:45 +0000 (15:45 +0000)]
and another fr_packet_codes reference
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
Arran Cudbard-Bell [Sun, 5 Nov 2017 15:28:18 +0000 (15:28 +0000)]
Only a dependency if we're building with OpenSSL
Arran Cudbard-Bell [Sun, 5 Nov 2017 15:22:57 +0000 (15:22 +0000)]
Functions now available in libfreeradius-server
Arran Cudbard-Bell [Sun, 5 Nov 2017 15:14:22 +0000 (15:14 +0000)]
Explicitly link libfreeradius-io to libfreeradius-server
Arran Cudbard-Bell [Sun, 5 Nov 2017 14:46:11 +0000 (14:46 +0000)]
Explicitly link against the RADIUS library
Arran Cudbard-Bell [Sun, 5 Nov 2017 14:33:54 +0000 (14:33 +0000)]
Doxygen
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
Alan T. DeKok [Sun, 5 Nov 2017 13:13:47 +0000 (08:13 -0500)]
correctly put spaces into dependency_libs
Alan T. DeKok [Sun, 5 Nov 2017 12:29:18 +0000 (07:29 -0500)]
note one more todo
Alan T. DeKok [Sat, 4 Nov 2017 22:20:00 +0000 (18:20 -0400)]
check cleanup_delay
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
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
Arran Cudbard-Bell [Sun, 5 Nov 2017 11:29:10 +0000 (11:29 +0000)]
Move tls support functions into their own library
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.
Arran Cudbard-Bell [Fri, 3 Nov 2017 12:02:11 +0000 (12:02 +0000)]
Limit FreeRADIUS memory to 2G
Alan T. DeKok [Sat, 4 Nov 2017 20:15:35 +0000 (16:15 -0400)]
remove unused assignment
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.
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
Alan T. DeKok [Sat, 4 Nov 2017 18:52:33 +0000 (14:52 -0400)]
distinguish conflicting packets from dups, from new ones
Alan T. DeKok [Sat, 4 Nov 2017 18:35:04 +0000 (14:35 -0400)]
disallow src_dst_size == 0
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.
Alan T. DeKok [Thu, 2 Nov 2017 15:55:46 +0000 (11:55 -0400)]
remove unused assignment
Alan T. DeKok [Thu, 2 Nov 2017 15:54:21 +0000 (11:54 -0400)]
remove unused struct entries
Alan T. DeKok [Thu, 2 Nov 2017 15:52:55 +0000 (11:52 -0400)]
remove unused struct entries
Alan T. DeKok [Thu, 2 Nov 2017 15:51:52 +0000 (11:51 -0400)]
move declaration to inside ifdef, where it's used
Alan T. DeKok [Thu, 2 Nov 2017 15:50:40 +0000 (11:50 -0400)]
%zd -> %zu for size_t
Alan T. DeKok [Thu, 2 Nov 2017 15:50:05 +0000 (11:50 -0400)]
do run-time check of rbtree_insert()
Alan T. DeKok [Thu, 2 Nov 2017 15:39:20 +0000 (11:39 -0400)]
add assertions for RBtree checks
Alan T. DeKok [Thu, 2 Nov 2017 14:56:12 +0000 (10:56 -0400)]
srcdst structure is const
Alan T. DeKok [Thu, 2 Nov 2017 14:56:02 +0000 (10:56 -0400)]
src/dst addresses are const
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:43:07 +0000 (13:43 +0000)]
Move tls_strerror_printf into its own header file
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:41:49 +0000 (13:41 +0000)]
Add implementation of 3GPP ephemeral identities
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:41:08 +0000 (13:41 +0000)]
Build tls functions into libfreeradius-server not radiusd
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:39:43 +0000 (13:39 +0000)]
Expose the arrays used to encoding/decoding base64 directly
Alan T. DeKok [Tue, 31 Oct 2017 20:50:43 +0000 (16:50 -0400)]
remove unused assignment
Alan T. DeKok [Tue, 31 Oct 2017 20:16:57 +0000 (16:16 -0400)]
more preparations for eventual cleanup
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.
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...
Alan T. DeKok [Tue, 31 Oct 2017 20:00:34 +0000 (16:00 -0400)]
notes on thread exiting
Alan T. DeKok [Tue, 31 Oct 2017 19:47:10 +0000 (15:47 -0400)]
simplify use of circular list
Alan T. DeKok [Tue, 31 Oct 2017 19:37:53 +0000 (15:37 -0400)]
Fix coverity issues CID #
1420467 ,
1420478 ,
1420469
Alan T. DeKok [Tue, 31 Oct 2017 19:35:54 +0000 (15:35 -0400)]
add assertion
Alan T. DeKok [Tue, 31 Oct 2017 18:50:33 +0000 (14:50 -0400)]
set entry->reply = NULL as necessary
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
Alan T. DeKok [Tue, 31 Oct 2017 17:31:59 +0000 (13:31 -0400)]
do more memory cleanup on exit
Alan T. DeKok [Tue, 31 Oct 2017 17:30:19 +0000 (13:30 -0400)]
free children before the queues they use
Alan T. DeKok [Tue, 31 Oct 2017 16:08:16 +0000 (12:08 -0400)]
move debug message to higher level
Alan T. DeKok [Tue, 31 Oct 2017 15:46:44 +0000 (11:46 -0400)]
note todo
Alan T. DeKok [Tue, 31 Oct 2017 14:47:47 +0000 (10:47 -0400)]
coalesce stats across multiple threads
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.
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...
Alan T. DeKok [Mon, 30 Oct 2017 19:45:42 +0000 (15:45 -0400)]
track statistics by src/dst IP address, too
Alan T. DeKok [Mon, 30 Oct 2017 19:12:11 +0000 (15:12 -0400)]
merge thread stats into global stats on thread exit
Alan T. DeKok [Mon, 30 Oct 2017 18:29:15 +0000 (14:29 -0400)]
first pass at having statistics in v4
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
Alan T. DeKok [Fri, 27 Oct 2017 13:48:28 +0000 (09:48 -0400)]
remove redundant memset. CID #
1271306
Alan T. DeKok [Fri, 27 Oct 2017 13:02:57 +0000 (09:02 -0400)]
clarify error message
Alan T. DeKok [Fri, 27 Oct 2017 13:01:24 +0000 (09:01 -0400)]
remove unnecessary variable
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
Philippe Wooding [Fri, 27 Oct 2017 09:15:56 +0000 (11:15 +0200)]
Bug fix to get radsniff working
Matthew Newton [Thu, 26 Oct 2017 23:38:24 +0000 (00:38 +0100)]
multi-stage docker builds
Alan T. DeKok [Thu, 26 Oct 2017 23:00:19 +0000 (19:00 -0400)]
add counters by packet code
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...
Alan T. DeKok [Thu, 26 Oct 2017 17:24:00 +0000 (13:24 -0400)]
use new RADIUS API
Alan T. DeKok [Thu, 26 Oct 2017 17:22:16 +0000 (13:22 -0400)]
remove unnecessary debug message
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...
Matthew Newton [Thu, 26 Oct 2017 21:28:09 +0000 (22:28 +0100)]
rework dockerfiles
Matthew Newton [Wed, 25 Oct 2017 11:58:47 +0000 (12:58 +0100)]
mk-build-deps needs pkg called libkqueue-dev
Matthew Newton [Wed, 25 Oct 2017 11:46:32 +0000 (12:46 +0100)]
debian 9 build dependency
Matthew Newton [Wed, 25 Oct 2017 10:14:04 +0000 (11:14 +0100)]
force install in dockerfile
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
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)
Alan T. DeKok [Wed, 25 Oct 2017 00:44:02 +0000 (20:44 -0400)]
re-add deleted variable
Alan T. DeKok [Tue, 24 Oct 2017 20:58:07 +0000 (16:58 -0400)]
Revert "remove rad_authenticate()"
This reverts commit
8f22ef299bb34a45bc9c10c70c675e21747417ad .
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.
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
Alan T. DeKok [Tue, 24 Oct 2017 20:07:41 +0000 (16:07 -0400)]
more assertions
Alan T. DeKok [Tue, 24 Oct 2017 20:01:20 +0000 (16:01 -0400)]
delete only if they're in the heaps
Alan T. DeKok [Tue, 24 Oct 2017 19:26:04 +0000 (15:26 -0400)]
remove more unused functions
Alan T. DeKok [Tue, 24 Oct 2017 17:50:51 +0000 (13:50 -0400)]
remove unused variable
Alan T. DeKok [Tue, 24 Oct 2017 16:33:54 +0000 (12:33 -0400)]
reset "is_set" on every round through the loop
Alan T. DeKok [Tue, 24 Oct 2017 16:14:31 +0000 (12:14 -0400)]
name2 can be NULL