s3:winbindd: make use of lp_cli_{min,max}protocol()
authorStefan Metzmacher <metze@samba.org>
Sun, 11 Aug 2013 11:48:31 +0000 (13:48 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Aug 2013 07:07:05 +0000 (09:07 +0200)
This changes winbindd back to use NT1 as defeault.

https://bugzilla.samba.org/show_bug.cgi?id=9514

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_cm.c

index 340cf8520a9fc988bf7b0c9a113d016cc00e828e..4de91663631ec0373d42841f90a19bc8f2df6f33 100644 (file)
@@ -841,8 +841,9 @@ 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_LATEST);
+       result = smbXcli_negprot((*cli)->conn, (*cli)->timeout,
+                                lp_cli_minprotocol(),
+                                lp_cli_maxprotocol());
 
        if (!NT_STATUS_IS_OK(result)) {
                DEBUG(1, ("cli_negprot failed: %s\n", nt_errstr(result)));