summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-10-10 06:18:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:37 -0500
commit8a3c865581c3cd93b37823f6906e08b689a7e1f4 (patch)
tree8b388ba3da4c904fbe696eace7c7bdb2c7679ddb /source4
parent4785cf6fd1c5a702062e9b1db0f2d3e55727bc65 (diff)
downloadsamba-8a3c865581c3cd93b37823f6906e08b689a7e1f4.tar.gz
samba-8a3c865581c3cd93b37823f6906e08b689a7e1f4.tar.bz2
samba-8a3c865581c3cd93b37823f6906e08b689a7e1f4.zip
r10859: Make the flow a bit clearer
(This used to be commit 66c90483b49bd8a8de1a46b12cce5270571f4090)
Diffstat (limited to 'source4')
-rw-r--r--source4/winbind/wb_init_domain.c15
1 files changed, 7 insertions, 8 deletions
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)