]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agolink rlm_soh to libfreeradius-soh
Arran Cudbard-Bell [Wed, 16 May 2018 13:31:41 +0000 (19:31 +0600)] 
link rlm_soh to libfreeradius-soh

8 years agoMove soh code of the server core into a library
Arran Cudbard-Bell [Wed, 16 May 2018 13:17:46 +0000 (19:17 +0600)] 
Move soh code of the server core into a library

8 years agoMerge built in paircmp functions back into the server library
Arran Cudbard-Bell [Wed, 16 May 2018 12:26:35 +0000 (18:26 +0600)] 
Merge built in paircmp functions back into the server library

8 years agoFix module-failure-message test order
Arran Cudbard-Bell [Wed, 16 May 2018 12:26:07 +0000 (18:26 +0600)] 
Fix module-failure-message test order

8 years agoTypo
Arran Cudbard-Bell [Wed, 16 May 2018 09:28:00 +0000 (15:28 +0600)] 
Typo

8 years agoRename pair.c to paircmp.c
Arran Cudbard-Bell [Wed, 16 May 2018 08:58:56 +0000 (14:58 +0600)] 
Rename pair.c to paircmp.c

8 years agoMove xlat_eval_do into xlat_eval and rename to xlat_eval_pair
Arran Cudbard-Bell [Wed, 16 May 2018 08:57:38 +0000 (14:57 +0600)] 
Move xlat_eval_do into xlat_eval and rename to xlat_eval_pair

8 years agoMove pair list logging functions into log.c
Arran Cudbard-Bell [Wed, 16 May 2018 08:53:25 +0000 (14:53 +0600)] 
Move pair list logging functions into log.c

8 years agoRemove radius_pair_create
Arran Cudbard-Bell [Wed, 16 May 2018 08:40:44 +0000 (14:40 +0600)] 
Remove radius_pair_create

8 years agoAdd %pP custom format specifier to allow printing of VALUE_PAIRs
Arran Cudbard-Bell [Wed, 16 May 2018 08:37:58 +0000 (14:37 +0600)] 
Add %pP custom format specifier to allow printing of VALUE_PAIRs

8 years agoRemove calls to radius_pair_create in stats.c
Arran Cudbard-Bell [Wed, 16 May 2018 06:52:44 +0000 (12:52 +0600)] 
Remove calls to radius_pair_create in stats.c

8 years agoMove call to radius_pair_create
Arran Cudbard-Bell [Wed, 16 May 2018 06:47:11 +0000 (12:47 +0600)] 
Move call to radius_pair_create

8 years agoFix log function declarations
Arran Cudbard-Bell [Wed, 16 May 2018 06:44:15 +0000 (12:44 +0600)] 
Fix log function declarations

8 years agoMove radius_(get_|copy)_vp into xlat_func.c
Arran Cudbard-Bell [Wed, 16 May 2018 06:41:46 +0000 (12:41 +0600)] 
Move radius_(get_|copy)_vp  into xlat_func.c

They're only used by xlat functions and should go away once all the functions have been converted.

8 years agoDoxygen
Arran Cudbard-Bell [Wed, 16 May 2018 06:32:57 +0000 (12:32 +0600)] 
Doxygen

8 years agoPull expansion documentation out of the rlm_expr config file and put it in the unlang...
Arran Cudbard-Bell [Wed, 16 May 2018 06:28:08 +0000 (12:28 +0600)] 
Pull expansion documentation out of the rlm_expr config file and put it in the unlang page

8 years agoAdd the rest of the sha2 and sha3 functions
Arran Cudbard-Bell [Wed, 16 May 2018 06:27:44 +0000 (12:27 +0600)] 
Add the rest of the sha2 and sha3 functions

8 years agoMove the escape expansions into their own module
Arran Cudbard-Bell [Wed, 16 May 2018 05:20:37 +0000 (11:20 +0600)] 
Move the escape expansions into their own module

8 years agoWrap fr_log_init so we can pre-resolve Module-Failure-Msg
Arran Cudbard-Bell [Wed, 16 May 2018 05:04:49 +0000 (11:04 +0600)] 
Wrap fr_log_init so we can pre-resolve Module-Failure-Msg

s/dictionary_dir/dict_dir/

8 years agos/radlog/log/
Arran Cudbard-Bell [Wed, 16 May 2018 04:16:06 +0000 (10:16 +0600)] 
s/radlog/log/

8 years agoMove xlat functions out of rlm_expr and back into xlat_func
Arran Cudbard-Bell [Wed, 16 May 2018 03:47:23 +0000 (09:47 +0600)] 
Move xlat functions out of rlm_expr and back into xlat_func

We probably need an rlm_escape to deal with the escape expansions

8 years agoTypo
Arran Cudbard-Bell [Tue, 15 May 2018 08:18:26 +0000 (14:18 +0600)] 
Typo

8 years agoAutoload radsnmp attrs
Arran Cudbard-Bell [Tue, 15 May 2018 08:16:36 +0000 (14:16 +0600)] 
Autoload radsnmp attrs

8 years agoAutoclient radclient attributes
Arran Cudbard-Bell [Tue, 15 May 2018 07:25:47 +0000 (13:25 +0600)] 
Autoclient radclient attributes

8 years agoInitialise OpenSSL library later after we've called main_config_init
Arran Cudbard-Bell [Tue, 15 May 2018 06:35:16 +0000 (12:35 +0600)] 
Initialise OpenSSL library later after we've called main_config_init

8 years agoFix typo
Arran Cudbard-Bell [Tue, 15 May 2018 05:09:17 +0000 (11:09 +0600)] 
Fix typo

8 years agoRemove fr_pair_afrom_num in proto_detail
Arran Cudbard-Bell [Tue, 15 May 2018 04:25:33 +0000 (10:25 +0600)] 
Remove fr_pair_afrom_num in proto_detail

8 years agoUnused label
Arran Cudbard-Bell [Tue, 15 May 2018 04:24:40 +0000 (10:24 +0600)] 
Unused label

8 years agoRemove unused proxy code
Arran Cudbard-Bell [Tue, 15 May 2018 04:11:22 +0000 (10:11 +0600)] 
Remove unused proxy code

8 years agoCONF_SECTION is unused
Arran Cudbard-Bell [Tue, 15 May 2018 04:09:37 +0000 (10:09 +0600)] 
CONF_SECTION is unused

8 years agoAutoload unit_test_module attributes
Arran Cudbard-Bell [Tue, 15 May 2018 03:53:52 +0000 (09:53 +0600)] 
Autoload unit_test_module attributes

8 years agoRemove call to radius_pair_create in rlm_digest
Arran Cudbard-Bell [Tue, 15 May 2018 03:26:07 +0000 (09:26 +0600)] 
Remove call to radius_pair_create in rlm_digest

8 years agoAutoload rlm_stats attributes
Arran Cudbard-Bell [Tue, 15 May 2018 03:09:33 +0000 (09:09 +0600)] 
Autoload rlm_stats attributes

8 years agoAutoload libfreeradius-tls attributes
Arran Cudbard-Bell [Tue, 15 May 2018 02:49:42 +0000 (08:49 +0600)] 
Autoload libfreeradius-tls attributes

8 years agomissed case statement
Arran Cudbard-Bell [Mon, 14 May 2018 12:42:49 +0000 (18:42 +0600)] 
missed case statement

8 years agoAutoload the internal dictionary
Arran Cudbard-Bell [Mon, 14 May 2018 11:45:09 +0000 (17:45 +0600)] 
Autoload the internal dictionary

8 years agoDoxygen
Arran Cudbard-Bell [Mon, 14 May 2018 11:42:50 +0000 (17:42 +0600)] 
Doxygen

8 years agofr_pair_value_from_str should take a signed len
Arran Cudbard-Bell [Mon, 14 May 2018 11:07:55 +0000 (17:07 +0600)] 
fr_pair_value_from_str should take a signed len

8 years agoFix debug message
Arran Cudbard-Bell [Mon, 14 May 2018 11:07:19 +0000 (17:07 +0600)] 
Fix debug message

8 years agoAvoid unecessary lookups
Arran Cudbard-Bell [Mon, 14 May 2018 11:07:07 +0000 (17:07 +0600)] 
Avoid unecessary lookups

8 years agoFix some weird value assignment code
Arran Cudbard-Bell [Mon, 14 May 2018 11:06:46 +0000 (17:06 +0600)] 
Fix some weird value assignment code

8 years agoRework pair_(add|update) so the caller can determine if a pair already existead
Arran Cudbard-Bell [Mon, 14 May 2018 05:50:27 +0000 (11:50 +0600)] 
Rework pair_(add|update) so the caller can determine if a pair already existead

8 years agostart of toy DHCP processor
Alan T. DeKok [Sun, 13 May 2018 11:38:56 +0000 (07:38 -0400)] 
start of toy DHCP processor

we probably still want to have different libraries for
other packet types.

And, update the encoder to set the destination IP based on
the encoded packet.  e.g. broadcast, unicast, sent to giaddr,
or forwarded to another DHCP server

8 years agoMinor rlm_passwd fixes
Arran Cudbard-Bell [Sun, 13 May 2018 05:31:45 +0000 (11:31 +0600)] 
Minor rlm_passwd fixes

8 years agoReturning "No error" is confusing. Assume the caller thought there was an error.
Arran Cudbard-Bell [Sat, 12 May 2018 13:21:23 +0000 (19:21 +0600)] 
Returning "No error" is confusing.  Assume the caller thought there was an error.

8 years agoadded sample client
Alan T. DeKok [Sat, 12 May 2018 12:40:55 +0000 (08:40 -0400)] 
added sample client

8 years agoRemove shadowed attribute
Arran Cudbard-Bell [Fri, 11 May 2018 12:38:21 +0000 (18:38 +0600)] 
Remove shadowed attribute

8 years agoFix issues raised by GCC
Arran Cudbard-Bell [Fri, 11 May 2018 11:25:44 +0000 (17:25 +0600)] 
Fix issues raised by GCC

8 years agoRemove unused macros
Arran Cudbard-Bell [Fri, 11 May 2018 09:37:55 +0000 (15:37 +0600)] 
Remove unused macros

8 years agoFix cursor macros
Arran Cudbard-Bell [Fri, 11 May 2018 09:31:48 +0000 (15:31 +0600)] 
Fix cursor macros

8 years agoAutoload eap base attributes
Arran Cudbard-Bell [Fri, 11 May 2018 09:27:04 +0000 (15:27 +0600)] 
Autoload eap base attributes

8 years agoAutoload attributes for all eap methods
Arran Cudbard-Bell [Fri, 11 May 2018 08:48:09 +0000 (14:48 +0600)] 
Autoload attributes for all eap methods

Consolidate list moving/copying API

8 years agoForward a subset of signals to the process being executed by jlibtool
Arran Cudbard-Bell [Fri, 11 May 2018 08:01:32 +0000 (14:01 +0600)] 
Forward a subset of signals to the process being executed by jlibtool

This lets us do stuff like:

TEST_PORT=12350 build/make/jlibtool --mode=execute lldb -- build/bin/local/radiusd -PX -d "reeradius-server/src/tests/eapol_test/config" -n test -D "freeradius-server/src/tests/eapol_test/config"

...and still pause execution with CTRL-C, and have other signals the debugger uses work correctly.

8 years agoConvert some calls from mcopy to fr_pair_list_dup
Arran Cudbard-Bell [Thu, 10 May 2018 16:06:01 +0000 (22:06 +0600)] 
Convert some calls from mcopy to fr_pair_list_dup

8 years agoadd local clients here, too
Alan T. DeKok [Thu, 10 May 2018 14:29:47 +0000 (10:29 -0400)] 
add local clients here, too

8 years agoadd local clients for RADIUS
Alan T. DeKok [Thu, 10 May 2018 14:27:15 +0000 (10:27 -0400)] 
add local clients for RADIUS

8 years agoadd broadcast config option
Alan T. DeKok [Thu, 10 May 2018 12:52:16 +0000 (08:52 -0400)] 
add broadcast config option

8 years agomodifications for new proto_dhcpv4
Alan T. DeKok [Thu, 10 May 2018 12:47:34 +0000 (08:47 -0400)] 
modifications for new proto_dhcpv4

8 years agoremove unused field
Alan T. DeKok [Thu, 10 May 2018 00:04:45 +0000 (20:04 -0400)] 
remove unused field

8 years agoFix shadow definition
Arran Cudbard-Bell [Thu, 10 May 2018 14:57:47 +0000 (20:57 +0600)] 
Fix shadow definition

8 years agoChange how fr_pair_list_copy works
Arran Cudbard-Bell [Thu, 10 May 2018 14:01:56 +0000 (20:01 +0600)] 
Change how fr_pair_list_copy works

8 years agoFix duplicate iterator function, and add function to iterate by parent
Arran Cudbard-Bell [Thu, 10 May 2018 08:10:56 +0000 (14:10 +0600)] 
Fix duplicate iterator function, and add function to iterate by parent

Because vendors are represented in the dictionary hierarchy this allows you to iterate over a specific vendor's attributes.

8 years agos/fr_pair_list_copy/fr_pair_list_dup/
Arran Cudbard-Bell [Thu, 10 May 2018 08:07:35 +0000 (14:07 +0600)] 
s/fr_pair_list_copy/fr_pair_list_dup/

The whole mcopy thing is changing (done by DA instead of attribute numbers), and this helps disambiguate

8 years agoUpdate issue_template.md
Arran Cudbard-Bell [Thu, 10 May 2018 13:45:55 +0000 (19:45 +0600)] 
Update issue_template.md

8 years agoMake formatting more explicit
Arran Cudbard-Bell [Thu, 10 May 2018 13:45:07 +0000 (19:45 +0600)] 
Make formatting more explicit

8 years agosome protocols don't have expiry timers
Alan T. DeKok [Wed, 9 May 2018 23:58:54 +0000 (19:58 -0400)] 
some protocols don't have expiry timers

8 years agoallow replies for NOOP, too
Alan T. DeKok [Wed, 9 May 2018 23:55:39 +0000 (19:55 -0400)] 
allow replies for NOOP, too

8 years agomove network parsing to common API
Alan T. DeKok [Wed, 9 May 2018 21:34:37 +0000 (17:34 -0400)] 
move network parsing to common API

8 years agomove bulk of fr_dhcpv4_packet_encode() to fr_dhcpv4_encode()
Alan T. DeKok [Wed, 9 May 2018 21:23:21 +0000 (17:23 -0400)] 
move bulk of fr_dhcpv4_packet_encode() to fr_dhcpv4_encode()

and have proto_dhcpv4 use it.

8 years agotypo in function call
Alan T. DeKok [Wed, 9 May 2018 21:22:05 +0000 (17:22 -0400)] 
typo in function call

8 years agopacket_decode works as-is
Alan T. DeKok [Wed, 9 May 2018 21:08:43 +0000 (17:08 -0400)] 
packet_decode works as-is

8 years agotypo
Alan T. DeKok [Wed, 9 May 2018 21:04:39 +0000 (17:04 -0400)] 
typo

8 years agoproto_dhcp_udp now validates the packets it receives
Alan T. DeKok [Wed, 9 May 2018 21:04:02 +0000 (17:04 -0400)] 
proto_dhcp_udp now validates the packets it receives

8 years agomove to newer API
Alan T. DeKok [Wed, 9 May 2018 20:55:32 +0000 (16:55 -0400)] 
move to newer API

8 years agostart cleaning up API
Alan T. DeKok [Wed, 9 May 2018 20:43:41 +0000 (16:43 -0400)] 
start cleaning up API

packet_ok() functions check if the packet is OK.
They shouldn't allocate a RADIUS_PACKET.

8 years agothe transaction may be defunct
Alan T. DeKok [Wed, 9 May 2018 15:23:37 +0000 (11:23 -0400)] 
the transaction may be defunct

If so, don't do REDEBUG

8 years agoignore DUP signals
Alan T. DeKok [Wed, 9 May 2018 15:21:26 +0000 (11:21 -0400)] 
ignore DUP signals

8 years agoreturn error
Alan T. DeKok [Wed, 9 May 2018 00:49:59 +0000 (20:49 -0400)] 
return error

8 years agounused variables
Alan T. DeKok [Tue, 8 May 2018 23:41:31 +0000 (19:41 -0400)] 
unused variables

8 years agofine... make this 255
Alan T. DeKok [Tue, 8 May 2018 23:39:40 +0000 (19:39 -0400)] 
fine... make this 255

8 years agohelps to have a makefile
Alan T. DeKok [Tue, 8 May 2018 22:53:11 +0000 (18:53 -0400)] 
helps to have a makefile

8 years agotemplate for DHCPv4 over UDP.
Alan T. DeKok [Tue, 8 May 2018 21:11:08 +0000 (17:11 -0400)] 
template for DHCPv4 over UDP.

it still needs to have the packet encode/decode inserted,
but the basics are there

8 years agomove include to header file
Alan T. DeKok [Tue, 8 May 2018 21:10:49 +0000 (17:10 -0400)] 
move include to header file

8 years agoset packet lengths to match VMPS headers
Alan T. DeKok [Tue, 8 May 2018 21:00:40 +0000 (17:00 -0400)] 
set packet lengths to match VMPS headers

8 years agosanity checks for IO functions
Alan T. DeKok [Tue, 8 May 2018 20:58:12 +0000 (16:58 -0400)] 
sanity checks for IO functions

8 years agodo dup checks on the correct field
Alan T. DeKok [Tue, 8 May 2018 20:57:05 +0000 (16:57 -0400)] 
do dup checks on the correct field

8 years agostart moving to new framework for DHCP.
Alan T. DeKok [Tue, 8 May 2018 20:45:08 +0000 (16:45 -0400)] 
start moving to new framework for DHCP.

We still need to add proto_dhcpv4_udp, and the various
process handlers.  But this compiles at least.

8 years agoremove FR_DHCP_OFFSET, it's no longer necessary
Alan T. DeKok [Tue, 8 May 2018 20:19:57 +0000 (16:19 -0400)] 
remove FR_DHCP_OFFSET, it's no longer necessary

and move proto_dhcpv4.c out of the way in preparation
for new code

8 years agofix example so that it works
Alan T. DeKok [Tue, 8 May 2018 13:31:56 +0000 (09:31 -0400)] 
fix example so that it works

8 years agominor fixes
Alan T. DeKok [Tue, 8 May 2018 13:30:01 +0000 (09:30 -0400)] 
minor fixes

8 years agouse new autoload framework
Alan T. DeKok [Tue, 8 May 2018 12:38:44 +0000 (08:38 -0400)] 
use new autoload framework

8 years agoset "out" to main_config.dict
Alan T. DeKok [Tue, 8 May 2018 12:27:29 +0000 (08:27 -0400)] 
set "out" to main_config.dict

until such time as they are different

8 years agoMerge pull request #2227 from chrisd8088/radwho_check_inet_pton_ret
Alan DeKok [Tue, 8 May 2018 12:26:24 +0000 (08:26 -0400)] 
Merge pull request #2227 from chrisd8088/radwho_check_inet_pton_ret

Print usage and exit when -N used with invalid IP.

8 years agoPrint usage and exit when -N used with invalid IP. 2227/head
Chris Darroch [Tue, 8 May 2018 06:42:33 +0000 (23:42 -0700)] 
Print usage and exit when -N used with invalid IP.

Check for all possible error return values from inet_pton(),
particularly zero, as this indicates an invalid IP address was
passed in the input string, whereas -1 is returned only when the
address family parameter is invalid, which is never the case
here because it's always AF_INET.

8 years agohack up autoload via fr_dict_read()
Alan T. DeKok [Mon, 7 May 2018 19:19:30 +0000 (15:19 -0400)] 
hack up autoload via fr_dict_read()

8 years agore-order (again)
Alan T. DeKok [Mon, 7 May 2018 18:24:04 +0000 (14:24 -0400)] 
re-order (again)

and autoloads are done last to first, so we want or register
the dict loader last, and then the attribute loader

8 years agowe don't need to check anything here
Alan T. DeKok [Mon, 7 May 2018 18:17:14 +0000 (14:17 -0400)] 
we don't need to check anything here

8 years agowe don't need talloc && types for a 16-character name
Alan T. DeKok [Mon, 7 May 2018 18:10:19 +0000 (14:10 -0400)] 
we don't need talloc && types for a 16-character name

less code is good, too

8 years agofr_dict_autoload() doesn't quite work yet
Alan T. DeKok [Mon, 7 May 2018 17:01:13 +0000 (13:01 -0400)] 
fr_dict_autoload() doesn't quite work yet

there's no "dictionary.radius", so we can't try loading one

8 years agoremove unused attribute
Alan T. DeKok [Mon, 7 May 2018 16:55:46 +0000 (12:55 -0400)] 
remove unused attribute