]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
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

8 years agoremove rad_authenticate()
Alan T. DeKok [Tue, 24 Oct 2017 16:07:37 +0000 (12:07 -0400)] 
remove rad_authenticate()

and move auth_name to proto_radius, which is now the only
user of it.

8 years agoremove reference to unused function
Alan T. DeKok [Tue, 24 Oct 2017 16:03:36 +0000 (12:03 -0400)] 
remove reference to unused function

8 years agoremove prototypes for functions that no longer exist
Alan T. DeKok [Tue, 24 Oct 2017 15:59:58 +0000 (11:59 -0400)] 
remove prototypes for functions that no longer exist

8 years agoremove more unused files.
Alan T. DeKok [Tue, 24 Oct 2017 15:58:46 +0000 (11:58 -0400)] 
remove more unused files.

If we need the code, it's in the v3 branch

8 years agono more need for rad_accounting() or acct.c
Alan T. DeKok [Tue, 24 Oct 2017 15:57:11 +0000 (11:57 -0400)] 
no more need for rad_accounting() or acct.c

8 years agoname2 may be NULL
Alan T. DeKok [Tue, 24 Oct 2017 15:55:13 +0000 (11:55 -0400)] 
name2 may be NULL

8 years agofr_event_timer_delete() returns int, not bool
Alan T. DeKok [Tue, 24 Oct 2017 15:43:04 +0000 (11:43 -0400)] 
fr_event_timer_delete() returns int, not bool

8 years agodon't delete on conflicting packets
Alan T. DeKok [Tue, 24 Oct 2017 15:15:52 +0000 (11:15 -0400)] 
don't delete on conflicting packets

8 years agoremove WITH_foo hacks
Alan T. DeKok [Tue, 24 Oct 2017 14:58:42 +0000 (10:58 -0400)] 
remove WITH_foo hacks

the base library should be able to do everything

8 years agoavoid zero-change memcpy()
Alan T. DeKok [Tue, 24 Oct 2017 14:55:39 +0000 (10:55 -0400)] 
avoid zero-change memcpy()

8 years agofix wrong assertion
Alan T. DeKok [Tue, 24 Oct 2017 14:43:16 +0000 (10:43 -0400)] 
fix wrong assertion

8 years agoclean up tracking entry in corner cases
Alan T. DeKok [Tue, 24 Oct 2017 13:49:12 +0000 (09:49 -0400)] 
clean up tracking entry in corner cases

8 years agodump use after free
Alan T. DeKok [Tue, 24 Oct 2017 12:37:57 +0000 (08:37 -0400)] 
dump use after free

8 years agoactive (maybe) only when returning
Alan T. DeKok [Mon, 23 Oct 2017 16:38:14 +0000 (12:38 -0400)] 
active (maybe) only when returning

8 years agofd_active() may free the connection <sigh>
Alan T. DeKok [Mon, 23 Oct 2017 16:33:32 +0000 (12:33 -0400)] 
fd_active() may free the connection <sigh>

e.g. if there's an error activating it.

8 years agomore assertions and cleanups
Alan T. DeKok [Mon, 23 Oct 2017 14:41:34 +0000 (10:41 -0400)] 
more assertions and cleanups

8 years agoit's 4.0
Alan T. DeKok [Mon, 23 Oct 2017 14:41:20 +0000 (10:41 -0400)] 
it's 4.0

8 years agoMerge pull request #2100 from jsynack/virtserver-fix
Arran Cudbard-Bell [Mon, 23 Oct 2017 05:19:38 +0000 (18:19 +1300)] 
Merge pull request #2100 from jsynack/virtserver-fix

Virtual server fixup

8 years agoUpdate the example config file for virtual servers. 2100/head
Jason Ackley [Mon, 23 Oct 2017 04:51:39 +0000 (23:51 -0500)] 
Update the example config file for virtual servers.

1. Remove reference to proxy.conf

2. Modernize the server config settings with namespace/listen/transport information.

3. Include enough configuration for a working virtual server for auth/acct on alternate ports.

8 years agoCorrect typo and expand an error message when the virtual server lacks the namespace...
Jason Ackley [Mon, 23 Oct 2017 04:50:48 +0000 (23:50 -0500)] 
Correct typo and expand an error message when the virtual server lacks the namespace setting

8 years agoMerge pull request #2099 from jsynack/utfscrub
Arran Cudbard-Bell [Mon, 23 Oct 2017 02:42:01 +0000 (15:42 +1300)] 
Merge pull request #2099 from jsynack/utfscrub

UTF Scrub

8 years agoReplace a UTF char with the ASCII version 2099/head
Jason Ackley [Mon, 23 Oct 2017 02:31:28 +0000 (21:31 -0500)] 
Replace a UTF char with the ASCII version

8 years agoUpdate information in RADIUS-LDAP-eDirectory
Jason Ackley [Mon, 23 Oct 2017 02:29:48 +0000 (21:29 -0500)] 
Update information in RADIUS-LDAP-eDirectory

1. Remove the registered trademark blip to make this file ASCII-only

2. Update the documentation URL with current version

8 years agoRemove UTF ZWNJ/ZWSP combo in comments to make the file ASCII-pure
Jason Ackley [Mon, 23 Oct 2017 02:29:15 +0000 (21:29 -0500)] 
Remove UTF ZWNJ/ZWSP combo in comments to make the file ASCII-pure

8 years agoReplace UTF char with ASCII version
Jason Ackley [Mon, 23 Oct 2017 02:25:44 +0000 (21:25 -0500)] 
Replace UTF char with ASCII version

8 years agoReplace UTF-8 spacing with ASCII spacing
Jason Ackley [Mon, 23 Oct 2017 02:24:55 +0000 (21:24 -0500)] 
Replace UTF-8 spacing with ASCII spacing

8 years agoRevert "manually set heap_id = -1"
Alan T. DeKok [Sun, 22 Oct 2017 13:21:48 +0000 (09:21 -0400)] 
Revert "manually set heap_id = -1"

This reverts commit bd5402a53b82e8b46ccb69f2073020da6d8dde65.

no longer necessary now tat we've tracked down the real issue

8 years agouse new definition for Original-Packet-Code
Alan T. DeKok [Sun, 22 Oct 2017 13:16:11 +0000 (09:16 -0400)] 
use new definition for Original-Packet-Code

8 years agoclean up, and allow for (some) extended attributes
Alan T. DeKok [Sun, 22 Oct 2017 13:15:58 +0000 (09:15 -0400)] 
clean up, and allow for (some) extended attributes

8 years agoinclude RFC 7930
Alan T. DeKok [Sun, 22 Oct 2017 13:15:47 +0000 (09:15 -0400)] 
include RFC 7930

8 years agodon't re-insert the connection if we receive multiple packets
Alan T. DeKok [Sun, 22 Oct 2017 13:04:47 +0000 (09:04 -0400)] 
don't re-insert the connection if we receive multiple packets

8 years agoupdate assertions
Alan T. DeKok [Sun, 22 Oct 2017 12:46:01 +0000 (08:46 -0400)] 
update assertions

8 years agominor optimizations for status check
Alan T. DeKok [Sun, 22 Oct 2017 12:43:37 +0000 (08:43 -0400)] 
minor optimizations for status check

8 years agoverifications for heaps
Alan T. DeKok [Sat, 21 Oct 2017 12:38:35 +0000 (08:38 -0400)] 
verifications for heaps

8 years agobetter cleanups for connections
Alan T. DeKok [Sat, 21 Oct 2017 12:38:25 +0000 (08:38 -0400)] 
better cleanups for connections

8 years agobetter cleanups for status check packets
Alan T. DeKok [Sat, 21 Oct 2017 12:38:02 +0000 (08:38 -0400)] 
better cleanups for status check packets

8 years agofree only if it exists
Alan T. DeKok [Sat, 21 Oct 2017 12:37:19 +0000 (08:37 -0400)] 
free only if it exists

8 years agoMerge pull request #2098 from jsynack/radsniff-fixup
Arran Cudbard-Bell [Sat, 21 Oct 2017 01:48:35 +0000 (14:48 +1300)] 
Merge pull request #2098 from jsynack/radsniff-fixup

A few adjustments for radsniff

8 years agoMerge pull request #2097 from jsynack/dictfixups
Arran Cudbard-Bell [Sat, 21 Oct 2017 01:44:34 +0000 (14:44 +1300)] 
Merge pull request #2097 from jsynack/dictfixups

Dictionary Fixups