]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agodbuff: Add support for copying from dbuff in fr_dbuff_memcpy_in
Arran Cudbard-Bell [Mon, 13 Jul 2020 18:57:11 +0000 (11:57 -0700)] 
dbuff: Add support for copying from dbuff in fr_dbuff_memcpy_in

6 years agodbuff: Add functions to perform partial copies into a dbuff
Arran Cudbard-Bell [Mon, 13 Jul 2020 17:57:11 +0000 (10:57 -0700)] 
dbuff: Add functions to perform partial copies into a dbuff

6 years agouse names from dictionary attributes instead of hard-coded names
Alan T. DeKok [Fri, 10 Jul 2020 14:12:04 +0000 (10:12 -0400)] 
use names from dictionary attributes instead of hard-coded names

6 years agoword smithing
Alan T. DeKok [Tue, 7 Jul 2020 11:31:48 +0000 (07:31 -0400)] 
word smithing

6 years agosbuff: Disallow look behind for sbuffs
Arran Cudbard-Bell [Fri, 3 Jul 2020 01:24:11 +0000 (20:24 -0500)] 
sbuff: Disallow look behind for sbuffs

6 years agodbuff: Disallow look behind for duplicated dbuffs
Arran Cudbard-Bell [Fri, 3 Jul 2020 01:17:12 +0000 (20:17 -0500)] 
dbuff: Disallow look behind for duplicated dbuffs

6 years agoFix macro name
Arran Cudbard-Bell [Wed, 1 Jul 2020 21:29:43 +0000 (16:29 -0500)] 
Fix macro name

6 years agoFix comments related to sqlippool
Terry Burton [Thu, 2 Jul 2020 14:20:58 +0000 (15:20 +0100)] 
Fix comments related to sqlippool

Align with changes previous applied to v3:

c388934758640bf6708f2b489f48218080212a0b
81cf0fb15e3c734fb029d355031c5fea62959e24

6 years agoPerl tests, including tests for unknown attributes
Alan T. DeKok [Thu, 2 Jul 2020 11:38:45 +0000 (07:38 -0400)] 
Perl tests, including tests for unknown attributes

6 years agoensure that vp->data is properly initialized for unknown attrs
Alan T. DeKok [Thu, 2 Jul 2020 11:38:24 +0000 (07:38 -0400)] 
ensure that vp->data is properly initialized for unknown attrs

6 years agoRebuild libcurl configure script
Arran Cudbard-Bell [Wed, 1 Jul 2020 19:08:52 +0000 (14:08 -0500)] 
Rebuild libcurl configure script

6 years agocurl version update (#3510)
Stephen Blackwell [Wed, 1 Jul 2020 19:04:54 +0000 (15:04 -0400)] 
curl version update (#3510)

6 years agowhen killing, use -9 instead of -TERM
Alan T. DeKok [Mon, 29 Jun 2020 20:33:52 +0000 (16:33 -0400)] 
when killing, use -9 instead of -TERM

and clean up the PID files

6 years agolet's signal the network thread to exit
Alan T. DeKok [Mon, 29 Jun 2020 20:32:22 +0000 (16:32 -0400)] 
let's signal the network thread to exit

6 years agoadd imap documentation
Alan T. DeKok [Mon, 29 Jun 2020 18:47:56 +0000 (14:47 -0400)] 
add imap documentation

6 years agodon't assert ==X and then set it to X on the next line
Alan T. DeKok [Mon, 29 Jun 2020 14:29:56 +0000 (10:29 -0400)] 
don't assert ==X and then set it to X on the next line

the assertion seems rather wrong, and causes the server to die
when an unknown CA is used.  That seems bad.

6 years agoallow for multiple network threads
Alan T. DeKok [Mon, 29 Jun 2020 13:11:23 +0000 (09:11 -0400)] 
allow for multiple network threads

for now, only one is used.

We should probably move the network / worker lists from dlist
to just simple arrays.  There usually won't be more than 64 or so,
so arrays are simpler.  They will likely also let us choose random
network threads more easily.

6 years agomake it a real bit field
Alan T. DeKok [Mon, 29 Jun 2020 12:27:12 +0000 (08:27 -0400)] 
make it a real bit field

6 years agowhitespace
Arran Cudbard-Bell [Mon, 29 Jun 2020 04:33:04 +0000 (23:33 -0500)] 
whitespace

6 years agosbuff: add fr_sbuff_next_if_strncase
Arran Cudbard-Bell [Mon, 29 Jun 2020 04:32:50 +0000 (23:32 -0500)] 
sbuff: add fr_sbuff_next_if_strncase

6 years agotable: Fix invalid table match for table_ordered_value_by_longest_prefix
Arran Cudbard-Bell [Mon, 29 Jun 2020 03:36:13 +0000 (22:36 -0500)] 
table: Fix invalid table match for table_ordered_value_by_longest_prefix

6 years agoUpdate required curl function
Arran Cudbard-Bell [Mon, 29 Jun 2020 02:34:00 +0000 (21:34 -0500)] 
Update required curl function

6 years agosbuff: Fix various issues with integer parsing
Arran Cudbard-Bell [Sun, 28 Jun 2020 21:33:44 +0000 (16:33 -0500)] 
sbuff: Fix various issues with integer parsing

6 years agocond: Add debug function for conditions
Arran Cudbard-Bell [Sun, 28 Jun 2020 19:19:44 +0000 (14:19 -0500)] 
cond: Add debug function for conditions

6 years agoconst: More checks
Arran Cudbard-Bell [Sun, 28 Jun 2020 19:17:17 +0000 (14:17 -0500)] 
const: More checks

6 years agosbuff: Add is allowed function
Arran Cudbard-Bell [Sun, 28 Jun 2020 19:16:23 +0000 (14:16 -0500)] 
sbuff: Add is allowed function

6 years agosbuff: Fix advance on integer parsing
Arran Cudbard-Bell [Sun, 28 Jun 2020 19:16:05 +0000 (14:16 -0500)] 
sbuff: Fix advance on integer parsing

6 years agoconst screwup protection
Arran Cudbard-Bell [Sun, 28 Jun 2020 03:19:50 +0000 (22:19 -0500)] 
const screwup protection

6 years agotable: Always set match_len if requested
Arran Cudbard-Bell [Sun, 28 Jun 2020 03:09:37 +0000 (22:09 -0500)] 
table: Always set match_len if requested

6 years agocurl: Remove redundant version checks
Arran Cudbard-Bell [Sun, 28 Jun 2020 00:13:12 +0000 (19:13 -0500)] 
curl: Remove redundant version checks

6 years agoAlways use CURLOPT_DEFAULT_PROTOCOL
Arran Cudbard-Bell [Sat, 27 Jun 2020 23:42:14 +0000 (18:42 -0500)] 
Always use CURLOPT_DEFAULT_PROTOCOL

6 years agocurl: Bump minimum version to 7.45.0 as we need CURLOPT_DEFAULT_PROTOCOL
Arran Cudbard-Bell [Sat, 27 Jun 2020 23:24:54 +0000 (18:24 -0500)] 
curl: Bump minimum version to 7.45.0 as we need CURLOPT_DEFAULT_PROTOCOL

6 years agotmpl: Print tmpl information at debug level 3 in unit_test_attribute
Arran Cudbard-Bell [Sat, 27 Jun 2020 22:41:48 +0000 (17:41 -0500)] 
tmpl: Print tmpl information at debug level 3 in unit_test_attribute

6 years agoTypo
Arran Cudbard-Bell [Sat, 27 Jun 2020 21:41:03 +0000 (16:41 -0500)] 
Typo

6 years agotmpl: Print the request refs too in debug output
Arran Cudbard-Bell [Sat, 27 Jun 2020 21:35:09 +0000 (16:35 -0500)] 
tmpl: Print the request refs too in debug output

6 years agoAll tmpls should pre-allocate enough memory for one request ref and one attr ref
Arran Cudbard-Bell [Sat, 27 Jun 2020 21:34:55 +0000 (16:34 -0500)] 
All tmpls should pre-allocate enough memory for one request ref and one attr ref

Because they'll always have at least one of both

6 years agoCURLOPT_DEFAULT_PROTOCOL didn't always exist
Alan T. DeKok [Sat, 27 Jun 2020 20:10:39 +0000 (16:10 -0400)] 
CURLOPT_DEFAULT_PROTOCOL didn't always exist

6 years agowhitespace
Alan T. DeKok [Fri, 26 Jun 2020 14:06:22 +0000 (10:06 -0400)] 
whitespace

6 years agore-built
Alan T. DeKok [Fri, 26 Jun 2020 14:05:54 +0000 (10:05 -0400)] 
re-built

6 years agosbuff: Remove duplication function, add accessors, fix table_value_by_longest_prefix
Arran Cudbard-Bell [Fri, 26 Jun 2020 00:25:26 +0000 (19:25 -0500)] 
sbuff: Remove duplication function, add accessors, fix table_value_by_longest_prefix

6 years agodict: Expose unknown_attr_afrom_num
Arran Cudbard-Bell [Fri, 26 Jun 2020 00:24:47 +0000 (19:24 -0500)] 
dict: Expose unknown_attr_afrom_num

6 years agodlist: Add functions to pop or free dlist head/tail
Arran Cudbard-Bell [Fri, 26 Jun 2020 00:24:23 +0000 (19:24 -0500)] 
dlist: Add functions to pop or free dlist head/tail

6 years agoNo longer used
Arran Cudbard-Bell [Thu, 25 Jun 2020 23:24:44 +0000 (18:24 -0500)] 
No longer used

6 years agoWhitespace fixes
Arran Cudbard-Bell [Thu, 25 Jun 2020 23:22:56 +0000 (18:22 -0500)] 
Whitespace fixes

6 years agoDisable the bin tests until they're fixed to emit output that allows the binaries...
Arran Cudbard-Bell [Thu, 25 Jun 2020 23:17:59 +0000 (18:17 -0500)] 
Disable the bin tests until they're fixed to emit output that allows the binaries to be run under a debugger

6 years agorlm_winbind: Fix missing mctx->instance (#3509)
Arran Cudbard-Bell [Thu, 25 Jun 2020 21:09:57 +0000 (16:09 -0500)] 
rlm_winbind: Fix missing mctx->instance (#3509)

Co-authored-by: Jorge Pereira <jpereiran@gmail.com>
6 years agodon't have authenticate modules define Auth-Type = foo
Alan T. DeKok [Thu, 25 Jun 2020 13:25:11 +0000 (09:25 -0400)] 
don't have authenticate modules define Auth-Type = foo

instead of defining it in the module bootstrap phase, the
virtual server code should define it when it parses the
various "authenticate" sections.

The modules should then check for it in their instantiate and
run-time sections.  And complain if "Auth-type foo" isn't set

6 years agop is uint8_t, and we're operating on uint16_t, so it goes += 2
Alan T. DeKok [Wed, 24 Jun 2020 21:05:14 +0000 (17:05 -0400)] 
p is uint8_t, and we're operating on uint16_t, so it goes += 2

6 years agosbuff: Add taloc version of bstrncpy functions
Arran Cudbard-Bell [Thu, 25 Jun 2020 02:58:20 +0000 (21:58 -0500)] 
sbuff: Add taloc version of bstrncpy functions

6 years agosbuff: Add additional macros and fix fr_sbuff_parse
Arran Cudbard-Bell [Thu, 25 Jun 2020 01:49:11 +0000 (20:49 -0500)] 
sbuff: Add additional macros and fix fr_sbuff_parse

6 years agomore missed rlm_imap constifications
Arran Cudbard-Bell [Thu, 25 Jun 2020 01:07:07 +0000 (20:07 -0500)] 
more missed rlm_imap constifications

6 years agoand another one
Arran Cudbard-Bell [Wed, 24 Jun 2020 22:00:39 +0000 (17:00 -0500)] 
and another one

6 years agoand some more...
Arran Cudbard-Bell [Wed, 24 Jun 2020 21:45:23 +0000 (16:45 -0500)] 
and some more...

6 years agoFix more const issues
Arran Cudbard-Bell [Wed, 24 Jun 2020 21:22:17 +0000 (16:22 -0500)] 
Fix more const issues

6 years agoFix issue with curl option macros
Arran Cudbard-Bell [Wed, 24 Jun 2020 21:11:48 +0000 (16:11 -0500)] 
Fix issue with curl option macros

6 years agoUnconst trigger
Arran Cudbard-Bell [Wed, 24 Jun 2020 21:02:24 +0000 (16:02 -0500)] 
Unconst trigger

6 years agoAdd module_ctx_t to make it easier to add per-call data in future
Arran Cudbard-Bell [Wed, 24 Jun 2020 20:51:43 +0000 (15:51 -0500)] 
Add module_ctx_t to make it easier to add per-call data in future

6 years agoneed to increment!
Arran Cudbard-Bell [Wed, 24 Jun 2020 13:59:42 +0000 (08:59 -0500)] 
need to increment!

6 years agoUse talloc_get_type_abort_const to check memory validity on instance data
Arran Cudbard-Bell [Wed, 24 Jun 2020 01:29:50 +0000 (20:29 -0500)] 
Use talloc_get_type_abort_const to check memory validity on instance data

6 years agoadded "touch" for broken systems
Alan T. DeKok [Wed, 24 Jun 2020 13:26:14 +0000 (09:26 -0400)] 
added "touch" for broken systems

6 years agoskip imap for non-travis builds
Alan T. DeKok [Tue, 23 Jun 2020 16:45:01 +0000 (12:45 -0400)] 
skip imap for non-travis builds

6 years agoGCC is too stupid to realise that a pointer into an aligned struct cannot result...
Arran Cudbard-Bell [Tue, 23 Jun 2020 22:27:40 +0000 (17:27 -0500)] 
GCC is too stupid to realise that a pointer into an aligned struct cannot result into unaligned accesses

Hopefully it's smart enough to optimise away the memcpy.

6 years agoQuiet GCC's alignment warnings
Arran Cudbard-Bell [Tue, 23 Jun 2020 22:09:39 +0000 (17:09 -0500)] 
Quiet GCC's alignment warnings

6 years agoDrop "rad" in module.h
Arran Cudbard-Bell [Tue, 23 Jun 2020 18:15:32 +0000 (13:15 -0500)] 
Drop "rad" in module.h

6 years agoBump GCC to GCC 10
Arran Cudbard-Bell [Tue, 23 Jun 2020 20:57:25 +0000 (15:57 -0500)] 
Bump GCC to GCC 10

6 years agoMore cleanups...
Arran Cudbard-Bell [Tue, 23 Jun 2020 14:41:58 +0000 (09:41 -0500)] 
More cleanups...

# Conflicts:
# src/modules/rlm_imap/rlm_imap.c

6 years agomore cleanups
Alan T. DeKok [Mon, 22 Jun 2020 23:05:36 +0000 (19:05 -0400)] 
more cleanups

timeouts are 1s, not 1000 ms.

change configuration to plain "uri", instead of "imap_uri".
We already know that this is the imap module.

Document that using `pop3://` in the URI might work, too

add the auto-converted asciidoc documentation, and link it into
the navbar

6 years agotypo
Alan T. DeKok [Mon, 22 Jun 2020 23:04:36 +0000 (19:04 -0400)] 
typo

6 years agothis should not have been committed
Alan T. DeKok [Mon, 22 Jun 2020 22:57:12 +0000 (18:57 -0400)] 
this should not have been committed

6 years agocleanups and formatting.
Alan T. DeKok [Mon, 22 Jun 2020 20:15:30 +0000 (16:15 -0400)] 
cleanups and formatting.

We are extremely particular about code formatting.  All of the
code in the server has a consistent "look and feel".

Remove mod_authorize(), which sets `Auth-Type := imap`.  That
setting isn't needed.  Only pap / chap / ms-chap / eap do that,
and then only because they look for (and process) authentication
protocols.

back-end systems such as ldap, sql, imap, etc. shouldn't set
`Auth-Type := self`

6 years agoconvert time_delta to milliseconds for curl
Alan T. DeKok [Mon, 22 Jun 2020 20:11:46 +0000 (16:11 -0400)] 
convert time_delta to milliseconds for curl

we can't just pass a 64-bit nanosecond counter to an API which
expects milliseconds.

also remove unnecessary intermediate variables

6 years agocleanups and consistency
Alan T. DeKok [Mon, 22 Jun 2020 20:11:19 +0000 (16:11 -0400)] 
cleanups and consistency

6 years agoclean up and comment
Alan T. DeKok [Mon, 22 Jun 2020 20:09:53 +0000 (16:09 -0400)] 
clean up and comment

6 years agoImap module with unit test (#3474)
Stephen Blackwell [Mon, 22 Jun 2020 17:39:30 +0000 (13:39 -0400)] 
Imap module with unit test (#3474)

* imap with working authentication

6 years agoadded instructions for running the Perl scripts
Alan T. DeKok [Mon, 22 Jun 2020 16:28:18 +0000 (12:28 -0400)] 
added instructions for running the Perl scripts

6 years agoupdate to matchj recent changes
Alan T. DeKok [Mon, 22 Jun 2020 16:27:55 +0000 (12:27 -0400)] 
update to matchj recent changes

6 years agoNew helper scripts for defining IP pools and aligning sqlippools
Terry Burton [Thu, 4 Jun 2020 02:02:41 +0000 (03:02 +0100)] 
New helper scripts for defining IP pools and aligning sqlippools

generate_pool_addresses.pl allow multiple pools, each containing one or more
address ranges (IPv4 or IPv6) to the specified by YAML file and will output a
list of addresses meeting the specification.

These address ranges may be defined as contiguous or sparse (useful in the case
of IPv6!). In the case of sparse ranges, if a file listing pre-existing
addresses is supplied then these are used. The remainder of the addresses (up
to the given capacity of the range) are allocated randomly.

align_sql_pools.pl takes the list of addresses output by
generate_pool_addresses.pl and generates a set of dialect-specific SQL
statements to align the sqlippools, preserving any existing leases that are
using an addresses that is retained in the pool.

6 years agoUpdate dictionary.foundry
lyubomirtraykov [Fri, 19 Jun 2020 11:28:09 +0000 (14:28 +0300)] 
Update dictionary.foundry

Add Foundry-Voice-Phone-Config for Ruckus ICX Switches

6 years agoremove unused variables
Alan T. DeKok [Mon, 22 Jun 2020 13:19:25 +0000 (09:19 -0400)] 
remove unused variables

6 years agotypo
Alan T. DeKok [Mon, 22 Jun 2020 12:43:34 +0000 (08:43 -0400)] 
typo

6 years agoremove Group and Group-Name
Alan T. DeKok [Wed, 17 Jun 2020 16:33:52 +0000 (12:33 -0400)] 
remove Group and Group-Name

they're too confusing.  People should use Unix-Group

6 years agomake reserved field octets, instead if int
Alan T. DeKok [Tue, 16 Jun 2020 13:18:30 +0000 (09:18 -0400)] 
make reserved field octets, instead if int

6 years agoFix undefined reference in rlm_rest
Arran Cudbard-Bell [Fri, 19 Jun 2020 17:34:31 +0000 (12:34 -0500)] 
Fix undefined reference in rlm_rest

6 years agoQualify python shebang with a version as rpmbuild complains....
Arran Cudbard-Bell [Fri, 19 Jun 2020 13:53:57 +0000 (08:53 -0500)] 
Qualify python shebang with a version as rpmbuild complains....

6 years agotravis: Disable ptrace protection (#3500)
Jorge Pereira [Wed, 17 Jun 2020 21:06:15 +0000 (18:06 -0300)] 
travis: Disable ptrace protection (#3500)

It will allow the Travis processes be debugged.

6 years agouse struct type for attributes which have internal structure
Alan T. DeKok [Tue, 16 Jun 2020 13:10:23 +0000 (09:10 -0400)] 
use struct type for attributes which have internal structure

6 years agofree the fixups
Alan T. DeKok [Tue, 16 Jun 2020 11:42:43 +0000 (07:42 -0400)] 
free the fixups

6 years agoDictionary: Add missing DHCP6 Alcatel attributes.
Thomas Faller [Mon, 15 Jun 2020 20:54:59 +0000 (22:54 +0200)] 
Dictionary: Add missing DHCP6 Alcatel attributes.

6 years agoCheck there's VPs in the head
Arran Cudbard-Bell [Fri, 12 Jun 2020 19:25:34 +0000 (14:25 -0500)] 
Check there's VPs in the head

6 years agoDon't need paste symbol as we're just pass through all the args
Arran Cudbard-Bell [Fri, 12 Jun 2020 18:13:20 +0000 (13:13 -0500)] 
Don't need paste symbol as we're just pass through all the args

6 years agotrunk: Don't trash the log head on reinit
Arran Cudbard-Bell [Fri, 12 Jun 2020 18:12:28 +0000 (13:12 -0500)] 
trunk: Don't trash the log head on reinit

6 years agoRedundant...
Arran Cudbard-Bell [Fri, 12 Jun 2020 15:42:15 +0000 (10:42 -0500)] 
Redundant...

6 years agoNo need for the explicit dbuff argument
Arran Cudbard-Bell [Fri, 12 Jun 2020 15:12:44 +0000 (10:12 -0500)] 
No need for the explicit dbuff argument

6 years agoBuild with python3
Arran Cudbard-Bell [Fri, 12 Jun 2020 02:37:23 +0000 (21:37 -0500)] 
Build with python3

6 years agouse FIND_FILES_SUFFIX function
Alan T. DeKok [Thu, 11 Jun 2020 15:15:12 +0000 (11:15 -0400)] 
use FIND_FILES_SUFFIX function

6 years agowe don't need this any more
Alan T. DeKok [Thu, 11 Jun 2020 14:41:31 +0000 (10:41 -0400)] 
we don't need this any more

6 years agocreate cert dir, too
Alan T. DeKok [Thu, 11 Jun 2020 14:39:02 +0000 (10:39 -0400)] 
create cert dir, too

6 years agofix up filter syntax for removing icmp
Alan T. DeKok [Thu, 11 Jun 2020 14:10:08 +0000 (10:10 -0400)] 
fix up filter syntax for removing icmp

6 years agoremove debugging info
Alan T. DeKok [Thu, 11 Jun 2020 13:52:12 +0000 (09:52 -0400)] 
remove debugging info

6 years agomove to the standard TEST_BOOTSTRAP framework
Alan T. DeKok [Thu, 11 Jun 2020 13:47:06 +0000 (09:47 -0400)] 
move to the standard TEST_BOOTSTRAP framework

with some additional magic for filtering modules which need
a test server