mirror of
https://github.com/samba-team/samba.git
synced 2025-02-11 17:58:16 +03:00
s3: ntlm_auth: Use cmdline_messaging_context
Call cmdline_messaging_context to initialize the messaging context before accessing clustered Samba config. 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 9ed617474f588ceb42c8929ee8a51071a408c219)
This commit is contained in:
parent
7a7b33a3f7
commit
c392f642ba
@ -47,6 +47,7 @@
|
||||
#include "nsswitch/libwbclient/wbclient.h"
|
||||
#include "lib/param/loadparm.h"
|
||||
#include "lib/util/base64.h"
|
||||
#include "cmdline_contexts.h"
|
||||
|
||||
#if HAVE_KRB5
|
||||
#include "auth/kerberos/pac_utils.h"
|
||||
@ -2364,6 +2365,8 @@ enum {
|
||||
|
||||
poptFreeContext(pc);
|
||||
|
||||
cmdline_messaging_context(get_dyn_CONFIGFILE());
|
||||
|
||||
if (!lp_load_global(get_dyn_CONFIGFILE())) {
|
||||
d_fprintf(stderr, "ntlm_auth: error opening config file %s. Error was %s\n",
|
||||
get_dyn_CONFIGFILE(), strerror(errno));
|
||||
|
@ -127,6 +127,7 @@ bld.SAMBA3_BINARY('ntlm_auth',
|
||||
tiniparser
|
||||
libsmb
|
||||
popt_samba3
|
||||
cmdline_contexts
|
||||
gse gensec''')
|
||||
|
||||
bld.SAMBA3_BINARY('dbwrap_tool',
|
||||
|
Loading…
x
Reference in New Issue
Block a user