]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Sun, 3 Dec 2023 09:34:31 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Sun, 3 Dec 2023 09:34:28 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Sun, 3 Dec 2023 09:34:25 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Sun, 3 Dec 2023 09:34:22 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Sun, 3 Dec 2023 09:34:19 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

2 years agotypos
Alan T. DeKok [Mon, 27 Nov 2023 17:01:08 +0000 (12:01 -0500)] 
typos

2 years agoremove extra ;
Alan T. DeKok [Mon, 27 Nov 2023 15:53:17 +0000 (10:53 -0500)] 
remove extra ;

2 years agomove to using new function syntax
Alan T. DeKok [Mon, 27 Nov 2023 15:50:17 +0000 (10:50 -0500)] 
move to using new function syntax

and regularize the names.

2 years agoadd copyright
Alan T. DeKok [Mon, 27 Nov 2023 15:25:54 +0000 (10:25 -0500)] 
add copyright

2 years agodepend on, and build, local files, too
Alan T. DeKok [Mon, 27 Nov 2023 14:29:01 +0000 (09:29 -0500)] 
depend on, and build, local files, too

2 years agoAdd documentation sections
Arran Cudbard-Bell [Sat, 25 Nov 2023 23:42:44 +0000 (17:42 -0600)] 
Add  documentation sections

2 years agoWe need to let section callbacks handle multi indexes
Arran Cudbard-Bell [Sat, 25 Nov 2023 23:35:55 +0000 (17:35 -0600)] 
We need to let section callbacks handle multi indexes

2 years ago...move forward from out position
Arran Cudbard-Bell [Sat, 25 Nov 2023 23:27:36 +0000 (17:27 -0600)] 
...move forward from out position

2 years agoVarious fixes for LDAP
Arran Cudbard-Bell [Sat, 25 Nov 2023 03:32:04 +0000 (21:32 -0600)] 
Various fixes for LDAP

2 years agoOnly validate tmpls
Arran Cudbard-Bell [Sat, 25 Nov 2023 03:31:40 +0000 (21:31 -0600)] 
Only validate tmpls

2 years agoInit expect_password
Arran Cudbard-Bell [Sat, 25 Nov 2023 02:49:32 +0000 (20:49 -0600)] 
Init expect_password

2 years agoSwitch LDAP map compilation to using call envs too
Arran Cudbard-Bell [Sat, 25 Nov 2023 02:37:39 +0000 (20:37 -0600)] 
Switch LDAP map compilation to using call envs too

2 years agocall env const fixes...
Arran Cudbard-Bell [Sat, 25 Nov 2023 02:34:06 +0000 (20:34 -0600)] 
call env const fixes...

and support for literal data

2 years agoQuiet GCC
Arran Cudbard-Bell [Sat, 25 Nov 2023 01:34:15 +0000 (19:34 -0600)] 
Quiet GCC

2 years agoRename cache update section parse function
Arran Cudbard-Bell [Sat, 25 Nov 2023 01:33:21 +0000 (19:33 -0600)] 
Rename cache update section parse function

2 years agoAlways initialise count and multi_index
Arran Cudbard-Bell [Sat, 25 Nov 2023 01:33:06 +0000 (19:33 -0600)] 
Always initialise count and multi_index

2 years agoAdd support for call_env callbacks
Arran Cudbard-Bell [Fri, 24 Nov 2023 22:52:41 +0000 (16:52 -0600)] 
Add support for call_env callbacks

These can either emit a tmpl_t which'll later be processed during evaluation, or emit a custom structure, which the module or xlat can access at runtime.

2 years agorearrange call env structures to make them more like conf_parser_t
Arran Cudbard-Bell [Fri, 24 Nov 2023 20:08:02 +0000 (14:08 -0600)] 
rearrange call env structures to make them more like conf_parser_t

2 years agoFix macro usage in sigtran
Arran Cudbard-Bell [Fri, 24 Nov 2023 15:52:31 +0000 (09:52 -0600)] 
Fix macro usage in sigtran

2 years agoFix typo
Arran Cudbard-Bell [Fri, 24 Nov 2023 15:52:19 +0000 (09:52 -0600)] 
Fix typo

2 years agoMigrate more CONF_PARSER macros
Arran Cudbard-Bell [Fri, 24 Nov 2023 15:42:09 +0000 (09:42 -0600)] 
Migrate more CONF_PARSER macros

2 years agoshut up static analyzer
Alan T. DeKok [Fri, 24 Nov 2023 14:35:15 +0000 (09:35 -0500)] 
shut up static analyzer

2 years agoattribute names should have at least one alphanumeric character
Alan T. DeKok [Fri, 24 Nov 2023 14:07:52 +0000 (09:07 -0500)] 
attribute names should have at least one alphanumeric character

---.../// is not a valid attribute name

2 years agodon't allow alternation, it's confusing
Alan T. DeKok [Fri, 24 Nov 2023 13:59:27 +0000 (08:59 -0500)] 
don't allow alternation, it's confusing

2 years agoinitialize log level here, too
Alan T. DeKok [Fri, 24 Nov 2023 13:37:21 +0000 (08:37 -0500)] 
initialize log level here, too

2 years agoFirst round of conf_parser_t simplifications
Arran Cudbard-Bell [Thu, 23 Nov 2023 15:59:02 +0000 (09:59 -0600)] 
First round of conf_parser_t simplifications

2 years agoEnsure correct python-config is used on RHEL 8
Nick Porter [Thu, 23 Nov 2023 12:54:19 +0000 (12:54 +0000)] 
Ensure correct python-config is used on RHEL 8

2 years agomore convert to new function syntax
Alan T. DeKok [Thu, 23 Nov 2023 12:42:30 +0000 (07:42 -0500)] 
more convert to new function syntax

2 years agoShould be a comparison with flags not types...
Arran Cudbard-Bell [Wed, 22 Nov 2023 23:20:06 +0000 (17:20 -0600)] 
Should be a comparison with flags not types...

2 years agoGCC specific typo
Arran Cudbard-Bell [Wed, 22 Nov 2023 23:06:29 +0000 (17:06 -0600)] 
GCC specific typo

2 years agoAdd macro for mapping C types to FR_TYPE_* values
Arran Cudbard-Bell [Wed, 22 Nov 2023 22:56:48 +0000 (16:56 -0600)] 
Add macro for mapping C types to FR_TYPE_* values

2 years agoTypo
Arran Cudbard-Bell [Wed, 22 Nov 2023 22:56:22 +0000 (16:56 -0600)] 
Typo

2 years agoFixup a bunch of legacy non-struct based C type to FR type mappings
Arran Cudbard-Bell [Wed, 22 Nov 2023 22:42:37 +0000 (16:42 -0600)] 
Fixup a bunch of legacy non-struct based C type to FR type mappings

...don't know how this was missed for so long.   This just leaves size_t as ambiguous.

2 years agoAll these tmpls probably want moving to call envs...
Arran Cudbard-Bell [Wed, 22 Nov 2023 22:40:55 +0000 (16:40 -0600)] 
All these tmpls probably want moving to call envs...

But for the moment just remove the horrible mass of duplicated code that's failing...

2 years agoSplit type and flags fields in conf_parser_t
Arran Cudbard-Bell [Sat, 18 Nov 2023 03:25:32 +0000 (22:25 -0500)] 
Split type and flags fields in conf_parser_t

2 years agosupport syslog, stdout, and stderr
Alan T. DeKok [Wed, 22 Nov 2023 21:49:31 +0000 (16:49 -0500)] 
support syslog, stdout, and stderr

2 years agodon't init / free logs any more. it's not in main config
Alan T. DeKok [Wed, 22 Nov 2023 18:52:07 +0000 (13:52 -0500)] 
don't init / free logs any more.  it's not in main config

2 years agomove log_global_free() to main_config
Alan T. DeKok [Wed, 22 Nov 2023 18:26:37 +0000 (13:26 -0500)] 
move log_global_free() to main_config

as log_global_init() is now there too

2 years agoadd creation flags for file open
Alan T. DeKok [Wed, 22 Nov 2023 18:21:42 +0000 (13:21 -0500)] 
add creation flags for file open

2 years agoallow "destination = NULL" for log debug { ... }
Alan T. DeKok [Wed, 22 Nov 2023 18:04:17 +0000 (13:04 -0500)] 
allow "destination = NULL" for log debug { ... }

and include sample log debug section

2 years agohoist log init to before parsing the different log{...} sections
Alan T. DeKok [Wed, 22 Nov 2023 17:31:19 +0000 (12:31 -0500)] 
hoist log init to before parsing the different log{...} sections

2 years agoclean up, and it helps to push all of the rules
Alan T. DeKok [Wed, 22 Nov 2023 17:29:38 +0000 (12:29 -0500)] 
clean up, and it helps to push all of the rules

2 years agoadd file destination
Alan T. DeKok [Wed, 22 Nov 2023 15:07:09 +0000 (10:07 -0500)] 
add file destination

2 years agoImprove sample dhcp.relay virtual server
Nick Porter [Wed, 22 Nov 2023 12:21:25 +0000 (12:21 +0000)] 
Improve sample dhcp.relay virtual server

2 years agoDebug the packet being sent by rlm_dhcpv4
Nick Porter [Wed, 22 Nov 2023 12:15:35 +0000 (12:15 +0000)] 
Debug the packet being sent by rlm_dhcpv4

2 years agoHeader attributes are also in the list - no need to debug them twice
Nick Porter [Wed, 22 Nov 2023 12:13:33 +0000 (12:13 +0000)] 
Header attributes are also in the list - no need to debug them twice

2 years agotypo
Alan T. DeKok [Wed, 22 Nov 2023 13:16:27 +0000 (08:16 -0500)] 
typo

2 years agoCan't inline call_env_parse either
Arran Cudbard-Bell [Wed, 22 Nov 2023 06:40:54 +0000 (00:40 -0600)] 
Can't inline call_env_parse either

2 years agoFix some remaining uses of .type in module_rlm_t
Arran Cudbard-Bell [Wed, 22 Nov 2023 06:35:54 +0000 (00:35 -0600)] 
Fix some remaining uses of .type in module_rlm_t

2 years agoProbably can't inline recursive calls
Arran Cudbard-Bell [Wed, 22 Nov 2023 05:48:40 +0000 (23:48 -0600)] 
Probably can't inline recursive calls

2 years agoFix weirdly named field
Arran Cudbard-Bell [Wed, 22 Nov 2023 05:44:04 +0000 (23:44 -0600)] 
Fix weirdly named field

2 years agos/call_env_ctx/call_env_rctx/g
Arran Cudbard-Bell [Fri, 17 Nov 2023 23:32:23 +0000 (18:32 -0500)] 
s/call_env_ctx/call_env_rctx/g

2 years agoChange accidentally renamed field back
Arran Cudbard-Bell [Fri, 17 Nov 2023 23:11:32 +0000 (18:11 -0500)] 
Change accidentally renamed field back

2 years agoCorrect permissions on schema2ldif
Arran Cudbard-Bell [Fri, 17 Nov 2023 23:07:22 +0000 (18:07 -0500)] 
Correct permissions on schema2ldif

2 years agoRemove duplicate code for setting up call_envs
Arran Cudbard-Bell [Wed, 15 Nov 2023 23:34:15 +0000 (17:34 -0600)] 
Remove duplicate code for setting up call_envs

Wrap the ctx, tmpls and method_env in a single structure, and just pass that around...

Make the count and parsing functions private, because we're essentially going to do the same work anywhere call envs are used.

2 years agos/module_t.type/module_t.flags/g
Arran Cudbard-Bell [Sat, 18 Nov 2023 01:18:41 +0000 (20:18 -0500)] 
s/module_t.type/module_t.flags/g

2 years agoFix conf_parser struct name
Arran Cudbard-Bell [Sat, 18 Nov 2023 01:17:21 +0000 (20:17 -0500)] 
Fix conf_parser struct name

2 years agocompiler fixes
Alan T. DeKok [Wed, 22 Nov 2023 00:01:27 +0000 (19:01 -0500)] 
compiler fixes

2 years agoadd %log.destination()
Alan T. DeKok [Tue, 21 Nov 2023 23:44:48 +0000 (18:44 -0500)] 
add %log.destination()

2 years agotweak function to allow changing / deleting log dsts
Alan T. DeKok [Tue, 21 Nov 2023 23:44:19 +0000 (18:44 -0500)] 
tweak function to allow changing / deleting log dsts

2 years agoadd function to prepend logging destination
Alan T. DeKok [Tue, 21 Nov 2023 19:57:48 +0000 (14:57 -0500)] 
add function to prepend logging destination

2 years agocache log level in log_dst_t and use it to skip logging destinations.
Alan T. DeKok [Tue, 21 Nov 2023 19:55:39 +0000 (14:55 -0500)] 
cache log level in log_dst_t and use it to skip logging destinations.

The idea is that we can add a debug destination, where debug messages
go.  But normal messages still get passed through to *both* the
debug destination, and to the normal destination.

That we can add debug logging, and still have normal messages
go to the normal log destination

2 years agoforbid %{func:...} and do the last few updates on the tests
Alan T. DeKok [Tue, 21 Nov 2023 13:29:40 +0000 (08:29 -0500)] 
forbid %{func:...} and do the last few updates on the tests

2 years agotypo
Alan T. DeKok [Tue, 21 Nov 2023 13:00:44 +0000 (08:00 -0500)] 
typo

2 years agobe more careful about freeing head
Alan T. DeKok [Tue, 21 Nov 2023 12:53:50 +0000 (07:53 -0500)] 
be more careful about freeing head

2 years agothis doesn't need to be public
Alan T. DeKok [Tue, 21 Nov 2023 12:51:34 +0000 (07:51 -0500)] 
this doesn't need to be public

2 years agowhitespace
Alan T. DeKok [Tue, 21 Nov 2023 12:51:06 +0000 (07:51 -0500)] 
whitespace

2 years agosql_inst -> sql.
Alan T. DeKok [Tue, 21 Nov 2023 12:40:17 +0000 (07:40 -0500)] 
sql_inst -> sql.

As part of cleaning up redundant names

2 years agoHoist mutex lock above check of client->ht (CID #1551708)
James Jones [Mon, 20 Nov 2023 21:24:08 +0000 (15:24 -0600)] 
Hoist mutex lock above check of client->ht (CID #1551708)

Other checks of client->ht are so guarded.

2 years agodon't use the same function typedef name for two different things
Alan T. DeKok [Mon, 20 Nov 2023 19:54:29 +0000 (14:54 -0500)] 
don't use the same function typedef name for two different things

2 years agoreturn correct data type
Alan T. DeKok [Mon, 20 Nov 2023 19:50:55 +0000 (14:50 -0500)] 
return correct data type

2 years agotry moving to the new syntax again
Alan T. DeKok [Mon, 20 Nov 2023 19:45:17 +0000 (14:45 -0500)] 
try moving to the new syntax again

2 years agoHandle subst == NULL (CID #1551707)
Nick Porter [Mon, 20 Nov 2023 12:29:55 +0000 (12:29 +0000)] 
Handle subst == NULL (CID #1551707)

2 years agodocument clang 16+ suppressions
Alan T. DeKok [Sun, 19 Nov 2023 22:47:28 +0000 (17:47 -0500)] 
document clang 16+ suppressions

-Wunsafe-buffer-usage is useless for C code, as it complains
about essentially every use of pointers.

-Wcast-function-type-strict complains about casting functions
which take (void*) to functions which take a typed pointer.  This
pattern is used extensively in the dlist wrappers.

-Wreserved-identifier complains about identifiers which begin
with "_".  This is used all over the place in our code, but is
generally forbidden in C.

-Wc2x-extensions complains about initializers like "foo = {}"
which is fine, but which isn't C99.

-Wextra-semi-stmt complains about ";;" at the end of lines.
Our code is clean, but some system header files are crap.

2 years agoreturn correct value
Alan T. DeKok [Sun, 19 Nov 2023 22:14:47 +0000 (17:14 -0500)] 
return correct value

2 years agouse correct data types, and check for overflow
Alan T. DeKok [Sun, 19 Nov 2023 14:17:49 +0000 (09:17 -0500)] 
use correct data types, and check for overflow

2 years agoclean up and check for subst==NULL
Alan T. DeKok [Sun, 19 Nov 2023 14:15:19 +0000 (09:15 -0500)] 
clean up and check for subst==NULL

2 years agowe don't care about the results of dhcpv4_decode
Alan T. DeKok [Sun, 19 Nov 2023 12:56:50 +0000 (07:56 -0500)] 
we don't care about the results of dhcpv4_decode

and print the correct pair list we just decoded :(

2 years agoadd support for uncompressed dns labels
Alan T. DeKok [Sat, 18 Nov 2023 19:18:47 +0000 (14:18 -0500)] 
add support for uncompressed dns labels

2 years agoignore temporary editor files
Alan T. DeKok [Sat, 18 Nov 2023 19:18:30 +0000 (14:18 -0500)] 
ignore temporary editor files

2 years agoallow for password longer than 128 characters
Alan T. DeKok [Sat, 18 Nov 2023 14:12:56 +0000 (09:12 -0500)] 
allow for password longer than 128 characters

and update aruba dictionary for encrypted attribute

Manual port of commit 12a2cf4a6f8

2 years agoRename CONF_PARSER to conf_parser_t to match call_env_parser_t
Arran Cudbard-Bell [Fri, 17 Nov 2023 19:11:43 +0000 (14:11 -0500)] 
Rename CONF_PARSER to conf_parser_t to match call_env_parser_t

2 years agotypo
Alan T. DeKok [Fri, 17 Nov 2023 19:00:26 +0000 (14:00 -0500)] 
typo

2 years agomove more functions to new syntax
Alan T. DeKok [Fri, 17 Nov 2023 18:44:57 +0000 (13:44 -0500)] 
move more functions to new syntax

2 years agomore move functions to new syntax
Alan T. DeKok [Fri, 17 Nov 2023 15:53:13 +0000 (10:53 -0500)] 
more move functions to new syntax

2 years agofixes
Alan T. DeKok [Fri, 17 Nov 2023 15:51:50 +0000 (10:51 -0500)] 
fixes

2 years agogo back until we can do more tests
Alan T. DeKok [Fri, 17 Nov 2023 15:37:53 +0000 (10:37 -0500)] 
go back until we can do more tests

2 years agoquote things
Alan T. DeKok [Fri, 17 Nov 2023 15:11:11 +0000 (10:11 -0500)] 
quote things

2 years agomore move to new function syntax
Alan T. DeKok [Fri, 17 Nov 2023 15:09:32 +0000 (10:09 -0500)] 
more move to new function syntax

2 years agomove to new function syntax
Alan T. DeKok [Fri, 17 Nov 2023 14:24:14 +0000 (09:24 -0500)] 
move to new function syntax

2 years agoskip whitespace for comma-separated argv
Alan T. DeKok [Fri, 17 Nov 2023 14:16:57 +0000 (09:16 -0500)] 
skip whitespace for comma-separated argv

2 years agomark up when we parsed an xlat with an xlat wrapper
Alan T. DeKok [Thu, 16 Nov 2023 22:24:58 +0000 (17:24 -0500)] 
mark up when we parsed an xlat with an xlat wrapper

so that the print routines can print something sane

2 years agoClean up modeling file (#5222)
James Jones [Thu, 16 Nov 2023 23:06:21 +0000 (17:06 -0600)] 
Clean up modeling file (#5222)

Remove models that don't work, replace our leading comment with
one that is commonly used in open source modeling files (slightly
edited).

2 years agowe can't have an empty xlat expansion.
Alan T. DeKok [Thu, 16 Nov 2023 22:05:03 +0000 (17:05 -0500)] 
we can't have an empty xlat expansion.

2 years agoupdate CC_HINT for removed argument
Alan T. DeKok [Thu, 16 Nov 2023 15:09:09 +0000 (10:09 -0500)] 
update CC_HINT for removed argument