r10859: Make the flow a bit clearer
authorVolker Lendecke <vlendec@samba.org>
Mon, 10 Oct 2005 06:18:17 +0000 (06:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:39:37 +0000 (13:39 -0500)
source/winbind/wb_init_domain.c

index 29771d23886884a4a823570376e9c2f84bfeb4ee..0ac7d11d64090da2c471180f86af2c590649ae38 100644 (file)
@@ -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)