]> git.ipfire.org Git - thirdparty/samba.git/commit
Fix bug 9900: is_printer_published GUID retrieval
authorDavid Disseldorp <ddiss@samba.org>
Wed, 22 May 2013 15:58:38 +0000 (17:58 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 17 Jun 2013 07:20:08 +0000 (09:20 +0200)
commit27e327be1844cb5da070525e537c49bb13e3cfc6
tree768646d6b1dfa2cde3e9f155bac7345d8b5a1b29
parenta728d9691a73212607f8979d2f469122ec20b85b
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.
(cherry picked from commit 577b2e554cff29d7676ef74ace1536210503601c)
source3/include/nt_printing.h
source3/printing/nt_printing_ads.c
source3/rpc_server/spoolss/srv_spoolss_nt.c
source3/smbd/server_reload.c