s3:lib: Introduce cmdline context wrapper
commitb63a2006526b928c4d89b15383eab57a69b57702
authorChristof Schmitt <cs@samba.org>
Mon, 20 Aug 2018 21:44:28 +0000 (20 14:44 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 10 Oct 2018 13:51:53 +0000 (10 15:51 +0200)
tree60dfc008771801637eb0d4faff41ce692e655dbc
parentc247ae0169e572bc22f99a06e71cb0dc54260924
s3:lib: Introduce cmdline context wrapper

Command line tools need acccess to the same messaging context provided
by server_messaging_context, as common code for db_open uses that
context. We want to have additional checking for command line tools
without having that code part of the servers. Introduce a wrapper
library to use for command line tools with the additional checks, that
then acquires the server_messaging_context.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13465

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 8c3b62e6231e62feafacf2a7ee4c9d41cd27a4a1)
source3/lib/cmdline_contexts.c [new file with mode: 0644]
source3/lib/cmdline_contexts.h [new file with mode: 0644]
source3/wscript_build