spoolss: retrieve published printer GUID if not in registry
authorAndreas Schneider <asn@samba.org>
Thu, 18 Dec 2014 15:14:36 +0000 (15:14 +0000)
committerGünther Deschner <gd@samba.org>
Wed, 18 Feb 2015 11:43:44 +0000 (12:43 +0100)
commita4157e7c5d75be7003ad0b72fdfe9856a9e5ba8f
tree479011e217184cc13e4c092da8dc6e1e2bd66d82
parent6595ced146a53dcef9bbd5d2deb82a44c8ce1a1a
spoolss: retrieve published printer GUID if not in registry

When a printer is published, the GUID for the published DN is retrieved
from the domain controller and stored in the registry.
When handling a spoolss GetPrinter(level=7) request, the same GUID is
obtained from the registry and returned to the client.

This change sees the spoolss server query the DC for the published
printer GUID if it is not present in the registry when handling a
spoolss GetPrinter(level=7) request.

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

Pair-Programmed-With: David Disseldorp <ddiss@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Feb 18 12:43:44 CET 2015 on sn-devel-104
source3/rpc_server/spoolss/srv_spoolss_nt.c