1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

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 <jstephen@redhat.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Justin Stephenson 2018-08-31 13:28:58 -04:00 committed by Jeremy Allison
parent a2aa7d6d65
commit 1da7708487

View 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,