]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
5 years agoadd "load-dictionary" command, and remove unused "test-dictionary"
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

5 years agoThe public function should do the unconsting
Arran Cudbard-Bell [Tue, 11 May 2021 18:59:22 +0000 (20:59 +0200)] 
The public function should do the unconsting

5 years agoverb last
Arran Cudbard-Bell [Tue, 11 May 2021 17:48:29 +0000 (19:48 +0200)] 
verb last

5 years agoQuiet clang scan
Arran Cudbard-Bell [Tue, 11 May 2021 17:41:14 +0000 (19:41 +0200)] 
Quiet clang scan

5 years agoInitialise slen
Arran Cudbard-Bell [Tue, 11 May 2021 17:21:31 +0000 (19:21 +0200)] 
Initialise slen

5 years agoProduce better errors when we can't resolve attributes
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

5 years agoAllocating instance data helps DHCPv4 not explode
Arran Cudbard-Bell [Tue, 11 May 2021 16:50:22 +0000 (18:50 +0200)] 
Allocating instance data helps DHCPv4 not explode

5 years agoPrint our ciphers
Arran Cudbard-Bell [Tue, 11 May 2021 16:20:55 +0000 (18:20 +0200)] 
Print our ciphers

5 years agoupdate error message
Alan T. DeKok [Tue, 11 May 2021 12:51:00 +0000 (08:51 -0400)] 
update error message

5 years agopass ref to dict alloc function
Alan T. DeKok [Tue, 11 May 2021 12:28:53 +0000 (08:28 -0400)] 
pass ref to dict alloc function

5 years agoRevert "don't search through all dicts if allow_foreign==false"
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.

5 years agoAdd support for aliases to internal (dict_priv) API
Arran Cudbard-Bell [Tue, 11 May 2021 12:19:23 +0000 (14:19 +0200)] 
Add support for aliases to internal (dict_priv) API

5 years agodon't search through all dicts if allow_foreign==false
Alan T. DeKok [Tue, 11 May 2021 12:05:35 +0000 (08:05 -0400)] 
don't search through all dicts if allow_foreign==false

5 years agogrammer typos
Alan T. DeKok [Tue, 11 May 2021 11:51:55 +0000 (07:51 -0400)] 
grammer typos

5 years agoallocate ext for ref
Alan T. DeKok [Mon, 10 May 2021 16:13:31 +0000 (12:13 -0400)] 
allocate ext for ref

5 years agoradlock is an admin tool
Alan T. DeKok [Mon, 10 May 2021 12:46:06 +0000 (08:46 -0400)] 
radlock is an admin tool

5 years agoremove reference to deleted attribute
Matthew Newton [Sun, 9 May 2021 23:27:04 +0000 (00:27 +0100)] 
remove reference to deleted attribute

5 years agoapparently comments are not liked
Alan T. DeKok [Sun, 9 May 2021 20:31:17 +0000 (16:31 -0400)] 
apparently comments are not liked

5 years agoonly print out top-level attributes
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.

5 years agoclean up dictionary to remove unused attributes
Alan T. DeKok [Sun, 9 May 2021 18:53:08 +0000 (14:53 -0400)] 
clean up dictionary to remove unused attributes

5 years agoremove unused digest attributes
Alan T. DeKok [Sun, 9 May 2021 18:43:11 +0000 (14:43 -0400)] 
remove unused digest attributes

5 years agouse the new names
Alan T. DeKok [Sun, 9 May 2021 18:40:44 +0000 (14:40 -0400)] 
use the new names

5 years agoPort from v3
Alan T. DeKok [Sun, 9 May 2021 18:32:51 +0000 (14:32 -0400)] 
Port from v3

5 years agoadd in decoding for NAS-Filter-Rule, and tests
Alan T. DeKok [Fri, 7 May 2021 18:28:37 +0000 (14:28 -0400)] 
add in decoding for NAS-Filter-Rule, and tests

5 years agoadd NDEBUG_UNUSED
Alan T. DeKok [Fri, 7 May 2021 14:50:20 +0000 (10:50 -0400)] 
add NDEBUG_UNUSED

5 years agolet's actually add code for this
Alan T. DeKok [Fri, 7 May 2021 14:21:42 +0000 (10:21 -0400)] 
let's actually add code for this

5 years agoadd RFC 4849 encoder and test cases
Alan T. DeKok [Fri, 7 May 2021 13:52:04 +0000 (09:52 -0400)] 
add RFC 4849 encoder and test cases

5 years agoadd and set padding block size for TLS 1.3
Alan T. DeKok [Thu, 6 May 2021 20:46:27 +0000 (16:46 -0400)] 
add and set padding block size for TLS 1.3

5 years agorearrange / clean up comments
Alan T. DeKok [Thu, 6 May 2021 20:41:24 +0000 (16:41 -0400)] 
rearrange / clean up comments

5 years agobox isn't actually a litera...
Arran Cudbard-Bell [Tue, 4 May 2021 19:37:49 +0000 (14:37 -0500)] 
box isn't actually a litera...

5 years agoIf It's a shallow copy... don't free the original buffer‽
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‽

5 years agoFormatting
Arran Cudbard-Bell [Tue, 4 May 2021 19:35:25 +0000 (14:35 -0500)] 
Formatting

5 years agoFix talloc reference issue
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

5 years agoDon't trash the Notification code
Arran Cudbard-Bell [Tue, 4 May 2021 18:27:21 +0000 (13:27 -0500)] 
Don't trash the Notification code

5 years agoThe shitheads at Apple and Google finally got their act together and published a...
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.

5 years agoFix typo (#4070)
Jorge Pereira [Thu, 29 Apr 2021 21:18:49 +0000 (18:18 -0300)] 
Fix typo (#4070)

5 years ago*sigh*, words...
Arran Cudbard-Bell [Thu, 29 Apr 2021 17:37:03 +0000 (12:37 -0500)] 
*sigh*, words...

5 years agoMinor typo
Arran Cudbard-Bell [Thu, 29 Apr 2021 17:35:46 +0000 (12:35 -0500)] 
Minor typo

5 years agoRemove redundant declaration
Arran Cudbard-Bell [Thu, 29 Apr 2021 17:30:20 +0000 (12:30 -0500)] 
Remove redundant declaration

5 years agoAdd require_identity_realm and set the default to "nai"
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.

5 years agoUse new function
Arran Cudbard-Bell [Thu, 29 Apr 2021 16:54:36 +0000 (11:54 -0500)] 
Use new function

5 years ago🔧 tmpl: Fix tmpl_find_or_add_vp() (#3985)
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.

5 years agov4: Convert %(cache: ) to new xlat api (#4043)
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

5 years agoerror if Next-Shortest-Prefix is used in anger
Alan T. DeKok [Thu, 29 Apr 2021 14:11:17 +0000 (10:11 -0400)] 
error if Next-Shortest-Prefix is used in anger

5 years agoDoes TACACS+ now too (#4049)
Jorge Pereira [Thu, 29 Apr 2021 14:01:52 +0000 (11:01 -0300)] 
Does TACACS+ now too (#4049)

5 years agoMake things simple for the stupid compiler
Arran Cudbard-Bell [Thu, 29 Apr 2021 13:58:31 +0000 (08:58 -0500)] 
Make things simple for the stupid compiler

5 years agoUpdated all SQL schema adding a new 'Class' column. (#4052)
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.

5 years agoadd NEVER_RETURNS
Alan T. DeKok [Thu, 29 Apr 2021 13:31:48 +0000 (09:31 -0400)] 
add NEVER_RETURNS

5 years agorename attribute
Alan T. DeKok [Thu, 29 Apr 2021 13:06:24 +0000 (09:06 -0400)] 
rename attribute

5 years agoKey is apparently a non-standard field...
Arran Cudbard-Bell [Wed, 28 Apr 2021 23:02:09 +0000 (18:02 -0500)] 
Key is apparently a non-standard field...

5 years agoAdd radlock to diagnose config locking issues
Arran Cudbard-Bell [Wed, 28 Apr 2021 20:49:15 +0000 (15:49 -0500)] 
Add radlock to diagnose config locking issues

5 years agoAdd sem_post
Arran Cudbard-Bell [Wed, 28 Apr 2021 20:47:53 +0000 (15:47 -0500)] 
Add sem_post

5 years agoReturn a pointer to the buffer in fr_perm_mode_to_str and fr_perm_mode_to_oct for...
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

5 years agoshould be signed if we're setting it to -1...
Arran Cudbard-Bell [Wed, 28 Apr 2021 17:22:53 +0000 (12:22 -0500)] 
should be signed if we're setting it to -1...

5 years agoAdd function for getting a uid from a string
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

5 years agoFix bad context in aka_sim_xlat_id_method_xlat
Arran Cudbard-Bell [Wed, 28 Apr 2021 17:18:43 +0000 (12:18 -0500)] 
Fix bad context in aka_sim_xlat_id_method_xlat

5 years agoWS
Arran Cudbard-Bell [Wed, 28 Apr 2021 17:18:19 +0000 (12:18 -0500)] 
WS

5 years agoCosmetic fix for fr_aka_sim_id_type errors
Arran Cudbard-Bell [Wed, 28 Apr 2021 17:01:08 +0000 (12:01 -0500)] 
Cosmetic fix for fr_aka_sim_id_type errors

5 years agoIncrement the semaphore in the child process too
Arran Cudbard-Bell [Wed, 28 Apr 2021 14:20:28 +0000 (09:20 -0500)] 
Increment the semaphore in the child process too

5 years agoTry altering where the semaphore is cleaned up
Arran Cudbard-Bell [Wed, 28 Apr 2021 13:15:01 +0000 (08:15 -0500)] 
Try altering where the semaphore is cleaned up

5 years agobe more careful about walking back up the tree
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

5 years agoEnsure semaphores are owned by the configured uid/gid
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

5 years agoStop semaphore being closed early on fork
Arran Cudbard-Bell [Wed, 28 Apr 2021 02:13:01 +0000 (21:13 -0500)] 
Stop semaphore being closed early on fork

5 years agoDon't add NULL dl search path components
Arran Cudbard-Bell [Tue, 27 Apr 2021 23:03:34 +0000 (18:03 -0500)] 
Don't add NULL dl search path components

5 years agoFix issue when stepping through two processes calling fr_sem_get
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

5 years agoAdd Continue-With-Shorter-Prefix
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.

5 years agoadd htype to the struct
Alan T. DeKok [Tue, 27 Apr 2021 15:38:10 +0000 (11:38 -0400)] 
add htype to the struct

5 years agoupdate docs for new behavior
Alan T. DeKok [Tue, 27 Apr 2021 13:57:43 +0000 (09:57 -0400)] 
update docs for new behavior

5 years agoSet PROJ_ID to an 8 bit integer seeing as the rest are ignored
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

5 years agoOnly allow permissions errors for semaphores
Arran Cudbard-Bell [Tue, 27 Apr 2021 19:05:29 +0000 (14:05 -0500)] 
Only allow permissions errors for semaphores

5 years agoMove user/group/permissions functions into util library
Arran Cudbard-Bell [Tue, 27 Apr 2021 17:23:58 +0000 (12:23 -0500)] 
Move user/group/permissions functions into util library

5 years agoEnsure two processes can't execute simultaneously with the same config
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

5 years agomove regex sanity checks to map_afrom_substr()
Alan T. DeKok [Tue, 27 Apr 2021 13:15:24 +0000 (09:15 -0400)] 
move regex sanity checks to map_afrom_substr()

5 years agoremove redundant checks
Alan T. DeKok [Tue, 27 Apr 2021 12:57:47 +0000 (08:57 -0400)] 
remove redundant checks

5 years agoremove unused argument
Alan T. DeKok [Tue, 27 Apr 2021 12:56:39 +0000 (08:56 -0400)] 
remove unused argument

5 years agoadd regex tests for "files" module
Alan T. DeKok [Tue, 27 Apr 2021 12:05:54 +0000 (08:05 -0400)] 
add regex tests for "files" module

5 years agoAllow regexes, too
Alan T. DeKok [Tue, 27 Apr 2021 11:48:02 +0000 (07:48 -0400)] 
Allow regexes, too

5 years agodon't access list after it's been freed
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.

5 years agofix brace placement
Alan T. DeKok [Tue, 27 Apr 2021 11:40:35 +0000 (07:40 -0400)] 
fix brace placement

5 years agouse conditions to evaluate check items.
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.

5 years agocache request->module, as per the other uses
Alan T. DeKok [Tue, 27 Apr 2021 11:15:54 +0000 (07:15 -0400)] 
cache request->module, as per the other uses

5 years agoremove fr_cond_from_map()
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

5 years agostandardize formatting
Alan T. DeKok [Tue, 27 Apr 2021 10:01:10 +0000 (06:01 -0400)] 
standardize formatting

5 years agorequire "make install.doc" before installing documentation
Alan T. DeKok [Tue, 27 Apr 2021 10:00:43 +0000 (06:00 -0400)] 
require "make install.doc" before installing documentation

5 years agomore "skip auto convert raddb/* -> doc/*.adoc"
Alan T. DeKok [Tue, 27 Apr 2021 00:03:12 +0000 (20:03 -0400)] 
more "skip auto convert raddb/* -> doc/*.adoc"

5 years agoadd missing file
Alan T. DeKok [Mon, 26 Apr 2021 23:59:51 +0000 (19:59 -0400)] 
add missing file

5 years agoadd missing file
Alan T. DeKok [Mon, 26 Apr 2021 23:57:48 +0000 (19:57 -0400)] 
add missing file

5 years agoupdated after `make asciidoc`
Alan T. DeKok [Mon, 26 Apr 2021 23:56:25 +0000 (19:56 -0400)] 
updated after `make asciidoc`

5 years agotypo
Alan T. DeKok [Mon, 26 Apr 2021 23:54:51 +0000 (19:54 -0400)] 
typo

5 years agoonly convert raddb/* -> doc/* if we do "make asciidoc"
Alan T. DeKok [Mon, 26 Apr 2021 23:25:38 +0000 (19:25 -0400)] 
only convert raddb/* -> doc/* if we do "make asciidoc"

5 years agorearrange rules to skip documentation if pre-requisites are missing
Alan T. DeKok [Mon, 26 Apr 2021 23:18:57 +0000 (19:18 -0400)] 
rearrange rules to skip documentation if pre-requisites are missing

5 years agowe only need "continuation", so call it that.
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

5 years agoVendor Telrad has format=1,1,c
Alan T. DeKok [Mon, 26 Apr 2021 22:53:57 +0000 (18:53 -0400)] 
Vendor Telrad has format=1,1,c

5 years agocopied from v3.
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.

5 years agouse fr_htrie_match() API
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.

5 years agoadd match() API
Alan T. DeKok [Mon, 26 Apr 2021 19:17:55 +0000 (15:17 -0400)] 
add match() API

5 years agoadd fr_trie_match()
Alan T. DeKok [Mon, 26 Apr 2021 19:14:21 +0000 (15:14 -0400)] 
add fr_trie_match()

for exact matches

5 years agoinitialize user_list
Alan T. DeKok [Mon, 26 Apr 2021 18:47:58 +0000 (14:47 -0400)] 
initialize user_list

5 years agoAdd test for less than and greater than to rlm_files
Nick Porter [Mon, 25 Jan 2021 09:38:23 +0000 (09:38 +0000)] 
Add test for less than and greater than to rlm_files

5 years agoAdd test for overwriting attributes in rlm_files
Nick Porter [Mon, 25 Jan 2021 09:18:42 +0000 (09:18 +0000)] 
Add test for overwriting attributes in rlm_files