s3-rpc_client: Fixed the dcerpc_lsa_LookupNames4 client_revision.
authorAndreas Schneider <asn@samba.org>
Wed, 5 Jan 2011 16:35:36 +0000 (17:35 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 10 Jan 2011 18:05:31 +0000 (19:05 +0100)
The spec states that the ClientRevision value MUST be one of the
following: LSA_CLIENT_REVISION_1 or LSA_CLIENT_REVISION_2.

LSA_CLIENT_REVISION_2 means Windows 2000 and newer.

Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jan 10 19:05:31 CET 2011 on sn-devel-104

source3/rpc_client/cli_lsarpc.c

index d96a231578584354e0eb54a0e2110a621aeb6afc..2ffd1c8f749a0452df35014750bc3d75f235a603 100644 (file)
@@ -606,7 +606,7 @@ static NTSTATUS dcerpc_lsa_lookup_names_generic(struct dcerpc_binding_handle *h,
                                                 level,
                                                 &count,
                                                 LSA_LOOKUP_OPTION_SEARCH_ISOLATED_NAMES,
-                                                0,
+                                                LSA_CLIENT_REVISION_2,
                                                 presult);
        } else {
                status = dcerpc_lsa_LookupNames(h,