From 8a3c865581c3cd93b37823f6906e08b689a7e1f4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 10 Oct 2005 06:18:17 +0000 Subject: r10859: Make the flow a bit clearer (This used to be commit 66c90483b49bd8a8de1a46b12cce5270571f4090) --- source4/winbind/wb_init_domain.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'source4/winbind') diff --git a/source4/winbind/wb_init_domain.c b/source4/winbind/wb_init_domain.c index 29771d2388..0ac7d11d64 100644 --- a/source4/winbind/wb_init_domain.c +++ b/source4/winbind/wb_init_domain.c @@ -418,18 +418,17 @@ static void init_domain_openlsa(struct init_domain_state *state) { struct composite_context *ctx; - if (state->domain->schannel_creds != NULL) { + if (state->domain->schannel_creds == NULL) { ctx = wb_init_lsa_send(state->conn.out.tree, - DCERPC_AUTH_TYPE_NTLMSSP, - state->domain->schannel_creds); - comp_cont(state->ctx, ctx, - init_domain_recv_lsa_ntlmssp, state); + DCERPC_AUTH_TYPE_NONE, + NULL); + comp_cont(state->ctx, ctx, init_domain_recv_lsa_none, state); return; } - ctx = wb_init_lsa_send(state->conn.out.tree, DCERPC_AUTH_TYPE_NONE, - NULL); - comp_cont(state->ctx, ctx, init_domain_recv_lsa_none, state); + ctx = wb_init_lsa_send(state->conn.out.tree, DCERPC_AUTH_TYPE_NTLMSSP, + state->domain->schannel_creds); + comp_cont(state->ctx, ctx, init_domain_recv_lsa_ntlmssp, state); } static void init_domain_recv_lsa_ntlmssp(struct composite_context *ctx) -- cgit