]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-rpc_client: Advertise Windows 7 client info
authorJustin Stephenson <jstephen@redhat.com>
Fri, 31 Aug 2018 17:28:58 +0000 (13:28 -0400)
committerJeremy Allison <jra@samba.org>
Fri, 7 Sep 2018 23:43:27 +0000 (01:43 +0200)
Client printing operations currently fail against Windows
Server 2016 with Access Denied if a client os build number
lower than 6000 is advertised. Increase the default build number,
major, and minor versions to values associated with client
OS versoins Windows 7 and Windows Server 2008 R2.

The build number value specifically needs to be increased to
allow these operations to succeed.

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

Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/rpc_client/init_spoolss.c

index 1996465ee9f4accdf17f9d8cc1afadea3a9619b1..c341b82b6ee1f26b3130ec075dc56ff68345d697 100644 (file)
@@ -447,9 +447,10 @@ const char *spoolss_get_short_filesys_environment(const char *environment)
        }
 }
 
-#define GLOBAL_SPOOLSS_CLIENT_OS_MAJOR_DEFAULT 2
-#define GLOBAL_SPOOLSS_CLIENT_OS_MINOR_DEFAULT 0
-#define GLOBAL_SPOOLSS_CLIENT_OS_BUILD_DEFAULT 1381
+/* Windows 7 and Windows Server 2008 R2 */
+#define GLOBAL_SPOOLSS_CLIENT_OS_MAJOR_DEFAULT 6
+#define GLOBAL_SPOOLSS_CLIENT_OS_MINOR_DEFAULT 1
+#define GLOBAL_SPOOLSS_CLIENT_OS_BUILD_DEFAULT 7007
 
 WERROR spoolss_init_spoolss_UserLevel1(TALLOC_CTX *mem_ctx,
                                       const char *username,