Fix logic error in cm_connect_sam().
authorMichael Adam <obnox@samba.org>
Tue, 18 Dec 2007 00:55:48 +0000 (01:55 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 18 Dec 2007 00:55:48 +0000 (01:55 +0100)
Don't fall back to schannel when trust creds could be obtained.
This is still not complete, but I am getting closer.

Michael
(This used to be commit 7c9fa597d684a25822b4db6615f28336f2d64ef3)

source3/winbindd/winbindd_cm.c

index 6c5633c2b2c90caee983192e7dc55e3f0e133129..8ea815535fb5c8e7a2cfb23f7dba18419ab86404 100644 (file)
@@ -2003,7 +2003,6 @@ NTSTATUS cm_connect_sam(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
                        goto schannel;
                }
                domain_name = domain->name;
-               goto schannel;
        } else {
                machine_password = SMB_STRDUP(conn_pwd);                
                machine_account = SMB_STRDUP(conn->cli->user_name);