From: Justin Stephenson Date: Fri, 31 Aug 2018 17:28:58 +0000 (-0400) Subject: s3-rpc_client: Advertise Windows 7 client info X-Git-Tag: tdb-1.3.17~1676 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1da770848753c172d0c790911b97dbe9c3ccee06;p=thirdparty%2Fsamba.git s3-rpc_client: Advertise Windows 7 client info 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 Reviewed-by: Jeremy Allison Reviewed-by: Andreas Schneider --- diff --git a/source3/rpc_client/init_spoolss.c b/source3/rpc_client/init_spoolss.c index 1996465ee9f..c341b82b6ee 100644 --- a/source3/rpc_client/init_spoolss.c +++ b/source3/rpc_client/init_spoolss.c @@ -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,