From 38dbd054dc331a441b10fdebbdb4bd0fc51cfc0a Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Thu, 18 Dec 2014 18:23:11 +0100 Subject: printing: add nt_printer_guid_retrieve() helper This function connects to the domain controller and retrieves the GUID for the corresponding printer DN. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11018 Pair-programmed-with: Andreas Schneider Signed-off-by: David Disseldorp Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- source3/include/nt_printing.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/include') diff --git a/source3/include/nt_printing.h b/source3/include/nt_printing.h index 4af44d75d9..3d74b655c4 100644 --- a/source3/include/nt_printing.h +++ b/source3/include/nt_printing.h @@ -132,6 +132,9 @@ WERROR print_access_check(const struct auth_session_info *server_info, struct messaging_context *msg_ctx, int snum, int access_type); +WERROR nt_printer_guid_retrieve(TALLOC_CTX *mem_ctx, const char *printer, + struct GUID *pguid); + WERROR nt_printer_guid_get(TALLOC_CTX *mem_ctx, const struct auth_session_info *session_info, struct messaging_context *msg_ctx, -- cgit