mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:pdbedit: Use cmdline_messaging_context
Initialize the messaging context through cmdline_messaging_context to allow access to config in clustered Samba. 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>
This commit is contained in:
parent
f56496b114
commit
4661537c20
@ -25,6 +25,7 @@
|
||||
#include "../librpc/gen_ndr/samr.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb.h"
|
||||
#include "cmdline_contexts.h"
|
||||
|
||||
#define BIT_BACKEND 0x00000004
|
||||
#define BIT_VERBOSE 0x00000008
|
||||
@ -1121,6 +1122,8 @@ int main(int argc, const char **argv)
|
||||
if (user_name == NULL)
|
||||
user_name = poptGetArg(pc);
|
||||
|
||||
cmdline_messaging_context(get_dyn_CONFIGFILE());
|
||||
|
||||
if (!lp_load_global(get_dyn_CONFIGFILE())) {
|
||||
fprintf(stderr, "Can't load %s - run testparm to debug it\n", get_dyn_CONFIGFILE());
|
||||
exit(1);
|
||||
|
@ -47,6 +47,7 @@ bld.SAMBA3_BINARY('pdbedit',
|
||||
talloc
|
||||
smbconf
|
||||
popt_samba3
|
||||
cmdline_contexts
|
||||
pdb
|
||||
PASSWD_UTIL''')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user