These extra flags are an [in,out] argument, so we have to initialize
them to 0. If we pass NETLOGON_SAMLOGON_FLAG_PASS_TO_FOREST_ROOT
or NETLOGON_SAMLOGON_FLAG_PASS_CROSS_FOREST_HOP, a Windows Server
will just return NT_STATUS_NO_SUCH_USER with authoritative=1
(at least if it is itself a DC of the forest root and the requested
domain is the local domain of the DC).
Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
struct winbindd_domain *domain;
NTSTATUS status;
DATA_BLOB lm_response, nt_response;
- uint32_t flags;
+ uint32_t flags = 0;
domain = wb_child_domain();
if (domain == NULL) {
const char *name_user = NULL;
const char *name_domain = NULL;
const char *workstation;
- uint8_t authoritative;
- uint32_t flags;
+ uint8_t authoritative = 0;
+ uint32_t flags = 0;
DATA_BLOB lm_resp, nt_resp;