]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
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
Arran Cudbard-Bell [Mon, 13 Jul 2020 17:57:11 +0000 (10:57 -0700)]
dbuff: Add functions to perform partial copies into a dbuff
Alan T. DeKok [Fri, 10 Jul 2020 14:12:04 +0000 (10:12 -0400)]
use names from dictionary attributes instead of hard-coded names
Alan T. DeKok [Tue, 7 Jul 2020 11:31:48 +0000 (07:31 -0400)]
word smithing
Arran Cudbard-Bell [Fri, 3 Jul 2020 01:24:11 +0000 (20:24 -0500)]
sbuff: Disallow look behind for sbuffs
Arran Cudbard-Bell [Fri, 3 Jul 2020 01:17:12 +0000 (20:17 -0500)]
dbuff: Disallow look behind for duplicated dbuffs
Arran Cudbard-Bell [Wed, 1 Jul 2020 21:29:43 +0000 (16:29 -0500)]
Fix macro name
Terry Burton [Thu, 2 Jul 2020 14:20:58 +0000 (15:20 +0100)]
Alan T. DeKok [Thu, 2 Jul 2020 11:38:45 +0000 (07:38 -0400)]
Perl tests, including tests for unknown attributes
Alan T. DeKok [Thu, 2 Jul 2020 11:38:24 +0000 (07:38 -0400)]
ensure that vp->data is properly initialized for unknown attrs
Arran Cudbard-Bell [Wed, 1 Jul 2020 19:08:52 +0000 (14:08 -0500)]
Rebuild libcurl configure script
Stephen Blackwell [Wed, 1 Jul 2020 19:04:54 +0000 (15:04 -0400)]
curl version update (#3510)
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
Alan T. DeKok [Mon, 29 Jun 2020 20:32:22 +0000 (16:32 -0400)]
let's signal the network thread to exit
Alan T. DeKok [Mon, 29 Jun 2020 18:47:56 +0000 (14:47 -0400)]
add imap documentation
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.
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.
Alan T. DeKok [Mon, 29 Jun 2020 12:27:12 +0000 (08:27 -0400)]
make it a real bit field
Arran Cudbard-Bell [Mon, 29 Jun 2020 04:33:04 +0000 (23:33 -0500)]
whitespace
Arran Cudbard-Bell [Mon, 29 Jun 2020 04:32:50 +0000 (23:32 -0500)]
sbuff: add fr_sbuff_next_if_strncase
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
Arran Cudbard-Bell [Mon, 29 Jun 2020 02:34:00 +0000 (21:34 -0500)]
Update required curl function
Arran Cudbard-Bell [Sun, 28 Jun 2020 21:33:44 +0000 (16:33 -0500)]
sbuff: Fix various issues with integer parsing
Arran Cudbard-Bell [Sun, 28 Jun 2020 19:19:44 +0000 (14:19 -0500)]
cond: Add debug function for conditions
Arran Cudbard-Bell [Sun, 28 Jun 2020 19:17:17 +0000 (14:17 -0500)]
const: More checks
Arran Cudbard-Bell [Sun, 28 Jun 2020 19:16:23 +0000 (14:16 -0500)]
sbuff: Add is allowed function
Arran Cudbard-Bell [Sun, 28 Jun 2020 19:16:05 +0000 (14:16 -0500)]
sbuff: Fix advance on integer parsing
Arran Cudbard-Bell [Sun, 28 Jun 2020 03:19:50 +0000 (22:19 -0500)]
const screwup protection
Arran Cudbard-Bell [Sun, 28 Jun 2020 03:09:37 +0000 (22:09 -0500)]
table: Always set match_len if requested
Arran Cudbard-Bell [Sun, 28 Jun 2020 00:13:12 +0000 (19:13 -0500)]
curl: Remove redundant version checks
Arran Cudbard-Bell [Sat, 27 Jun 2020 23:42:14 +0000 (18:42 -0500)]
Always use 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
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
Arran Cudbard-Bell [Sat, 27 Jun 2020 21:41:03 +0000 (16:41 -0500)]
Typo
Arran Cudbard-Bell [Sat, 27 Jun 2020 21:35:09 +0000 (16:35 -0500)]
tmpl: Print the request refs too in debug output
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
Alan T. DeKok [Sat, 27 Jun 2020 20:10:39 +0000 (16:10 -0400)]
CURLOPT_DEFAULT_PROTOCOL didn't always exist
Alan T. DeKok [Fri, 26 Jun 2020 14:06:22 +0000 (10:06 -0400)]
whitespace
Alan T. DeKok [Fri, 26 Jun 2020 14:05:54 +0000 (10:05 -0400)]
re-built
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
Arran Cudbard-Bell [Fri, 26 Jun 2020 00:24:47 +0000 (19:24 -0500)]
dict: Expose unknown_attr_afrom_num
Arran Cudbard-Bell [Fri, 26 Jun 2020 00:24:23 +0000 (19:24 -0500)]
dlist: Add functions to pop or free dlist head/tail
Arran Cudbard-Bell [Thu, 25 Jun 2020 23:24:44 +0000 (18:24 -0500)]
No longer used
Arran Cudbard-Bell [Thu, 25 Jun 2020 23:22:56 +0000 (18:22 -0500)]
Whitespace fixes
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
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>
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
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
Arran Cudbard-Bell [Thu, 25 Jun 2020 02:58:20 +0000 (21:58 -0500)]
sbuff: Add taloc version of bstrncpy functions
Arran Cudbard-Bell [Thu, 25 Jun 2020 01:49:11 +0000 (20:49 -0500)]
sbuff: Add additional macros and fix fr_sbuff_parse
Arran Cudbard-Bell [Thu, 25 Jun 2020 01:07:07 +0000 (20:07 -0500)]
more missed rlm_imap constifications
Arran Cudbard-Bell [Wed, 24 Jun 2020 22:00:39 +0000 (17:00 -0500)]
and another one
Arran Cudbard-Bell [Wed, 24 Jun 2020 21:45:23 +0000 (16:45 -0500)]
and some more...
Arran Cudbard-Bell [Wed, 24 Jun 2020 21:22:17 +0000 (16:22 -0500)]
Fix more const issues
Arran Cudbard-Bell [Wed, 24 Jun 2020 21:11:48 +0000 (16:11 -0500)]
Fix issue with curl option macros
Arran Cudbard-Bell [Wed, 24 Jun 2020 21:02:24 +0000 (16:02 -0500)]
Unconst trigger
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
Arran Cudbard-Bell [Wed, 24 Jun 2020 13:59:42 +0000 (08:59 -0500)]
need to increment!
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
Alan T. DeKok [Wed, 24 Jun 2020 13:26:14 +0000 (09:26 -0400)]
added "touch" for broken systems
Alan T. DeKok [Tue, 23 Jun 2020 16:45:01 +0000 (12:45 -0400)]
skip imap for non-travis builds
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.
Arran Cudbard-Bell [Tue, 23 Jun 2020 22:09:39 +0000 (17:09 -0500)]
Quiet GCC's alignment warnings
Arran Cudbard-Bell [Tue, 23 Jun 2020 18:15:32 +0000 (13:15 -0500)]
Drop "rad" in module.h
Arran Cudbard-Bell [Tue, 23 Jun 2020 20:57:25 +0000 (15:57 -0500)]
Bump GCC to GCC 10
Arran Cudbard-Bell [Tue, 23 Jun 2020 14:41:58 +0000 (09:41 -0500)]
More cleanups...
# Conflicts:
# src/modules/rlm_imap/rlm_imap.c
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
Alan T. DeKok [Mon, 22 Jun 2020 23:04:36 +0000 (19:04 -0400)]
typo
Alan T. DeKok [Mon, 22 Jun 2020 22:57:12 +0000 (18:57 -0400)]
this should not have been committed
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`
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
Alan T. DeKok [Mon, 22 Jun 2020 20:11:19 +0000 (16:11 -0400)]
cleanups and consistency
Alan T. DeKok [Mon, 22 Jun 2020 20:09:53 +0000 (16:09 -0400)]
clean up and comment
Stephen Blackwell [Mon, 22 Jun 2020 17:39:30 +0000 (13:39 -0400)]
Imap module with unit test (#3474)
* imap with working authentication
Alan T. DeKok [Mon, 22 Jun 2020 16:28:18 +0000 (12:28 -0400)]
added instructions for running the Perl scripts
Alan T. DeKok [Mon, 22 Jun 2020 16:27:55 +0000 (12:27 -0400)]
update to matchj recent changes
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.
lyubomirtraykov [Fri, 19 Jun 2020 11:28:09 +0000 (14:28 +0300)]
Update dictionary.foundry
Add Foundry-Voice-Phone-Config for Ruckus ICX Switches
Alan T. DeKok [Mon, 22 Jun 2020 13:19:25 +0000 (09:19 -0400)]
remove unused variables
Alan T. DeKok [Mon, 22 Jun 2020 12:43:34 +0000 (08:43 -0400)]
typo
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
Alan T. DeKok [Tue, 16 Jun 2020 13:18:30 +0000 (09:18 -0400)]
make reserved field octets, instead if int
Arran Cudbard-Bell [Fri, 19 Jun 2020 17:34:31 +0000 (12:34 -0500)]
Fix undefined reference in rlm_rest
Arran Cudbard-Bell [Fri, 19 Jun 2020 13:53:57 +0000 (08:53 -0500)]
Qualify python shebang with a version as rpmbuild complains....
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.
Alan T. DeKok [Tue, 16 Jun 2020 13:10:23 +0000 (09:10 -0400)]
use struct type for attributes which have internal structure
Alan T. DeKok [Tue, 16 Jun 2020 11:42:43 +0000 (07:42 -0400)]
free the fixups
Thomas Faller [Mon, 15 Jun 2020 20:54:59 +0000 (22:54 +0200)]
Dictionary: Add missing DHCP6 Alcatel attributes.
Arran Cudbard-Bell [Fri, 12 Jun 2020 19:25:34 +0000 (14:25 -0500)]
Check there's VPs in the head
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
Arran Cudbard-Bell [Fri, 12 Jun 2020 18:12:28 +0000 (13:12 -0500)]
trunk: Don't trash the log head on reinit
Arran Cudbard-Bell [Fri, 12 Jun 2020 15:42:15 +0000 (10:42 -0500)]
Redundant...
Arran Cudbard-Bell [Fri, 12 Jun 2020 15:12:44 +0000 (10:12 -0500)]
No need for the explicit dbuff argument
Arran Cudbard-Bell [Fri, 12 Jun 2020 02:37:23 +0000 (21:37 -0500)]
Build with python3
Alan T. DeKok [Thu, 11 Jun 2020 15:15:12 +0000 (11:15 -0400)]
use FIND_FILES_SUFFIX function
Alan T. DeKok [Thu, 11 Jun 2020 14:41:31 +0000 (10:41 -0400)]
we don't need this any more
Alan T. DeKok [Thu, 11 Jun 2020 14:39:02 +0000 (10:39 -0400)]
create cert dir, too
Alan T. DeKok [Thu, 11 Jun 2020 14:10:08 +0000 (10:10 -0400)]
fix up filter syntax for removing icmp
Alan T. DeKok [Thu, 11 Jun 2020 13:52:12 +0000 (09:52 -0400)]
remove debugging info
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