s3:lib/netapi: make use of lp_cli_maxprotocol()
authorStefan Metzmacher <metze@samba.org>
Sun, 11 Aug 2013 11:46:34 +0000 (13:46 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Aug 2013 07:07:05 +0000 (09:07 +0200)
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/lib/netapi/cm.c

index cbc93d9784bfdefb24a7dc7f1f0bcbc49997a290..1cfdccfd1d127616061ea081dd2753f162071b98 100644 (file)
@@ -111,7 +111,7 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
                             server_name, "IPC$",
                             auth_info,
                             false, false,
-                            PROTOCOL_NT1,
+                            lp_cli_maxprotocol(),
                             0, 0x20, &cli_ipc);
        if (NT_STATUS_IS_OK(status)) {
                cli_set_username(cli_ipc, ctx->username);