diff options
| author | David Disseldorp <ddiss@samba.org> | 2014-12-18 18:23:11 +0100 |
|---|---|---|
| committer | Günther Deschner <gd@samba.org> | 2015-02-18 10:14:09 +0100 |
| commit | 38dbd054dc331a441b10fdebbdb4bd0fc51cfc0a (patch) | |
| tree | d0e16f6a52fde02655bfc858462c03acacedfc36 /source3/include | |
| parent | 7cabd89789a50d37fc32735968c493092a37e69f (diff) | |
| download | samba-38dbd054dc331a441b10fdebbdb4bd0fc51cfc0a.tar.gz samba-38dbd054dc331a441b10fdebbdb4bd0fc51cfc0a.tar.xz samba-38dbd054dc331a441b10fdebbdb4bd0fc51cfc0a.zip | |
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 <asn@samba.org>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/include')
| -rw-r--r-- | source3/include/nt_printing.h | 3 |
1 files changed, 3 insertions, 0 deletions
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, |
