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

7 years agonotes on ldapsearch
Alan T. DeKok [Thu, 30 Aug 2018 02:10:39 +0000 (22:10 -0400)] 
notes on ldapsearch

7 years agoUpdate comments in LDAP module config (mainly for AD)
Matthew Newton [Thu, 30 Aug 2018 16:11:28 +0000 (17:11 +0100)] 
Update comments in LDAP module config (mainly for AD)

7 years agoclean up and simplify
Alan T. DeKok [Thu, 30 Aug 2018 15:53:56 +0000 (11:53 -0400)] 
clean up and simplify

so that it looks for commented out config sections, and prints
them as commented out raw text.

7 years agouse correct name for attribute
Alan T. DeKok [Wed, 29 Aug 2018 18:42:52 +0000 (14:42 -0400)] 
use correct name for attribute

7 years agocheck log_auth parameter
Alan T. DeKok [Tue, 28 Aug 2018 19:40:00 +0000 (15:40 -0400)] 
check log_auth parameter

7 years agomove macros to common header file
Alan T. DeKok [Tue, 28 Aug 2018 19:32:34 +0000 (15:32 -0400)] 
move macros to common header file

7 years agoset TLS-Session-Version and TLS-Session-Cipher-Suite
Alan T. DeKok [Tue, 28 Aug 2018 18:27:49 +0000 (14:27 -0400)] 
set TLS-Session-Version and TLS-Session-Cipher-Suite

as per similar code in v3

7 years agoclean up debug messages
Alan T. DeKok [Sat, 25 Aug 2018 20:14:27 +0000 (16:14 -0400)] 
clean up debug messages

7 years agotypo
Alan T. DeKok [Sat, 25 Aug 2018 12:26:58 +0000 (08:26 -0400)] 
typo

7 years agoNeed the hash functions in the dictionary...
Arran Cudbard-Bell [Fri, 24 Aug 2018 23:11:03 +0000 (19:11 -0400)] 
Need the hash functions in the dictionary...

7 years agoBetter "un-xlating" of value pairs where xlat is not supported 2290/head
nchaigne [Fri, 24 Aug 2018 15:33:14 +0000 (17:33 +0200)] 
Better "un-xlating" of value pairs where xlat is not supported

All kind of value pairs attributes can be VT_XLAT when read from input. We cannot assume they are strings or octets.
Better fail explicitly if the conversion is not possible.

For example, we will have:

dhcpclient: Invalid integer value "%{something}"

I fixed this issue in dhcpclient, radclient, and radsniff.

In addition, I corrected inaccurate comments in value.c about formats.

7 years agomove out of ifdef
Alan T. DeKok [Fri, 24 Aug 2018 12:09:58 +0000 (08:09 -0400)] 
move out of ifdef

7 years agouse real paths
Alan T. DeKok [Wed, 22 Aug 2018 16:37:02 +0000 (12:37 -0400)] 
use real paths

$(DIR) is relative (or absolute) randomly, depending on GNU make

7 years agoTypo
Arran Cudbard-Bell [Wed, 22 Aug 2018 16:09:38 +0000 (12:09 -0400)] 
Typo

7 years agoMerge pull request #2279 from mjducharme/master
Alan DeKok [Tue, 21 Aug 2018 12:24:53 +0000 (08:24 -0400)] 
Merge pull request #2279 from mjducharme/master

Added support for IPv6 RADIUS accounting in SQL - 4.0.x

7 years agoMerge pull request #2281 from lemenkov/dict_fixes
Alan DeKok [Tue, 21 Aug 2018 12:24:29 +0000 (08:24 -0400)] 
Merge pull request #2281 from lemenkov/dict_fixes

Several small dictionary fixes

7 years agoProper letter case 2281/head
Peter Lemenkov [Sun, 19 Aug 2018 18:44:06 +0000 (20:44 +0200)] 
Proper letter case

IP-TOS-Field was renamed to IP-Tos-Field in commit
c6670b1ac3e137df8f0af47103a82d1a575330f3. Let's rename it back to avoid
any confusion.

Similar changes for 3GPP-RAT-Type in dictionary.3gpp and for
Unisphere-PPP-Protocol in dictionary.unisphere.

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
7 years agoValues should go after the attr declaration
Peter Lemenkov [Sun, 19 Aug 2018 18:27:43 +0000 (20:27 +0200)] 
Values should go after the attr declaration

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
7 years agoLooks like this attribute should be 70
Peter Lemenkov [Sun, 19 Aug 2018 17:37:08 +0000 (19:37 +0200)] 
Looks like this attribute should be 70

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
7 years agoRemove duplicated attribute definitions
Peter Lemenkov [Sun, 19 Aug 2018 17:36:47 +0000 (19:36 +0200)] 
Remove duplicated attribute definitions

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
7 years agoAdded support for IPv6 RADIUS accounting in SQL 2279/head
Michael Ducharme [Fri, 17 Aug 2018 23:09:37 +0000 (16:09 -0700)] 
Added support for IPv6 RADIUS accounting in SQL

7 years agouse new HEADERS rule for installing headers
Alan T. DeKok [Fri, 17 Aug 2018 16:26:31 +0000 (12:26 -0400)] 
use new HEADERS rule for installing headers

which (for now) finds all *.h files instead of being selective.
So if there's an extra one around, the build may break.

We can always fix that later

7 years agoprint out the directory, too
Alan T. DeKok [Fri, 17 Aug 2018 16:26:09 +0000 (12:26 -0400)] 
print out the directory, too

7 years agobetter way to install headers
Alan T. DeKok [Fri, 17 Aug 2018 16:08:50 +0000 (12:08 -0400)] 
better way to install headers

7 years agouse new ALL_HEADERS rule for installing headers
Alan T. DeKok [Fri, 17 Aug 2018 15:52:37 +0000 (11:52 -0400)] 
use new ALL_HEADERS rule for installing headers

7 years agonew ADD_INSTALL_RULE.h
Alan T. DeKok [Fri, 17 Aug 2018 15:35:24 +0000 (11:35 -0400)] 
new ADD_INSTALL_RULE.h

for installing header files