]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Tue, 11 May 2021 19:21:00 +0000 (15:21 -0400)]
add "load-dictionary" command, and remove unused "test-dictionary"
which now appends definitions to the current dictionary
Arran Cudbard-Bell [Tue, 11 May 2021 18:59:22 +0000 (20:59 +0200)]
The public function should do the unconsting
Arran Cudbard-Bell [Tue, 11 May 2021 17:48:29 +0000 (19:48 +0200)]
verb last
Arran Cudbard-Bell [Tue, 11 May 2021 17:41:14 +0000 (19:41 +0200)]
Quiet clang scan
Arran Cudbard-Bell [Tue, 11 May 2021 17:21:31 +0000 (19:21 +0200)]
Initialise slen
Arran Cudbard-Bell [Tue, 11 May 2021 17:13:13 +0000 (19:13 +0200)]
Produce better errors when we can't resolve attributes
Be more strict about only resolving attributes in the dictionary associated with the current virtual server
Arran Cudbard-Bell [Tue, 11 May 2021 16:50:22 +0000 (18:50 +0200)]
Allocating instance data helps DHCPv4 not explode
Arran Cudbard-Bell [Tue, 11 May 2021 16:20:55 +0000 (18:20 +0200)]
Print our ciphers
Alan T. DeKok [Tue, 11 May 2021 12:51:00 +0000 (08:51 -0400)]
update error message
Alan T. DeKok [Tue, 11 May 2021 12:28:53 +0000 (08:28 -0400)]
pass ref to dict alloc function
Alan T. DeKok [Tue, 11 May 2021 12:28:45 +0000 (08:28 -0400)]
Revert "don't search through all dicts if allow_foreign==false"
This reverts commit
1da442063f095f50e676a1a1eeeb68a00b018548 .
Arran Cudbard-Bell [Tue, 11 May 2021 12:19:23 +0000 (14:19 +0200)]
Add support for aliases to internal (dict_priv) API
Alan T. DeKok [Tue, 11 May 2021 12:05:35 +0000 (08:05 -0400)]
don't search through all dicts if allow_foreign==false
Alan T. DeKok [Tue, 11 May 2021 11:51:55 +0000 (07:51 -0400)]
grammer typos
Alan T. DeKok [Mon, 10 May 2021 16:13:31 +0000 (12:13 -0400)]
allocate ext for ref
Alan T. DeKok [Mon, 10 May 2021 12:46:06 +0000 (08:46 -0400)]
radlock is an admin tool
Matthew Newton [Sun, 9 May 2021 23:27:04 +0000 (00:27 +0100)]
remove reference to deleted attribute
Alan T. DeKok [Sun, 9 May 2021 20:31:17 +0000 (16:31 -0400)]
apparently comments are not liked
Alan T. DeKok [Sun, 9 May 2021 19:30:24 +0000 (15:30 -0400)]
only print out top-level attributes
as the names for sub-attributes are not qualified by the parents
name.
In order to do this properly, we should change the series of shell
commands with grep / awk into a Perl script. Probably by copying
scripts/dict/format.pl and changing it.
Alan T. DeKok [Sun, 9 May 2021 18:53:08 +0000 (14:53 -0400)]
clean up dictionary to remove unused attributes
Alan T. DeKok [Sun, 9 May 2021 18:43:11 +0000 (14:43 -0400)]
remove unused digest attributes
Alan T. DeKok [Sun, 9 May 2021 18:40:44 +0000 (14:40 -0400)]
use the new names
Alan T. DeKok [Sun, 9 May 2021 18:32:51 +0000 (14:32 -0400)]
Port from v3
Alan T. DeKok [Fri, 7 May 2021 18:28:37 +0000 (14:28 -0400)]
add in decoding for NAS-Filter-Rule, and tests
Alan T. DeKok [Fri, 7 May 2021 14:50:20 +0000 (10:50 -0400)]
add NDEBUG_UNUSED
Alan T. DeKok [Fri, 7 May 2021 14:21:42 +0000 (10:21 -0400)]
let's actually add code for this
Alan T. DeKok [Fri, 7 May 2021 13:52:04 +0000 (09:52 -0400)]
add RFC 4849 encoder and test cases
Alan T. DeKok [Thu, 6 May 2021 20:46:27 +0000 (16:46 -0400)]
add and set padding block size for TLS 1.3
Alan T. DeKok [Thu, 6 May 2021 20:41:24 +0000 (16:41 -0400)]
rearrange / clean up comments
Arran Cudbard-Bell [Tue, 4 May 2021 19:37:49 +0000 (14:37 -0500)]
box isn't actually a litera...
Arran Cudbard-Bell [Tue, 4 May 2021 19:35:48 +0000 (14:35 -0500)]
If It's a shallow copy... don't free the original buffer‽
Arran Cudbard-Bell [Tue, 4 May 2021 19:35:25 +0000 (14:35 -0500)]
Formatting
Arran Cudbard-Bell [Tue, 4 May 2021 18:59:13 +0000 (13:59 -0500)]
Fix talloc reference issue
ERROR: talloc_free with references at /usr/src/debug/freeradius-4.0.0-20897.el8.x86_64/src/lib/util/value.c:3280
reference at /usr/src/debug/freeradius-4.0.0-20897.el8.x86_64/src/lib/util/value.c:3434
ERROR: talloc_free with references at /usr/src/debug/freeradius-4.0.0-20897.el8.x86_64/src/lib/util/value.c:3280
reference at /usr/src/debug/freeradius-4.0.0-20897.el8.x86_64/src/lib/util/value.c:3434
Arran Cudbard-Bell [Tue, 4 May 2021 18:27:21 +0000 (13:27 -0500)]
Don't trash the Notification code
Arran Cudbard-Bell [Tue, 4 May 2021 16:49:48 +0000 (11:49 -0500)]
The shitheads at Apple and Google finally got their act together and published a semi-complete standard for e-imsi
Still doesn't mention that the value being fed to the KDF is the _DECRYPTED_ identity, which breaks RFC 4187, which states the AT_IDENTITY value is used by the KDF. It's telling that no one of the ~40 contributors from ~20 different organisations caught this omission.
Jorge Pereira [Thu, 29 Apr 2021 21:18:49 +0000 (18:18 -0300)]
Fix typo (#4070)
Arran Cudbard-Bell [Thu, 29 Apr 2021 17:37:03 +0000 (12:37 -0500)]
*sigh*, words...
Arran Cudbard-Bell [Thu, 29 Apr 2021 17:35:46 +0000 (12:35 -0500)]
Minor typo
Arran Cudbard-Bell [Thu, 29 Apr 2021 17:30:20 +0000 (12:30 -0500)]
Remove redundant declaration
Arran Cudbard-Bell [Thu, 29 Apr 2021 17:25:23 +0000 (12:25 -0500)]
Add require_identity_realm and set the default to "nai"
This requires all EAP identites contain an NAI realm.
Arran Cudbard-Bell [Thu, 29 Apr 2021 16:54:36 +0000 (11:54 -0500)]
Use new function
Jorge Pereira [Thu, 29 Apr 2021 14:18:54 +0000 (11:18 -0300)]
🔧 tmpl: Fix tmpl_find_or_add_vp() (#3985)
* tmpl: Normalize tmpl_pair_list_and_ctx() name
* tmpl: Fix tmpl_find_or_add_vp()
It should add the vp into the correct list.
Nick Porter [Thu, 29 Apr 2021 14:13:28 +0000 (15:13 +0100)]
v4: Convert %(cache: ) to new xlat api (#4043)
* Convert %(cache: ) to new xlat api
* Add test for %(cache: ) xlat
* Tidy rlm_cache tests
Alan T. DeKok [Thu, 29 Apr 2021 14:11:17 +0000 (10:11 -0400)]
error if Next-Shortest-Prefix is used in anger
Jorge Pereira [Thu, 29 Apr 2021 14:01:52 +0000 (11:01 -0300)]
Does TACACS+ now too (#4049)
Arran Cudbard-Bell [Thu, 29 Apr 2021 13:58:31 +0000 (08:58 -0500)]
Make things simple for the stupid compiler
Jorge Pereira [Thu, 29 Apr 2021 13:43:18 +0000 (10:43 -0300)]
Updated all SQL schema adding a new 'Class' column. (#4052)
It helps the admin to locate accounting packets.
Alan T. DeKok [Thu, 29 Apr 2021 13:31:48 +0000 (09:31 -0400)]
add NEVER_RETURNS
Alan T. DeKok [Thu, 29 Apr 2021 13:06:24 +0000 (09:06 -0400)]
rename attribute
Arran Cudbard-Bell [Wed, 28 Apr 2021 23:02:09 +0000 (18:02 -0500)]
Key is apparently a non-standard field...
Arran Cudbard-Bell [Wed, 28 Apr 2021 20:49:15 +0000 (15:49 -0500)]
Add radlock to diagnose config locking issues
Arran Cudbard-Bell [Wed, 28 Apr 2021 20:47:53 +0000 (15:47 -0500)]
Add sem_post
Arran Cudbard-Bell [Wed, 28 Apr 2021 20:47:35 +0000 (15:47 -0500)]
Return a pointer to the buffer in fr_perm_mode_to_str and fr_perm_mode_to_oct for simplicity
Arran Cudbard-Bell [Wed, 28 Apr 2021 17:22:53 +0000 (12:22 -0500)]
should be signed if we're setting it to -1...
Arran Cudbard-Bell [Wed, 28 Apr 2021 17:22:39 +0000 (12:22 -0500)]
Add function for getting a uid from a string
Decorate declarations in perm.c
Arran Cudbard-Bell [Wed, 28 Apr 2021 17:18:43 +0000 (12:18 -0500)]
Fix bad context in aka_sim_xlat_id_method_xlat
Arran Cudbard-Bell [Wed, 28 Apr 2021 17:18:19 +0000 (12:18 -0500)]
WS
Arran Cudbard-Bell [Wed, 28 Apr 2021 17:01:08 +0000 (12:01 -0500)]
Cosmetic fix for fr_aka_sim_id_type errors
Arran Cudbard-Bell [Wed, 28 Apr 2021 14:20:28 +0000 (09:20 -0500)]
Increment the semaphore in the child process too
Arran Cudbard-Bell [Wed, 28 Apr 2021 13:15:01 +0000 (08:15 -0500)]
Try altering where the semaphore is cleaned up
Alan T. DeKok [Wed, 28 Apr 2021 13:26:35 +0000 (09:26 -0400)]
be more careful about walking back up the tree
and cache the key, as it might disappear when the box is freed
and add tests for the "continue with shorter prefix" flag
Arran Cudbard-Bell [Wed, 28 Apr 2021 02:56:27 +0000 (21:56 -0500)]
Ensure semaphores are owned by the configured uid/gid
This fixes some potential permissions issues
Arran Cudbard-Bell [Wed, 28 Apr 2021 02:13:01 +0000 (21:13 -0500)]
Stop semaphore being closed early on fork
Arran Cudbard-Bell [Tue, 27 Apr 2021 23:03:34 +0000 (18:03 -0500)]
Don't add NULL dl search path components
Arran Cudbard-Bell [Tue, 27 Apr 2021 22:11:53 +0000 (17:11 -0500)]
Fix issue when stepping through two processes calling fr_sem_get
Alan T. DeKok [Tue, 27 Apr 2021 21:01:31 +0000 (17:01 -0400)]
Add Continue-With-Shorter-Prefix
for the last item of a list, if the reply contains
Continue-With-Shorter-Prefix, then it will walk back up the
prefix length looking for matching keys.
Alan T. DeKok [Tue, 27 Apr 2021 15:38:10 +0000 (11:38 -0400)]
add htype to the struct
Alan T. DeKok [Tue, 27 Apr 2021 13:57:43 +0000 (09:57 -0400)]
update docs for new behavior
Arran Cudbard-Bell [Tue, 27 Apr 2021 19:26:24 +0000 (14:26 -0500)]
Set PROJ_ID to an 8 bit integer seeing as the rest are ignored
Arran Cudbard-Bell [Tue, 27 Apr 2021 19:05:29 +0000 (14:05 -0500)]
Only allow permissions errors for semaphores
Arran Cudbard-Bell [Tue, 27 Apr 2021 17:23:58 +0000 (12:23 -0500)]
Move user/group/permissions functions into util library
Arran Cudbard-Bell [Tue, 27 Apr 2021 00:37:55 +0000 (19:37 -0500)]
Ensure two processes can't execute simultaneously with the same config
Alan T. DeKok [Tue, 27 Apr 2021 13:15:24 +0000 (09:15 -0400)]
move regex sanity checks to map_afrom_substr()
Alan T. DeKok [Tue, 27 Apr 2021 12:57:47 +0000 (08:57 -0400)]
remove redundant checks
Alan T. DeKok [Tue, 27 Apr 2021 12:56:39 +0000 (08:56 -0400)]
remove unused argument
Alan T. DeKok [Tue, 27 Apr 2021 12:05:54 +0000 (08:05 -0400)]
add regex tests for "files" module
Alan T. DeKok [Tue, 27 Apr 2021 11:48:02 +0000 (07:48 -0400)]
Allow regexes, too
Alan T. DeKok [Tue, 27 Apr 2021 11:40:50 +0000 (07:40 -0400)]
don't access list after it's been freed
and don't free a list on parse error. We rely instead on the
caller to free things.
If we do want to free the temporary lists while reading, we will
have to add a temporary context, OR walk down the temporary list
freeing each individual element.
The temporary lists are allocated on the stack, so we cannot
talloc_free() them.
Alan T. DeKok [Tue, 27 Apr 2021 11:40:35 +0000 (07:40 -0400)]
fix brace placement
Alan T. DeKok [Tue, 27 Apr 2021 11:31:36 +0000 (07:31 -0400)]
use conditions to evaluate check items.
Finally.
This should be moved to a common API, maybe even in users_file.c,
so that SQL, LDAP, etc. can also gain the benefit of these changes.
Alan T. DeKok [Tue, 27 Apr 2021 11:15:54 +0000 (07:15 -0400)]
cache request->module, as per the other uses
Alan T. DeKok [Tue, 27 Apr 2021 10:54:15 +0000 (06:54 -0400)]
remove fr_cond_from_map()
it's not used by anyone
Alan T. DeKok [Tue, 27 Apr 2021 10:01:10 +0000 (06:01 -0400)]
standardize formatting
Alan T. DeKok [Tue, 27 Apr 2021 10:00:43 +0000 (06:00 -0400)]
require "make install.doc" before installing documentation
Alan T. DeKok [Tue, 27 Apr 2021 00:03:12 +0000 (20:03 -0400)]
more "skip auto convert raddb/* -> doc/*.adoc"
Alan T. DeKok [Mon, 26 Apr 2021 23:59:51 +0000 (19:59 -0400)]
add missing file
Alan T. DeKok [Mon, 26 Apr 2021 23:57:48 +0000 (19:57 -0400)]
add missing file
Alan T. DeKok [Mon, 26 Apr 2021 23:56:25 +0000 (19:56 -0400)]
updated after `make asciidoc`
Alan T. DeKok [Mon, 26 Apr 2021 23:54:51 +0000 (19:54 -0400)]
typo
Alan T. DeKok [Mon, 26 Apr 2021 23:25:38 +0000 (19:25 -0400)]
only convert raddb/* -> doc/* if we do "make asciidoc"
Alan T. DeKok [Mon, 26 Apr 2021 23:18:57 +0000 (19:18 -0400)]
rearrange rules to skip documentation if pre-requisites are missing
Alan T. DeKok [Mon, 26 Apr 2021 22:57:10 +0000 (18:57 -0400)]
we only need "continuation", so call it that.
at some point later we can add more flags, if we so care
Alan T. DeKok [Mon, 26 Apr 2021 22:53:57 +0000 (18:53 -0400)]
Vendor Telrad has format=1,1,c
Alan T. DeKok [Mon, 26 Apr 2021 19:57:59 +0000 (15:57 -0400)]
copied from v3.
no tests yet, and we still need to update the code, etc. to allow
non-WiMAX vendors to use the "1,1,c" format.
Alan T. DeKok [Mon, 26 Apr 2021 19:26:46 +0000 (15:26 -0400)]
use fr_htrie_match() API
When we're rearranging the entries, we want to find entries which
are exact matches. We don't want to do prefix lookups.
Alan T. DeKok [Mon, 26 Apr 2021 19:17:55 +0000 (15:17 -0400)]
add match() API
Alan T. DeKok [Mon, 26 Apr 2021 19:14:21 +0000 (15:14 -0400)]
add fr_trie_match()
for exact matches
Alan T. DeKok [Mon, 26 Apr 2021 18:47:58 +0000 (14:47 -0400)]
initialize user_list
Nick Porter [Mon, 25 Jan 2021 09:38:23 +0000 (09:38 +0000)]
Add test for less than and greater than to rlm_files
Nick Porter [Mon, 25 Jan 2021 09:18:42 +0000 (09:18 +0000)]
Add test for overwriting attributes in rlm_files