]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Tue, 3 Jul 2018 17:32:49 +0000 (13:32 -0400)]
move syntax argument checking to it's own function
in preparation for allowing alternation and optional arguments
Alan T. DeKok [Tue, 3 Jul 2018 17:28:08 +0000 (13:28 -0400)]
move vararg check to before check for valid name
Alan T. DeKok [Tue, 3 Jul 2018 17:15:36 +0000 (13:15 -0400)]
only allow real data types
Alan T. DeKok [Tue, 3 Jul 2018 17:02:22 +0000 (13:02 -0400)]
support variable arguments
as:
command IPADDR ...
which means "many IP addresses".
The argument before the "..." MUST be a known data type.
Otherwise it doesn't make any sense
Arran Cudbard-Bell [Tue, 3 Jul 2018 17:52:48 +0000 (13:52 -0400)]
conn may be NULL too
Arran Cudbard-Bell [Tue, 3 Jul 2018 17:51:43 +0000 (13:51 -0400)]
Typo
Arran Cudbard-Bell [Tue, 3 Jul 2018 17:51:00 +0000 (13:51 -0400)]
Don't crash on early exit
Arran Cudbard-Bell [Tue, 3 Jul 2018 17:43:36 +0000 (13:43 -0400)]
Fix abort on error
Alan T. DeKok [Tue, 3 Jul 2018 15:43:40 +0000 (11:43 -0400)]
fix up "taint" fix
Alan T. DeKok [Tue, 3 Jul 2018 15:39:20 +0000 (11:39 -0400)]
document "perl_flags" and "-T"
Alan T. DeKok [Tue, 3 Jul 2018 14:49:31 +0000 (10:49 -0400)]
taint all variables.
Alan T. DeKok [Tue, 3 Jul 2018 13:27:28 +0000 (09:27 -0400)]
use cmd->intermediate for checks
Alan T. DeKok [Tue, 3 Jul 2018 13:12:26 +0000 (09:12 -0400)]
remove extraneous assignment
Alan T. DeKok [Tue, 3 Jul 2018 11:22:32 +0000 (07:22 -0400)]
add fp_err to commands
so that errors can go to a different path
Alan T. DeKok [Tue, 3 Jul 2018 11:16:21 +0000 (07:16 -0400)]
remove more debugging
Alan T. DeKok [Mon, 2 Jul 2018 23:10:11 +0000 (19:10 -0400)]
quiet clang scan
Arran Cudbard-Bell [Mon, 2 Jul 2018 20:22:31 +0000 (16:22 -0400)]
Fix various misc warnings
Arran Cudbard-Bell [Mon, 2 Jul 2018 20:22:17 +0000 (16:22 -0400)]
Delete the correct class of events
Alan T. DeKok [Mon, 2 Jul 2018 19:16:53 +0000 (15:16 -0400)]
make callbacks take fr_cmd_info_t
Alan T. DeKok [Mon, 2 Jul 2018 19:16:40 +0000 (15:16 -0400)]
remove debug code
Alan T. DeKok [Mon, 2 Jul 2018 19:06:15 +0000 (15:06 -0400)]
make tab expansions work again
Alan T. DeKok [Mon, 2 Jul 2018 19:06:02 +0000 (15:06 -0400)]
cleanups
Alan T. DeKok [Mon, 2 Jul 2018 14:32:37 +0000 (10:32 -0400)]
move argc/argv to a data structure
because we have to pass argc, max_argc, argv, and value_box_argv
to a number of functions. So we might as well use a struct
instead of passing many arguments to a function
Arran Cudbard-Bell [Mon, 2 Jul 2018 14:28:15 +0000 (10:28 -0400)]
We actually call bootstrap, not instantiate
Arran Cudbard-Bell [Mon, 2 Jul 2018 14:26:31 +0000 (10:26 -0400)]
Explain DL priorities
Arran Cudbard-Bell [Mon, 2 Jul 2018 14:11:01 +0000 (10:11 -0400)]
Ensure proto_* modules loaded by listeners are freed correctly
Arran Cudbard-Bell [Sun, 1 Jul 2018 17:35:24 +0000 (13:35 -0400)]
Fix benign memory leak of devices list in radsniff
Arran Cudbard-Bell [Sun, 1 Jul 2018 17:31:22 +0000 (13:31 -0400)]
autofree is freed atexit anyway, conf should be freed first to ensure orderly exit
Arran Cudbard-Bell [Sun, 1 Jul 2018 17:30:40 +0000 (13:30 -0400)]
Looks like radiusd now needs to be linked against readline
Arran Cudbard-Bell [Sun, 1 Jul 2018 17:30:09 +0000 (13:30 -0400)]
Quiet compiler warnings
Arran Cudbard-Bell [Sun, 1 Jul 2018 17:26:49 +0000 (13:26 -0400)]
Do lsan/valgrind checks once on init
Arran Cudbard-Bell [Sun, 1 Jul 2018 13:30:58 +0000 (09:30 -0400)]
Update LICENSE
So that GitHub picks the license up correctly *sigh*
Alan T. DeKok [Sun, 1 Jul 2018 13:03:41 +0000 (09:03 -0400)]
remove unused variable
Alan T. DeKok [Sun, 1 Jul 2018 12:24:47 +0000 (08:24 -0400)]
don't re-verify the parameters
Alan T. DeKok [Sun, 1 Jul 2018 12:23:16 +0000 (08:23 -0400)]
use CMD_MAX_ARGV for commonality
Alan T. DeKok [Sun, 1 Jul 2018 12:23:07 +0000 (08:23 -0400)]
minor cleanups
Alan T. DeKok [Sun, 1 Jul 2018 12:22:32 +0000 (08:22 -0400)]
free the autofree context
Arran Cudbard-Bell [Sun, 1 Jul 2018 12:19:08 +0000 (08:19 -0400)]
Temporary fix for access after free in dl loader
Arran Cudbard-Bell [Sat, 30 Jun 2018 14:31:36 +0000 (10:31 -0400)]
Parent the main config for radsniff from the autofree context
Arran Cudbard-Bell [Sat, 30 Jun 2018 14:30:34 +0000 (10:30 -0400)]
Use uint8_t in case we ever do more complex return codes in future and need to deal with endianess issues
Alan T. DeKok [Sat, 30 Jun 2018 13:31:26 +0000 (09:31 -0400)]
we don't need an intermediate variable
Alan T. DeKok [Sat, 30 Jun 2018 13:07:21 +0000 (09:07 -0400)]
remove debugging text
Alan T. DeKok [Sat, 30 Jun 2018 12:56:49 +0000 (08:56 -0400)]
remove fr_command_runnable()
we now rely on fr_command_str_to_argv() to do string splitting,
argv updating, syntax checking, and returning whether or not
the command is runnable
Alan T. DeKok [Sat, 30 Jun 2018 12:55:58 +0000 (08:55 -0400)]
fix fr_command_str_to_argv()
by splitting the work into separate stages
Alan T. DeKok [Sat, 30 Jun 2018 12:54:20 +0000 (08:54 -0400)]
value box functions may mangle types
so use temporary variable
Alan T. DeKok [Fri, 29 Jun 2018 02:41:04 +0000 (22:41 -0400)]
get next buffer offset from last argument, not from first argument
Alan T. DeKok [Thu, 28 Jun 2018 21:32:14 +0000 (17:32 -0400)]
account for "name", which uses one argc
Alan T. DeKok [Thu, 28 Jun 2018 21:14:41 +0000 (17:14 -0400)]
moving forward... many cleanups
* entering "foo bar baz" as a partial command now lets you do
"exit" once to get back to the main prompt. i.e. you DON'T
have to type "exit" 3 times.
* somewhat working fr_command_str_to_argv() function
which now replaces fr_command_runnable().
As the str_to_argv() function should also be aware of data types
for command syntax (e.g. FR_TYPE_STRING), and parse those correctly.
i.e. with strings that contain spaces.
Sadly, it doesn't seem to quite work yet...
Alan T. DeKok [Thu, 28 Jun 2018 21:01:32 +0000 (17:01 -0400)]
remove OSF stuff.
This should likely be removed from everything...
Alan T. DeKok [Thu, 28 Jun 2018 20:17:38 +0000 (16:17 -0400)]
tables must define a callback function
Alan T. DeKok [Thu, 28 Jun 2018 16:34:49 +0000 (12:34 -0400)]
check for too many parameters
Arran Cudbard-Bell [Sat, 30 Jun 2018 01:49:23 +0000 (21:49 -0400)]
Cleanup memory better on exit
Arran Cudbard-Bell [Fri, 29 Jun 2018 21:05:50 +0000 (17:05 -0400)]
Push dlopen access errors into the error stack
Alan T. DeKok [Thu, 28 Jun 2018 14:10:31 +0000 (10:10 -0400)]
const issues
Alan T. DeKok [Thu, 28 Jun 2018 14:08:41 +0000 (10:08 -0400)]
add fr_command_str_to_argv() function
which can the use it's brains to allow quoted strings
when the input syntax has FR_TYPE_STRING. And disallow quoted
strings elsewhere.
Alan T. DeKok [Thu, 28 Jun 2018 13:46:21 +0000 (09:46 -0400)]
skip blank lines on input
Alan T. DeKok [Thu, 28 Jun 2018 13:43:33 +0000 (09:43 -0400)]
break out earlier in readline
Alan T. DeKok [Thu, 28 Jun 2018 13:15:15 +0000 (09:15 -0400)]
close stdin on the theory that it will make readine() fail
Alan T. DeKok [Thu, 28 Jun 2018 12:50:38 +0000 (08:50 -0400)]
more functionality
* make everything talloc'd from a local ctx
* add contexts, so you can do "radmin> foo" and get a "... foo> " prompt
* parse "exit" when context>0, in order to exit from a context
* parse "help" when context>0, in order to give context-specific help
* add "test" command for testing.
Alan T. DeKok [Thu, 28 Jun 2018 12:47:00 +0000 (08:47 -0400)]
insert into the correct location
Alan T. DeKok [Thu, 28 Jun 2018 12:29:37 +0000 (08:29 -0400)]
add "runnable" to see if a command is runnable.
So we can allow the admin to enter partial commands, and
have them be part of a context
Arran Cudbard-Bell [Thu, 28 Jun 2018 12:18:00 +0000 (08:18 -0400)]
Set default RADDBDIR and DICTDIR
Arran Cudbard-Bell [Thu, 28 Jun 2018 03:27:18 +0000 (23:27 -0400)]
Doxygen
Arran Cudbard-Bell [Thu, 28 Jun 2018 03:21:00 +0000 (23:21 -0400)]
Better errors
Arran Cudbard-Bell [Thu, 28 Jun 2018 00:47:20 +0000 (20:47 -0400)]
Fix for ${name} reference expansion
Arran Cudbard-Bell [Wed, 27 Jun 2018 00:54:22 +0000 (20:54 -0400)]
Add "parent" or "base" pointer to custom parsing functions
This allows parsing functions to access fields in the structure for previously parsed values... and potentially adds ordering issues, so don't reorder the CONF_PARSER entries that have functions!
Alan T. DeKok [Thu, 28 Jun 2018 00:42:00 +0000 (20:42 -0400)]
do help on remaining arguments
Alan T. DeKok [Thu, 28 Jun 2018 00:41:01 +0000 (20:41 -0400)]
skip the argument we just used
Alan T. DeKok [Thu, 28 Jun 2018 00:35:49 +0000 (20:35 -0400)]
set "parents" properly
Alan T. DeKok [Wed, 27 Jun 2018 22:29:48 +0000 (18:29 -0400)]
move "help" to function call
Alan T. DeKok [Wed, 27 Jun 2018 22:29:22 +0000 (18:29 -0400)]
syntax OR callback
Alan T. DeKok [Wed, 27 Jun 2018 22:21:30 +0000 (18:21 -0400)]
use pointer for types
so that we can parse combo-ip to ipv4 or ipv6
Alan T. DeKok [Wed, 27 Jun 2018 22:19:39 +0000 (18:19 -0400)]
move assertion
Alan T. DeKok [Wed, 27 Jun 2018 22:18:06 +0000 (18:18 -0400)]
move radmin stuff into radmin.c
Alan T. DeKok [Wed, 27 Jun 2018 22:16:47 +0000 (18:16 -0400)]
if nothing at the head, insertion point is the head
Alan T. DeKok [Wed, 27 Jun 2018 21:43:28 +0000 (17:43 -0400)]
quiet compiler
Alan T. DeKok [Wed, 27 Jun 2018 21:41:53 +0000 (17:41 -0400)]
doxygen qualify name
Alan T. DeKok [Wed, 27 Jun 2018 20:48:20 +0000 (16:48 -0400)]
radmin commands have a FILE*fp for output
Alan T. DeKok [Wed, 27 Jun 2018 17:48:15 +0000 (13:48 -0400)]
start of new command API.
and `radiusd -r` now starts a radmin interface in the terminal.
Not much works, but it's a start.
Alan T. DeKok [Wed, 27 Jun 2018 17:40:15 +0000 (13:40 -0400)]
fixes and notes for the future
Alan T. DeKok [Wed, 27 Jun 2018 17:38:25 +0000 (13:38 -0400)]
handle graceful exit of the server
Alan T. DeKok [Wed, 27 Jun 2018 15:25:01 +0000 (11:25 -0400)]
remove old function prototypes
Alan T. DeKok [Fri, 22 Jun 2018 15:56:10 +0000 (11:56 -0400)]
document manual module ordering
Arran Cudbard-Bell [Tue, 26 Jun 2018 22:02:14 +0000 (18:02 -0400)]
Merge pull request #2255 from nmadhok/master
Adding dictionary for Big Switch Networks
Nitin Madhok [Tue, 26 Jun 2018 21:55:57 +0000 (17:55 -0400)]
Adding dictionary for Big Switch Networks
Arran Cudbard-Bell [Sat, 23 Jun 2018 16:20:50 +0000 (12:20 -0400)]
Move mainconfig validation logic into parse functions
Arran Cudbard-Bell [Sat, 23 Jun 2018 01:33:58 +0000 (21:33 -0400)]
Typo
Arran Cudbard-Bell [Sat, 23 Jun 2018 00:24:46 +0000 (20:24 -0400)]
Deglobalify main_config
- Talloc global config so we can do cleanup of buffers more easily
- Move things that were globals outside of the main config into the main config.
- Build mainconfig.c and client.c as part of the server library. client.c should go away or be moved into proto_radius eventually.
Arran Cudbard-Bell [Sat, 23 Jun 2018 00:22:24 +0000 (20:22 -0400)]
Ignore more system leaks
Arran Cudbard-Bell [Fri, 22 Jun 2018 00:28:04 +0000 (20:28 -0400)]
Rename some boxing/unboxing macros
Alan T. DeKok [Fri, 22 Jun 2018 15:48:34 +0000 (11:48 -0400)]
fix typo
Alan T. DeKok [Fri, 22 Jun 2018 14:18:35 +0000 (10:18 -0400)]
stupid compiler
Alan T. DeKok [Fri, 22 Jun 2018 14:13:04 +0000 (10:13 -0400)]
clarify changes
we should really have nothing here, but instead have a web page
listing all of this
Alan T. DeKok [Fri, 22 Jun 2018 13:40:45 +0000 (09:40 -0400)]
fix wildcard includes
so that you can now do:
$INCLUDE mods-enabled/sql
$INCLUDE mods-enabled/
This will cause the "sql" module to be read first. Then, when the
directory is read, the "sql" module will be ignored.
This solves ordering issues where "sqlippool" needs "sql", but
"sqlippool" is listed in the *directory* on disk after "sql".
Manual port of commit
bb842ece0102
Alan T. DeKok [Thu, 21 Jun 2018 19:24:48 +0000 (15:24 -0400)]
move handling of EWOUILDBLOCK to conduit code
Alan T. DeKok [Thu, 21 Jun 2018 19:20:54 +0000 (15:20 -0400)]
handle commands
through the simple expedient of echoing back a blank line...
Alan T. DeKok [Thu, 21 Jun 2018 19:20:41 +0000 (15:20 -0400)]
reset leftover once we've read a full packet
Alan T. DeKok [Thu, 21 Jun 2018 19:20:23 +0000 (15:20 -0400)]
handle EWOULDBLOCK
Arran Cudbard-Bell [Fri, 22 Jun 2018 00:13:43 +0000 (20:13 -0400)]
Move server_id into proto_radius_auth
This is a super secret config option that is pretty RADIUS specific
Alan T. DeKok [Thu, 21 Jun 2018 16:12:31 +0000 (12:12 -0400)]
move to v4 configuration