]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 years agohandle longer CHAP-Password when using debug level 3
Alan T. DeKok [Mon, 24 Sep 2018 23:07:59 +0000 (19:07 -0400)] 
handle longer CHAP-Password when using debug level 3

7 years agomove writable socket stuff to private structure
Alan T. DeKok [Fri, 21 Sep 2018 18:01:55 +0000 (14:01 -0400)] 
move writable socket stuff to private structure

which means we're one step closer to using thread_instance

and we can now remove mod_detach(), as the per-socket stuff
is talloc'd, and we can use a talloc destructor for it

7 years agodetach can only be called for the main instance
Alan T. DeKok [Fri, 21 Sep 2018 17:36:46 +0000 (13:36 -0400)] 
detach can only be called for the main instance

not for child connections

7 years ago"open" shouldn't be called for connections
Alan T. DeKok [Fri, 21 Sep 2018 17:33:56 +0000 (13:33 -0400)] 
"open" shouldn't be called for connections

7 years agomake app_io_instance "const"
Alan T. DeKok [Fri, 21 Sep 2018 17:29:34 +0000 (13:29 -0400)] 
make app_io_instance "const"

in yet another step to making thread-specific data structures

7 years agodon't call detach, the dl APIs take care of that for us
Alan T. DeKok [Fri, 21 Sep 2018 17:27:04 +0000 (13:27 -0400)] 
don't call detach, the dl APIs take care of that for us

7 years agowrite to thread_instance, and then copy it to app_io_instance
Alan T. DeKok [Fri, 21 Sep 2018 17:26:15 +0000 (13:26 -0400)] 
write to thread_instance, and then copy it to app_io_instance

7 years agoRevert "move "free clients" to mod_close(), instead of mod_detach()"
Alan T. DeKok [Fri, 21 Sep 2018 17:21:50 +0000 (13:21 -0400)] 
Revert "move "free clients" to mod_close(), instead of mod_detach()"

This reverts commit a505ccc195fc49847166ad2bf3839e099282944b.

we don't yet have thread-specific data structures for sockets.
so the "alive_clients" are still in the app_io_instance, not the
thread_instance.  Once we have thread data, the alive_clients
can move there, and then be free'd on mod_close()

7 years agodon't bind client tcp sockets
Alan T. DeKok [Fri, 21 Sep 2018 16:09:10 +0000 (12:09 -0400)] 
don't bind client tcp sockets

7 years agouse listener, and not app_io_instance for NAK
Alan T. DeKok [Fri, 21 Sep 2018 15:49:15 +0000 (11:49 -0400)] 
use listener, and not app_io_instance for NAK

7 years agoRevert "start of work to allow workers to do their own IO"
Alan T. DeKok [Fri, 21 Sep 2018 15:02:17 +0000 (11:02 -0400)] 
Revert "start of work to allow workers to do their own IO"

This reverts commit 79c344b9333e8e7c0239e671392be135dd03cf20.

it's better to just add an fr_network_t to the worker thread,
as with single-threaded mode.  Then, have special markers
in the channel so that messages result in API calls, and not
in actual channel messages being sent

7 years agowrite to thread_instance, not app_io_instance
Alan T. DeKok [Fri, 21 Sep 2018 14:51:55 +0000 (10:51 -0400)] 
write to thread_instance, not app_io_instance

in preparation for making app_io_instance "const"

7 years agopass listener, not app_io_instance
Alan T. DeKok [Fri, 21 Sep 2018 14:51:41 +0000 (10:51 -0400)] 
pass listener, not app_io_instance

7 years agodo closing in mod_close(), not mod_detach()
Alan T. DeKok [Fri, 21 Sep 2018 14:49:22 +0000 (10:49 -0400)] 
do closing in mod_close(), not mod_detach()

7 years agoclose things in mod_close(), not mod_detach()
Alan T. DeKok [Fri, 21 Sep 2018 14:47:04 +0000 (10:47 -0400)] 
close things in mod_close(), not mod_detach()

7 years agomove "free clients" to mod_close(), instead of mod_detach()
Alan T. DeKok [Fri, 21 Sep 2018 14:43:08 +0000 (10:43 -0400)] 
move "free clients" to mod_close(), instead of mod_detach()

since the dl framework calls mod_detach, we don't have to do that
for child listeners.

7 years agomove the remainder of the functions to taking fr_listen_t
Alan T. DeKok [Thu, 20 Sep 2018 19:05:47 +0000 (15:05 -0400)] 
move the remainder of the functions to taking fr_listen_t

7 years agorearrange code
Alan T. DeKok [Thu, 20 Sep 2018 18:00:08 +0000 (14:00 -0400)] 
rearrange code

7 years agorevert 8d15eee4 for proto_ldap_sync
Alan T. DeKok [Thu, 20 Sep 2018 17:53:18 +0000 (13:53 -0400)] 
revert 8d15eee4 for proto_ldap_sync

7 years agoadd 'int fd' to listener structure
Alan T. DeKok [Thu, 20 Sep 2018 17:51:19 +0000 (13:51 -0400)] 
add 'int fd' to listener structure

and remove "get_fd" functions and callbacks

7 years agoremove most mod_close as unnecessary
Alan T. DeKok [Thu, 20 Sep 2018 17:11:17 +0000 (13:11 -0400)] 
remove most mod_close as unnecessary

and fix master.c to call close() if there's no app_io->close

7 years agomore fixes for passing the correct parameter
Alan T. DeKok [Thu, 20 Sep 2018 17:05:11 +0000 (13:05 -0400)] 
more fixes for passing the correct parameter

7 years agomore rename 'listen' to 'li', and fix const complaints
Alan T. DeKok [Thu, 20 Sep 2018 17:03:45 +0000 (13:03 -0400)] 
more rename 'listen' to 'li', and fix const complaints

7 years agopass the correct variable over
Alan T. DeKok [Thu, 20 Sep 2018 17:03:15 +0000 (13:03 -0400)] 
pass the correct variable over

7 years agoneed to close this, too
Alan T. DeKok [Thu, 20 Sep 2018 16:49:00 +0000 (12:49 -0400)] 
need to close this, too

7 years agomake mod_close() take fr_listen_t
Alan T. DeKok [Thu, 20 Sep 2018 16:45:52 +0000 (12:45 -0400)] 
make mod_close() take fr_listen_t

7 years agorename variable "listen" to "li"
Alan T. DeKok [Thu, 20 Sep 2018 16:27:56 +0000 (12:27 -0400)] 
rename variable "listen" to "li"

so that it doesn't conflict with the function listen()

7 years agomake mod_open() take fr_listen_t
Alan T. DeKok [Thu, 20 Sep 2018 16:13:45 +0000 (12:13 -0400)] 
make mod_open() take fr_listen_t

7 years agomake fd_set take listener
Alan T. DeKok [Thu, 20 Sep 2018 13:51:37 +0000 (09:51 -0400)] 
make fd_set take listener

7 years agomake mod_fd() take fr_listen_t *
Alan T. DeKok [Thu, 20 Sep 2018 13:27:33 +0000 (09:27 -0400)] 
make mod_fd() take fr_listen_t *

once all of the functions are converted, we can move more
variables to fr_listen_t.  e.g. fd, name, src/dst.

We can also add / use listen->thread_instance in order to
make listen->app_io_instance "const"

7 years agoset thread_instance == app_io_instance for listeners
Alan T. DeKok [Thu, 20 Sep 2018 13:32:12 +0000 (09:32 -0400)] 
set thread_instance == app_io_instance for listeners

so that the new code can use the correct variable name, even tho
they point to the same struct.  We can then make them point to
different structures

7 years agocreate and use child listener
Alan T. DeKok [Wed, 19 Sep 2018 16:22:04 +0000 (12:22 -0400)] 
create and use child listener

with all of the information we need about the socket

7 years agoRevert "add thread_instance to fd()"
Alan T. DeKok [Wed, 19 Sep 2018 15:49:33 +0000 (11:49 -0400)] 
Revert "add thread_instance to fd()"

This reverts commit a2701b977fe1483e22fb36993f7998e2fde15672.

7 years agoour own listen->app is always ourselves
Alan T. DeKok [Wed, 19 Sep 2018 15:48:17 +0000 (11:48 -0400)] 
our own listen->app is always ourselves

7 years agoSwitch rlm_lua to using the thread instance framework Closes #2311
Arran Cudbard-Bell [Thu, 20 Sep 2018 03:48:28 +0000 (11:48 +0800)] 
Switch rlm_lua to using the thread instance framework Closes #2311

7 years agoCheck return code of i2a_ASN1_OBJECT Closes #2310
Arran Cudbard-Bell [Thu, 20 Sep 2018 01:38:22 +0000 (09:38 +0800)] 
Check return code of i2a_ASN1_OBJECT Closes #2310

7 years agoremove extra parameter to "open"
Alan T. DeKok [Wed, 19 Sep 2018 14:48:22 +0000 (10:48 -0400)] 
remove extra parameter to "open"

it turns out we're not going to use it

7 years agosc can't be NULL
Alan T. DeKok [Wed, 19 Sep 2018 14:15:10 +0000 (10:15 -0400)] 
sc can't be NULL

7 years agosimplify the code
Alan T. DeKok [Wed, 19 Sep 2018 14:14:53 +0000 (10:14 -0400)] 
simplify the code

7 years agomove common code to fr_master_io_listen()
Alan T. DeKok [Wed, 19 Sep 2018 14:13:35 +0000 (10:13 -0400)] 
move common code to fr_master_io_listen()

7 years agoadd thread_instance to listen socket
Alan T. DeKok [Wed, 19 Sep 2018 11:44:05 +0000 (07:44 -0400)] 
add thread_instance to listen socket

7 years agodon't build these test programs
Alan T. DeKok [Wed, 19 Sep 2018 11:43:17 +0000 (07:43 -0400)] 
don't build these test programs

they're no longer needed

7 years agoadd thread_instance to fd()
Alan T. DeKok [Wed, 19 Sep 2018 11:40:49 +0000 (07:40 -0400)] 
add thread_instance to fd()

7 years agonotes on which entries are "const"
Alan T. DeKok [Tue, 18 Sep 2018 18:10:39 +0000 (14:10 -0400)] 
notes on which entries are "const"

7 years agocleanups in preparation for multithreaded networking
Alan T. DeKok [Tue, 18 Sep 2018 17:54:44 +0000 (13:54 -0400)] 
cleanups in preparation for multithreaded networking

we can't re-instantiate a module, that's bad.  And, the default
structs for a module should be the ones it's modifying.  the
main config should be "const", and rarely used

7 years agonotes on opening sockets
Alan T. DeKok [Tue, 18 Sep 2018 16:49:59 +0000 (12:49 -0400)] 
notes on opening sockets

7 years agoremoved unused fields
Alan T. DeKok [Tue, 18 Sep 2018 16:23:37 +0000 (12:23 -0400)] 
removed unused fields

7 years agoCheck when allocating memory BIOs closes #2309
Arran Cudbard-Bell [Wed, 19 Sep 2018 13:09:40 +0000 (21:09 +0800)] 
Check when allocating memory BIOs closes #2309

7 years agoWind to the cursor tail to enable freeing at the right point
Arran Cudbard-Bell [Wed, 19 Sep 2018 13:07:28 +0000 (21:07 +0800)] 
Wind to the cursor tail to enable freeing at the right point

7 years agoAdd note on biases
Arran Cudbard-Bell [Wed, 19 Sep 2018 03:51:34 +0000 (11:51 +0800)] 
Add note on biases

7 years agoFix some minor issues with archive.sh
Arran Cudbard-Bell [Wed, 19 Sep 2018 03:18:44 +0000 (11:18 +0800)] 
Fix some minor issues with archive.sh

7 years agoMake Exfile-Name trigger attribute work again
Arran Cudbard-Bell [Mon, 17 Sep 2018 08:02:34 +0000 (16:02 +0800)] 
Make Exfile-Name trigger attribute work again

This has been an issue for a while.  Present in v3.1.x at least...

7 years agocleanups and typos
Alan T. DeKok [Mon, 17 Sep 2018 17:38:53 +0000 (13:38 -0400)] 
cleanups and typos

7 years agoUpdate for ISO dates too
Arran Cudbard-Bell [Mon, 17 Sep 2018 03:59:21 +0000 (11:59 +0800)] 
Update for ISO dates too

7 years agoDefault format should be ISO 8601
Arran Cudbard-Bell [Mon, 17 Sep 2018 03:49:56 +0000 (11:49 +0800)] 
Default format should be ISO 8601

7 years agomove to macros to make typos harder to do, and easier to catch
Alan T. DeKok [Sat, 15 Sep 2018 11:06:14 +0000 (07:06 -0400)] 
move to macros to make typos harder to do, and easier to catch

7 years agoport from v3.0.x
Alan T. DeKok [Sat, 15 Sep 2018 10:57:31 +0000 (06:57 -0400)] 
port from v3.0.x

7 years agocheck for existence of handle. Should fix #2300
Alan T. DeKok [Wed, 12 Sep 2018 11:06:10 +0000 (07:06 -0400)] 
check for existence of handle.  Should fix #2300

7 years agofix layers of un-escaping of strings. Helps with #2299
Alan T. DeKok [Tue, 11 Sep 2018 18:04:53 +0000 (14:04 -0400)] 
fix layers of un-escaping of strings.  Helps with #2299

7 years agodon't over-write existing links
Alan T. DeKok [Tue, 11 Sep 2018 01:38:25 +0000 (21:38 -0400)] 
don't over-write existing links

7 years agoremove unused structure and function
Alan T. DeKok [Mon, 10 Sep 2018 16:45:13 +0000 (12:45 -0400)] 
remove unused structure and function

unlang_resume() now takes care of this

7 years agomore word smithing
Alan T. DeKok [Mon, 10 Sep 2018 11:23:43 +0000 (07:23 -0400)] 
more word smithing

7 years agoremoved 20 year-old text
Alan T. DeKok [Sat, 8 Sep 2018 21:46:10 +0000 (17:46 -0400)] 
removed 20 year-old text

7 years agothe file has moved
Alan T. DeKok [Sat, 8 Sep 2018 21:15:30 +0000 (17:15 -0400)] 
the file has moved

7 years agolink to eap module config when we see `eap`
Alan T. DeKok [Sat, 8 Sep 2018 19:01:27 +0000 (15:01 -0400)] 
link to eap module config when we see `eap`

7 years agotypos
Alan T. DeKok [Sat, 8 Sep 2018 18:50:37 +0000 (14:50 -0400)] 
typos

7 years agoupdate API here, too
Alan T. DeKok [Sat, 8 Sep 2018 18:48:31 +0000 (14:48 -0400)] 
update API here, too

7 years agocleanups and point directories to README files
Alan T. DeKok [Sat, 8 Sep 2018 14:00:46 +0000 (10:00 -0400)] 
cleanups and point directories to README files

7 years agoconvert to markdown
Alan T. DeKok [Sat, 8 Sep 2018 13:59:55 +0000 (09:59 -0400)] 
convert to markdown

7 years agorename for new things
Alan T. DeKok [Sat, 8 Sep 2018 13:57:44 +0000 (09:57 -0400)] 
rename for new things

7 years agodon't do strlen(secret)
Alan T. DeKok [Sat, 8 Sep 2018 13:46:57 +0000 (09:46 -0400)] 
don't do strlen(secret)

7 years agodon't do strlen() on secret
Alan T. DeKok [Sat, 8 Sep 2018 13:43:58 +0000 (09:43 -0400)] 
don't do strlen() on secret

7 years agoallow `secret = 0xabcdef` for binary shared secrets
Alan T. DeKok [Sat, 8 Sep 2018 13:32:04 +0000 (09:32 -0400)] 
allow `secret = 0xabcdef` for binary shared secrets

because octal escaping is so 1970s

7 years agoadd rules to convert markdown to Asciidoc
Alan T. DeKok [Fri, 7 Sep 2018 21:43:27 +0000 (17:43 -0400)] 
add rules to convert markdown to Asciidoc

so that we have a consisten look and feel

7 years agostart of work to allow workers to do their own IO
Alan T. DeKok [Fri, 7 Sep 2018 16:02:37 +0000 (12:02 -0400)] 
start of work to allow workers to do their own IO

7 years agoclarify message
Alan T. DeKok [Fri, 7 Sep 2018 16:02:17 +0000 (12:02 -0400)] 
clarify message

7 years agouse -a option for conf2adoc
Alan T. DeKok [Fri, 7 Sep 2018 15:06:46 +0000 (11:06 -0400)] 
use -a option for conf2adoc

7 years agoadd -a option for root directory
Alan T. DeKok [Fri, 7 Sep 2018 15:06:20 +0000 (11:06 -0400)] 
add -a option for root directory

and terminate raw text at the end of the file

7 years agoMerge pull request #2290 from nchaigne/master-201808-unxlat
Alan DeKok [Thu, 6 Sep 2018 18:42:05 +0000 (14:42 -0400)] 
Merge pull request #2290 from nchaigne/master-201808-unxlat

Better "un-xlating" of value pairs where xlat is not supported

7 years agomake rule to convert markdown files in the config to PDF
Matthew Newton [Tue, 4 Sep 2018 23:39:09 +0000 (00:39 +0100)] 
make rule to convert markdown files in the config to PDF

7 years agoUpdate all the top-level files in raddb for asciidoc.
Matthew Newton [Tue, 4 Sep 2018 23:37:33 +0000 (00:37 +0100)] 
Update all the top-level files in raddb for asciidoc.

Except radiusd.conf.in. That can wait for another day...

7 years agoConvert asciidoc files to pretty PDF
Matthew Newton [Tue, 4 Sep 2018 20:35:14 +0000 (21:35 +0100)] 
Convert asciidoc files to pretty PDF

Needs at least asciidoctor, pandoc and xelatex installed.

7 years agomore asciidoc updates to clients.conf
Matthew Newton [Tue, 4 Sep 2018 18:36:41 +0000 (19:36 +0100)] 
more asciidoc updates to clients.conf

7 years agoclients.conf: the options have gone, so the note should too
Matthew Newton [Tue, 4 Sep 2018 18:33:28 +0000 (19:33 +0100)] 
clients.conf: the options have gone, so the note should too

7 years agomove "add user name" to "send Access-Accept"
Alan T. DeKok [Tue, 4 Sep 2018 14:05:20 +0000 (10:05 -0400)] 
move "add user name" to "send Access-Accept"

instead of in the "authenticate" phase

7 years agomore cleanups and asciidoc
Alan T. DeKok [Tue, 4 Sep 2018 12:23:52 +0000 (08:23 -0400)] 
more cleanups and asciidoc

7 years agoupdate documentation
Alan T. DeKok [Tue, 4 Sep 2018 12:22:40 +0000 (08:22 -0400)] 
update documentation

7 years agoremove old config
Alan T. DeKok [Tue, 4 Sep 2018 12:12:16 +0000 (08:12 -0400)] 
remove old config

7 years agomore "process file" code to subroutine
Alan T. DeKok [Sat, 1 Sep 2018 17:22:11 +0000 (13:22 -0400)] 
more "process file" code to subroutine

in preparation for having it handle multiple output files

7 years agolist non-VLAN rule first
Alan T. DeKok [Sat, 1 Sep 2018 13:53:07 +0000 (09:53 -0400)] 
list non-VLAN rule first

otherwise it doesn't match

7 years agoadd "send_buff" config.
Alan T. DeKok [Fri, 31 Aug 2018 19:23:03 +0000 (15:23 -0400)] 
add "send_buff" config.

And it helps to set the socket option for both of them.

7 years agois_dup is set false by network side
Alan T. DeKok [Fri, 31 Aug 2018 18:12:43 +0000 (14:12 -0400)] 
is_dup is set false by network side

and only really ever set to "true" by io/master.c

7 years agotypo
Alan T. DeKok [Fri, 31 Aug 2018 15:30:47 +0000 (11:30 -0400)] 
typo

7 years agomatch commas and periods after words
Alan T. DeKok [Fri, 31 Aug 2018 15:06:22 +0000 (11:06 -0400)] 
match commas and periods after words

7 years agomore asciidoc conversion
Alan T. DeKok [Fri, 31 Aug 2018 14:59:50 +0000 (10:59 -0400)] 
more asciidoc conversion

7 years agoadd cross links to the output
Alan T. DeKok [Fri, 31 Aug 2018 14:59:27 +0000 (10:59 -0400)] 
add cross links to the output

7 years agomore script to sub directory
Alan T. DeKok [Fri, 31 Aug 2018 14:29:35 +0000 (10:29 -0400)] 
more script to sub directory

7 years agoupdated with more asciidoc formatting
Alan T. DeKok [Thu, 30 Aug 2018 17:06:11 +0000 (13:06 -0400)] 
updated with more asciidoc formatting

7 years agoMerge pull request #2294 from alagoutte/fix_tls13_version
Alan DeKok [Thu, 30 Aug 2018 17:21:18 +0000 (13:21 -0400)] 
Merge pull request #2294 from alagoutte/fix_tls13_version

fix typo about ifdef for TLS 1.3 Version

7 years agofix typo about ifdef for TLS 1.3 Version 2294/head
Alexis La Goutte [Thu, 30 Aug 2018 17:14:28 +0000 (17:14 +0000)] 
fix typo about ifdef for TLS 1.3 Version