summaryrefslogtreecommitdiff
path: root/source3/include/nt_printing.h
Commit message (Collapse)AuthorAgeFilesLines
* printing: add more 'const' to read only input pointersStefan Metzmacher2018-06-141-4/+4
| | | | | | | This makes it clearer that they won't be changed. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3-spoolss: Create a sperate header file for 'struct printer_handle'Günther Deschner2017-01-061-5/+0
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:spoolss: Add support for COPY_FROM_DIRECTORY in AddPrinterDriverExAndreas Schneider2016-11-201-2/+5
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12415 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Convert three include files from uint32/16/8 to _t types as well as the ↵Richard Sharpe2015-05-011-9/+9
| | | | | | | | | source that includes them. The files that include them already seem clean. Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* printing: rework nt_printer_guid_store to return errorsAndreas Schneider2015-02-181-0/+3
| | | | | | | | | | | Callers can now choose whether or not to ignore errors. 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>
* printing: add nt_printer_guid_retrieve() helperDavid Disseldorp2015-02-181-0/+3
| | | | | | | | | | | | 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>
* printing: return WERROR from print_access_checkDavid Disseldorp2013-11-201-3/+3
| | | | | | | | | | print_access_check() currently returns a bool based on whether access is granted or denied. Errno is set on failure, but none of the callers use it. This change converts print_access_check() to return a WERROR. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* Fix bug 9900: is_printer_published GUID retrievalDavid Disseldorp2013-06-031-1/+5
| | | | | | | | | | | | | 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. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-printing: Make printer a const char *.Andreas Schneider2012-03-141-1/+3
|
* s3-printing: Add new printers to registry.Björn Baumbach2012-02-091-0/+4
| | | | | | | | | This fixes bug #8554, #8612 and #8748. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Feb 9 16:39:04 CET 2012 on sn-devel-104
* s3-printing: Add forward declaration for dcerpc_binding_handle.Andreas Schneider2011-07-281-0/+2
| | | | | | | This fixes a build warning. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Jul 28 20:07:37 CEST 2011 on sn-devel-104
* s3-spoolss: Use existing handle in printer_driver_files_in_use().Andreas Schneider2011-07-281-2/+1
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Jul 28 16:20:11 CEST 2011 on sn-devel-104
* s3-spoolss: Use existing handle in printer_driver_in_use().Andreas Schneider2011-07-281-2/+1
|
* s3-auth Use the common auth_session_infoAndrew Bartlett2011-07-201-10/+10
| | | | | | | | | | | This patch finally has the same structure being used to describe the authorization data of a user across the whole codebase. This will allow of our session handling to be accomplished with common code. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Use struct auth3_session_info outside the auth subsystemAndrew Bartlett2011-07-201-10/+10
| | | | | | | | | | | | | | | This seperation between the structure used inside the auth modules and in the wider codebase allows for a gradual migration from struct auth_serversupplied_info -> struct auth_session_info (from auth.idl) The idea here is that we keep a clear seperation between the structure before and after the local groups, local user lookup and the session key modifications have been processed, as the lack of this seperation has caused issues in the past. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-printing: move spoolss_create_default_devmode/secdesc to init_spoolss.hGünther Deschner2011-07-071-7/+0
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: move driver_info_ctr_to_info8 to init_spoolss.hGünther Deschner2011-07-071-3/+0
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: move os2 related functions to printing/nt_printing_os2.c.Günther Deschner2011-07-071-2/+0
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: avoid using pipes_struct when only session_info is needed.Günther Deschner2011-05-021-3/+3
| | | | Guenther
* s3-printing: fix move_driver_to_download_area() error pathsDavid Disseldorp2011-03-021-2/+1
| | | | | | | | | | WERR_ACCESS_DENIED errors are mapped to WERR_UNKNOWN_PRINTER_DRIVER, resulting in incorrect error messages on Windows clients. move_driver_to_download_area() returns the same error status values to the caller via the *perr argument as well as the return value. The create_directory() call is not checked for error.
* s3-spoolss: Fix servername/printername handling which turns out to be very ↵Günther Deschner2010-09-301-1/+1
| | | | | | important to get right. Guenther
* s3-printing: remove unused old structs.Günther Deschner2010-09-281-60/+0
| | | | Guenther
* s3-spoolss: Move Printer_entry to srv_spoolss_nt.cSimo Sorce2010-09-101-40/+0
| | | | | | | It is used only there, and it is a good idea to make this one private and opaque to the rest of the code. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-printing: Make auth_serversupplied_info const.Andreas Schneider2010-09-091-8/+8
|
* s3: Lift the smbd_messaging_context from is_printer_publishedVolker Lendecke2010-08-081-0/+1
|
* s3: Lift the smbd_messaging_context from check_published_printersVolker Lendecke2010-08-081-1/+1
|
* s3: Lift the smbd_messaging_context from nt_printer_publishVolker Lendecke2010-08-081-0/+1
|
* s3: Lift the smbd_messaging_context from nt_printer_removeVolker Lendecke2010-08-081-0/+1
|
* s3: Lift the smbd_messaging_context from print_time_access_checkVolker Lendecke2010-08-081-0/+1
|
* s3: Lift the smbd_messaging_context from print_access_checkVolker Lendecke2010-08-081-1/+2
|
* s3: Lift the smbd_messaging_context from printer_driver_files_in_useVolker Lendecke2010-08-081-0/+1
|
* s3: Lift the smbd_messaging_context from printer_driver_in_useVolker Lendecke2010-08-081-0/+1
|
* s3: Remove references to smbd_messaging_context()Volker Lendecke2010-08-081-0/+1
|
* s3: Remove references to smbd_messaging_context() from the spoolss serverVolker Lendecke2010-08-071-4/+0
|
* s3-printing: Added automatic migration of printing tdbs.Andreas Schneider2010-07-271-6/+0
| | | | Signed-off-by: Jim McDonough <jmcd@samba.org>
* s3-spoolss: Remove the program global current_user_info.Andreas Schneider2010-07-271-1/+2
| | | | Signed-off-by: Jim McDonough <jmcd@samba.org>
* s3-printing: Moved remaining prototypes to nt_printing.h.Andreas Schneider2010-07-271-0/+24
| | | | Signed-off-by: Jim McDonough <jmcd@samba.org>
* s3-spoolss: Moved shared printing functions to nt_printing.hAndreas Schneider2010-07-271-0/+47
| | | | Signed-off-by: Jim McDonough <jmcd@samba.org>
* s3-spoolss: Removed the last free_a_printer() call in spoolss_nt.c.Andreas Schneider2010-07-271-2/+2
| | | | Signed-off-by: Jim McDonough <jmcd@samba.org>
* s3-spoolss: Migrated NT_DEVICEMODE to spoolss_DeviceMode.Simo Sorce2010-07-271-45/+4
| | | | Signed-off-by: Jim McDonough <jmcd@samba.org>
* s3-secdesc: remove "typedef struct sec_desc_buf SEC_DESC_BUF".Günther Deschner2010-05-181-1/+1
| | | | Guenther
* s3-spoolss: move MAXDEVICENAME to spoolss idl.Günther Deschner2009-12-021-2/+0
| | | | Guenther
* s3-spoolss: move more defines out of nt_printing.h to spoolss.idl where they ↵Günther Deschner2009-11-231-67/+0
| | | | | | belong. Guenther
* s3-printing: remove unused NT_PRINTER_DRIVER_INFO_LEVEL structs.Günther Deschner2009-11-231-41/+0
| | | | Guenther
* s3-spoolss: remove device mode defines from nt_printing.h.Günther Deschner2009-08-101-110/+0
| | | | Guenther
* s3-printing: no need to define struct table_node 4 times.Günther Deschner2009-05-131-0/+6
| | | | Guenther
* s3:registry: replace typedef REGVAL_CTR by struct regval_ctr.Michael Adam2009-04-271-2/+2
| | | | | | | This paves the way for hiding the typedef and the implementation from the surface. Michael
* s3: remove POLICY_HND.Günther Deschner2009-03-181-1/+1
| | | | Guenther
* s3-spoolss: move DRIVER_X_VERSION flags into the backend, where they belong to.Günther Deschner2009-03-171-0/+3
| | | | Guenther
* s3-spoolss: move PRINTER_ATTRIBUTE_SAMBA to printing backend, where they belong.Günther Deschner2009-03-171-0/+13
| | | | Guenther