s3:winbindd: use PROTOCOL_LATEST instead of PROTOCOL_SMB2_02 (bug #9175)
authorStefan Metzmacher <metze@samba.org>
Mon, 22 Oct 2012 12:35:41 +0000 (14:35 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 1 Nov 2012 15:27:38 +0000 (16:27 +0100)
We should use the latest supported dialect.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewd-by: Michael Adam <obnox@samba.org>
source3/winbindd/winbindd_cm.c

index c403b32b20c6551ae5a845c5c5ebf2de79025e21..79b5839d2a7f4f0d75142bed64ce3c927b102076 100644 (file)
@@ -832,7 +832,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
        cli_set_timeout(*cli, 10000); /* 10 seconds */
 
        result = smbXcli_negprot((*cli)->conn, (*cli)->timeout, PROTOCOL_CORE,
-                                PROTOCOL_SMB2_02);
+                                PROTOCOL_LATEST);
 
        if (!NT_STATUS_IS_OK(result)) {
                DEBUG(1, ("cli_negprot failed: %s\n", nt_errstr(result)));