]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Thu, 12 Jul 2018 19:47:32 +0000 (15:47 -0400)]
Fix buildsystem to point to bin not main
Arran Cudbard-Bell [Thu, 12 Jul 2018 18:41:30 +0000 (14:41 -0400)]
Move binaries into src/bin
Arran Cudbard-Bell [Thu, 12 Jul 2018 18:26:24 +0000 (14:26 -0400)]
Add talloc validation to dlists
Arran Cudbard-Bell [Thu, 12 Jul 2018 17:09:45 +0000 (13:09 -0400)]
Rename field back to list
Alan T. DeKok [Thu, 12 Jul 2018 18:20:05 +0000 (14:20 -0400)]
doxygen
Alan T. DeKok [Thu, 12 Jul 2018 18:05:28 +0000 (14:05 -0400)]
remove unused assignment
Alan T. DeKok [Thu, 12 Jul 2018 17:41:50 +0000 (13:41 -0400)]
bind '?' to inline help
Alan T. DeKok [Thu, 12 Jul 2018 17:28:35 +0000 (13:28 -0400)]
keep a copy of the entire input buffer
Alan T. DeKok [Thu, 12 Jul 2018 17:28:14 +0000 (13:28 -0400)]
back up current_str when we exit a context
Alan T. DeKok [Tue, 10 Jul 2018 20:39:44 +0000 (16:39 -0400)]
prefer local readline to OSX libedit
Alan T. DeKok [Tue, 10 Jul 2018 20:29:35 +0000 (16:29 -0400)]
check for brew version of readline
because the local OSX libedit doesn't really do what we want
Alan T. DeKok [Thu, 12 Jul 2018 16:03:24 +0000 (12:03 -0400)]
doxygen
Alan T. DeKok [Thu, 12 Jul 2018 16:02:49 +0000 (12:02 -0400)]
doxygen
Alan T. DeKok [Thu, 12 Jul 2018 15:32:27 +0000 (11:32 -0400)]
fix up dlist functions.
Add a separate `fr_dlist_head_t`, which contains an offset
of the encapsulating structure.
And then fix up the various functions to take a head / ptr
instead of "entry". That way the caller doesn't have to play
dumb games with `fr_dlist_t *entry = ...` and various casts.
Arran Cudbard-Bell [Wed, 11 Jul 2018 22:49:51 +0000 (18:49 -0400)]
Add verification pointer for dlists
Arran Cudbard-Bell [Wed, 11 Jul 2018 22:29:21 +0000 (18:29 -0400)]
Fix dlist entry mangling
Arran Cudbard-Bell [Wed, 11 Jul 2018 22:25:01 +0000 (18:25 -0400)]
More debugging
Arran Cudbard-Bell [Wed, 11 Jul 2018 22:11:29 +0000 (18:11 -0400)]
Allow the entry to be checked
Arran Cudbard-Bell [Wed, 11 Jul 2018 22:03:13 +0000 (18:03 -0400)]
Rename dlist pointer to list
Arran Cudbard-Bell [Wed, 11 Jul 2018 21:56:10 +0000 (17:56 -0400)]
Switch state tracking to use the standard dlist implementation
Arran Cudbard-Bell [Wed, 11 Jul 2018 21:55:44 +0000 (17:55 -0400)]
Move dlist into its own header
Arran Cudbard-Bell [Wed, 11 Jul 2018 20:39:19 +0000 (16:39 -0400)]
Tweak debugging
Arran Cudbard-Bell [Wed, 11 Jul 2018 20:28:12 +0000 (16:28 -0400)]
Assert if the entry is still in the cleanup list
Alan T. DeKok [Wed, 11 Jul 2018 20:26:41 +0000 (16:26 -0400)]
add preliminary support for partial commands
Arran Cudbard-Bell [Wed, 11 Jul 2018 20:23:49 +0000 (16:23 -0400)]
Don't return early if we have entries to free
Arran Cudbard-Bell [Wed, 11 Jul 2018 20:13:54 +0000 (16:13 -0400)]
Bad things happen when we mask all the signals
Threads stick around forever if their parent dies ungracefully
Arran Cudbard-Bell [Wed, 11 Jul 2018 19:58:08 +0000 (15:58 -0400)]
Unused
Arran Cudbard-Bell [Wed, 11 Jul 2018 19:46:55 +0000 (15:46 -0400)]
Don't set *priority at the start
Alan T. DeKok [Wed, 11 Jul 2018 19:42:37 +0000 (15:42 -0400)]
fix count definition
Alan T. DeKok [Wed, 11 Jul 2018 19:38:36 +0000 (15:38 -0400)]
expand optional and alternation
Alan T. DeKok [Wed, 11 Jul 2018 15:20:36 +0000 (11:20 -0400)]
move expand_syntax to it's own function
Arran Cudbard-Bell [Wed, 11 Jul 2018 19:15:21 +0000 (15:15 -0400)]
Spelling
Arran Cudbard-Bell [Wed, 11 Jul 2018 17:22:52 +0000 (13:22 -0400)]
Missed count definition
Arran Cudbard-Bell [Wed, 11 Jul 2018 17:21:13 +0000 (13:21 -0400)]
Check memory and next/prev pointers are still valid
Arran Cudbard-Bell [Wed, 11 Jul 2018 17:20:33 +0000 (13:20 -0400)]
Verb order
Alan T. DeKok [Wed, 11 Jul 2018 15:10:17 +0000 (11:10 -0400)]
use argv->next for syntax
Alan T. DeKok [Wed, 11 Jul 2018 15:04:09 +0000 (11:04 -0400)]
expand alternation and optional syntax, too
For now, only if they're at the end of the input.
we still have to write the "match alternation / optional" types
Alan T. DeKok [Wed, 11 Jul 2018 14:26:44 +0000 (10:26 -0400)]
move strdup to command.c
Alan T. DeKok [Wed, 11 Jul 2018 14:12:36 +0000 (10:12 -0400)]
add tab expansion for commands
right now, only for fixed strings, and not for syntax in commands.
But it's a nice step forward.
Alan T. DeKok [Wed, 11 Jul 2018 13:43:18 +0000 (09:43 -0400)]
pass config to radmin, so it can set readline name
Alan T. DeKok [Wed, 11 Jul 2018 13:07:08 +0000 (09:07 -0400)]
work on OSX, too
Arran Cudbard-Bell [Wed, 11 Jul 2018 01:45:24 +0000 (21:45 -0400)]
Needs to be signed
Arran Cudbard-Bell [Wed, 11 Jul 2018 01:39:16 +0000 (21:39 -0400)]
Fix travis
Arran Cudbard-Bell [Tue, 10 Jul 2018 23:29:05 +0000 (19:29 -0400)]
Fix certificate attribute extraction
Arran Cudbard-Bell [Tue, 10 Jul 2018 23:22:54 +0000 (19:22 -0400)]
..and another one
Arran Cudbard-Bell [Tue, 10 Jul 2018 23:08:54 +0000 (19:08 -0400)]
Cleanup code structure
Arran Cudbard-Bell [Tue, 10 Jul 2018 23:04:32 +0000 (19:04 -0400)]
typo
Arran Cudbard-Bell [Tue, 10 Jul 2018 23:03:42 +0000 (19:03 -0400)]
Missing args
Arran Cudbard-Bell [Tue, 10 Jul 2018 21:39:37 +0000 (17:39 -0400)]
Print more info about failing permissions checks
Arran Cudbard-Bell [Tue, 10 Jul 2018 21:22:48 +0000 (17:22 -0400)]
Don't have UID anymore
Arran Cudbard-Bell [Tue, 10 Jul 2018 21:18:20 +0000 (17:18 -0400)]
Stupid OpenSSL grr
Alan T. DeKok [Tue, 10 Jul 2018 20:56:45 +0000 (16:56 -0400)]
only print command hierarchy if we're debugging
Alan T. DeKok [Tue, 10 Jul 2018 17:39:52 +0000 (13:39 -0400)]
move "want_more" out of conduit type, and to explicit parameter
so that we don't conflate the data and signalling paths.
Alan T. DeKok [Tue, 10 Jul 2018 17:35:18 +0000 (13:35 -0400)]
move conduit header to uint16 origin, uint16 conduit
so that we can distinguish different sources / destinations
of data
Alan T. DeKok [Tue, 10 Jul 2018 17:34:52 +0000 (13:34 -0400)]
ascii-doc it a bit more
Alan T. DeKok [Tue, 10 Jul 2018 16:30:55 +0000 (12:30 -0400)]
set output to be line buffered
so that it gets sent over as quickly as possible
Arran Cudbard-Bell [Tue, 10 Jul 2018 20:50:58 +0000 (16:50 -0400)]
Print certificate attributes as they're added
Arran Cudbard-Bell [Tue, 10 Jul 2018 20:26:19 +0000 (16:26 -0400)]
Rename some macros and move uid/gid parsing into callbacks
Alan T. DeKok [Tue, 10 Jul 2018 15:54:35 +0000 (11:54 -0400)]
Revert "fopencookie API"
This reverts commit
a8f1a8bdab50f99b2eb48c6531b63e5fb5ab517b .
nope
Alan T. DeKok [Tue, 10 Jul 2018 15:32:10 +0000 (11:32 -0400)]
fopencookie API
Alan T. DeKok [Tue, 10 Jul 2018 15:31:15 +0000 (11:31 -0400)]
doxygen
Alan T. DeKok [Tue, 10 Jul 2018 15:06:41 +0000 (11:06 -0400)]
don't need stdout && stderr for the main listen socket
Alan T. DeKok [Tue, 10 Jul 2018 15:04:01 +0000 (11:04 -0400)]
arguments for fopencookie are a bit different
Alan T. DeKok [Tue, 10 Jul 2018 15:01:29 +0000 (11:01 -0400)]
add and check for read_only commands
Alan T. DeKok [Tue, 10 Jul 2018 14:43:24 +0000 (10:43 -0400)]
hacks to get radmin sockets working.
The main thread just calls fr_radmin_run() directly. Likely
not optimal, but it works for now.
Alan T. DeKok [Tue, 10 Jul 2018 14:34:39 +0000 (10:34 -0400)]
expose "info init" and do more cleanups
Alan T. DeKok [Tue, 10 Jul 2018 14:26:57 +0000 (10:26 -0400)]
just mangle the command in-place
Alan T. DeKok [Tue, 10 Jul 2018 14:22:30 +0000 (10:22 -0400)]
flush fp's after running the command
so that the output goes somewhere immediately
Alan T. DeKok [Tue, 10 Jul 2018 13:56:24 +0000 (09:56 -0400)]
add fr_radmin_run() which runs a particular radmin command
It should probably take fr_cmd_info_t pointer, so that it doesn't
allocate that every time.
Alan T. DeKok [Tue, 10 Jul 2018 12:55:58 +0000 (08:55 -0400)]
provisions for showing the name of the command
when listing them all, and their help text
Arran Cudbard-Bell [Mon, 9 Jul 2018 23:51:00 +0000 (19:51 -0400)]
Move syslog facility parsing into a callback
Alan T. DeKok [Mon, 9 Jul 2018 19:48:03 +0000 (15:48 -0400)]
added simple tests for alternation and optional things
Alan T. DeKok [Mon, 9 Jul 2018 19:43:16 +0000 (15:43 -0400)]
clarify tab_expand
Alan T. DeKok [Mon, 9 Jul 2018 19:27:51 +0000 (15:27 -0400)]
search for the command in info->cmd
and assume that we don't need to call fr_command_find() again
Alan T. DeKok [Mon, 9 Jul 2018 17:24:27 +0000 (13:24 -0400)]
simple checks for (sort of) thread safety
Only if people execute commands before the server has started running.
Alan T. DeKok [Mon, 9 Jul 2018 17:15:44 +0000 (13:15 -0400)]
swap around registration hooks
so that they're in command.c, and radmin.c can swap it to
whatever it wants
Alan T. DeKok [Mon, 9 Jul 2018 16:04:55 +0000 (12:04 -0400)]
oops
Alan T. DeKok [Mon, 9 Jul 2018 15:48:00 +0000 (11:48 -0400)]
look at argv[1] not 0
Alan T. DeKok [Mon, 9 Jul 2018 15:43:59 +0000 (11:43 -0400)]
fix "help all"
Alan T. DeKok [Mon, 9 Jul 2018 15:39:25 +0000 (11:39 -0400)]
allocate and fill in value boxes if required
Alan T. DeKok [Mon, 9 Jul 2018 15:20:26 +0000 (11:20 -0400)]
clear out value boxes in preparation for filling them in
Alan T. DeKok [Mon, 9 Jul 2018 13:26:03 +0000 (09:26 -0400)]
move radmin to it's own header file
Alan T. DeKok [Mon, 9 Jul 2018 12:57:28 +0000 (08:57 -0400)]
don't coninue on error, goto next
Alan T. DeKok [Mon, 9 Jul 2018 12:36:49 +0000 (08:36 -0400)]
reset argc to context after running command
Alan T. DeKok [Sun, 8 Jul 2018 23:50:38 +0000 (19:50 -0400)]
added more commands and more help
so that the poor admin knows what to do
Alan T. DeKok [Sun, 8 Jul 2018 19:21:39 +0000 (15:21 -0400)]
add more help text and commands
Alan T. DeKok [Sun, 8 Jul 2018 19:21:05 +0000 (15:21 -0400)]
allow help for commands with callbacks
which just prints the syntax for now
Alan T. DeKok [Sun, 8 Jul 2018 13:23:28 +0000 (09:23 -0400)]
print out only one layer of help at a time
Alan T. DeKok [Sat, 7 Jul 2018 12:10:36 +0000 (08:10 -0400)]
make "info" global in preparation for context-specific help
Alan T. DeKok [Fri, 6 Jul 2018 23:26:18 +0000 (19:26 -0400)]
use standard macro
Arran Cudbard-Bell [Fri, 6 Jul 2018 20:22:38 +0000 (16:22 -0400)]
Fix off by one issue in cursor code
Alan T. DeKok [Fri, 6 Jul 2018 19:43:37 +0000 (15:43 -0400)]
implement show / set module status
Alan T. DeKok [Fri, 6 Jul 2018 19:07:11 +0000 (15:07 -0400)]
clean up function
Alan T. DeKok [Fri, 6 Jul 2018 19:00:10 +0000 (15:00 -0400)]
remove unused variable
Alan T. DeKok [Fri, 6 Jul 2018 18:40:28 +0000 (14:40 -0400)]
stupid hooks to get it building and linking
Alan T. DeKok [Fri, 6 Jul 2018 18:31:36 +0000 (14:31 -0400)]
Revert "add stub functions"
This reverts commit
1016e2847e68767ea2e6cf101a2957bf9f3faf62 .
nope x2
Alan T. DeKok [Fri, 6 Jul 2018 18:31:26 +0000 (14:31 -0400)]
Revert "add local prototypes"
This reverts commit
a4b06ed1f4ba3857bb6ff51b9da3f87b7912541c .
nope
Alan T. DeKok [Fri, 6 Jul 2018 18:10:21 +0000 (14:10 -0400)]
add local prototypes
Alan T. DeKok [Fri, 6 Jul 2018 17:53:12 +0000 (13:53 -0400)]
print syntax if it exists, otherwise name.
Alan T. DeKok [Fri, 6 Jul 2018 17:45:32 +0000 (13:45 -0400)]
add stub functions