Fix bug 9900: is_printer_published GUID retrieval
commit62e25dcee628a3055f702439d23e2bd8ebfd9ea4
authorDavid Disseldorp <ddiss@samba.org>
Wed, 22 May 2013 15:58:38 +0000 (22 17:58 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 4 Jun 2013 09:49:46 +0000 (4 11:49 +0200)
tree35f81cf6bbec53d9a8d5eefad9001d905e3fa8ef
parent60bb8f9c197b47366977f6238c4c7cd933759211
Fix bug 9900: is_printer_published GUID retrieval

Samba currently always responds to GetPrinter(level = 7) requests with
DSPRINT_UNPUBLISH, regardless of the AD publish status tracked via the
PRINTER_ATTRIBUTE_PUBLISHED flag. This is due to erroneous "objectGUID"
unmarshalling in is_printer_published().

This change splits "objectGUID" retrieval into a separate function, and
adds a pull_reg_sz() call to correctly unmarshall the GUID.

Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Tue Jun  4 11:49:46 CEST 2013 on sn-devel-104
source3/include/nt_printing.h
source3/printing/nt_printing_ads.c
source3/rpc_server/spoolss/srv_spoolss_nt.c
source3/smbd/server_reload.c