summaryrefslogtreecommitdiffstats
path: root/source3/printing
Commit message (Collapse)AuthorAgeFilesLines
* s3-printing: remove tdb migration invalid printer name checksDavid Disseldorp2011-07-071-9/+2
| | | | | | | | | | WERR_INVALID_PRINTER_NAME only needed to be handled when printing tdb migration used spoolss, with winreg such errors are no longer possible. Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Jul 7 19:15:34 CEST 2011 on sn-devel-104
* s3-printing: make sure to first migrate the printers then the security ↵Günther Deschner2011-07-071-4/+16
| | | | | | | | descriptor. Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: fill info2_mask in printer migrationDavid Disseldorp2011-07-071-4/+7
| | | | | Also fix possibly uninitialised status return from printing_tdb_migrate_printer().
* s3-printing: remove spoolss pipe from migration library, only using winreg ↵Günther Deschner2011-07-073-30/+3
| | | | | | | | finally. Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: use winreg interface for migration, instead of spoolss.Günther Deschner2011-07-071-181/+38
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: safe a ton of roundtrips by reusing existing winreg ↵Günther Deschner2011-07-072-8/+38
| | | | | | | | binding_handles. Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: use winreg_internal functions.Günther Deschner2011-07-072-14/+14
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: add winreg_internal functions.Günther Deschner2011-07-071-0/+1
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: move spoolss_create_default_devmode/secdesc to init_spoolss.hGünther Deschner2011-07-071-172/+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-90/+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-073-142/+187
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: open up a winreg pipe handle for the migration code.Günther Deschner2011-07-043-4/+32
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Jul 4 15:06:41 CEST 2011 on sn-devel-104
* s3-rpc_server: Migrate rpc function to tsocket_address.Andreas Schneider2011-07-041-2/+2
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-printing: split out printing migration code into a smaller library.Günther Deschner2011-07-015-246/+317
| | | | Guenther
* s3-printing: skip migration of non-existent printersDavid Disseldorp2011-06-301-8/+18
| | | | | | | | | | Skip tdb migration of printer and security descriptor entries which refer to non-existent printers. Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Jun 30 10:54:23 CEST 2011 on sn-devel-104
* s3-printing: fill devicemode size in migrate_printer()David Disseldorp2011-06-301-0/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* param: Merge param headers into lib/param/loadparm.hAndrew Bartlett2011-06-292-0/+2
| | | | | | | This defines a common table format, so we can in future define a common table. Andrew Bartlett
* tdb_compat: Higher level API fixes.Rusty Russell2011-06-202-8/+8
| | | | | | | | | | | | My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: use tdb_open_compat.Rusty Russell2011-06-201-2/+3
| | | | | | | | | This is a helper for the common case of opening a tdb with a logging function, but it doesn't do all the work, since TDB1 and TDB2's log functions are different types. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* ldb: replace 'struct TDB_DATA' with 'TDB_DATA'Rusty Russell2011-06-201-1/+1
| | | | | | | The typedef is TDB2 compatible, the struct isn't. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: use tdb_errorstr_compat()Rusty Russell2011-06-201-6/+6
| | | | | | | | Since TDB2 functions return the error directly, tdb_errorstr() taken an error code, not the tdb as it does in TDB1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: use tdb_firstkey_compat/tdb_nextkey_compat everywhere.Rusty Russell2011-06-202-6/+6
| | | | | | | Note that tdb_nextkey_compat frees the old key for us. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_traverse/tdb_traverse_read: check returns for negative, not -1.Rusty Russell2011-06-201-2/+2
| | | | | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for < 0 instead of == -1. Also, there's no tdb_traverse_read in TDB2: we don't try to make traverse reliable any more, so there are no write locks anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_chainlock: check returns for 0, not -1.Rusty Russell2011-06-201-1/+1
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_store: check returns for 0, not -1.Rusty Russell2011-06-202-6/+6
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell2011-06-203-16/+16
| | | | | | | This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* source3/printing/pcap.h: fix licence/copyrightGünther Deschner2011-06-101-0/+15
| | | | Guenther
* source3/printing/load.h: fix licence/copyrightGünther Deschner2011-06-101-0/+24
| | | | Guenther
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-092-4/+4
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_MEMDUP isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett2011-06-092-5/+5
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* Change sys_getcd() to take no arguments and always return malloc'ed memory ↵Jeremy Allison2011-06-011-8/+8
| | | | | | (or NULL). Part of the efforts to remove PATH_MAX on modern systems.
* s3: fix more -Wunused-but-set-variable build warnings.Günther Deschner2011-06-011-2/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Jun 1 00:29:30 CEST 2011 on sn-devel-104
* s3: fix some -Wunused-but-set-variable build warnings.Günther Deschner2011-05-301-4/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon May 30 17:41:18 CEST 2011 on sn-devel-104
* Fix bug #8157 - std_pcap_cache_reload() fails to parse a cups printcap file ↵Jeremy Allison2011-05-201-8/+5
| | | | | | | | | | correctly. The parsing code made some strange assumptions about what is a printer name, and what is a comment. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri May 20 22:52:23 CEST 2011 on sn-devel-104
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-181-1/+1
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-printing: remove cups_pull_comment_location from header fileDavid Disseldorp2011-05-161-4/+0
| | | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon May 16 16:03:57 CEST 2011 on sn-devel-104
* s3-printing: Remove obsolete and unused cups_pull_comment_location().Andreas Schneider2011-05-161-157/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-printing: Get the location info from cups.Günther Deschner2011-05-169-30/+80
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* rpc_server: Always use rpc_pipe_open_interface()Simo Sorce2011-05-131-1/+1
| | | | | | | | | | This way we can configure which rpc service we actually want to connect to. By default it uses an "embedded" interface and calls rpc_pipe_open_internal() Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri May 13 14:40:26 CEST 2011 on sn-devel-104
* s3-printing: make cups_pull_comment_location() work again.Günther Deschner2011-05-111-13/+2
| | | | | | | | | | we deal with lp_cups_server in cups_connect() already, inside the URI all our other cups functions we use ipp://localhost, do the same here. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed May 11 11:36:07 CEST 2011 on sn-devel-104
* s3-printing: Fix double free of cups request.Günther Deschner2011-05-101-4/+0
| | | | | | | | | | | | | | | | We never free the request in our cups api usage except for here. The reason is probably htis (from the cupsDoConnect API docs): "This function sends the IPP request to the specified server, retrying and authenticating as necessary. The request is freed with ippDelete() after receiving a valid IPP response." Revert "Fix a memory leak in cups_pull_comment_location" This reverts commit fee2664dad37536b05ce8bdae3e74d45b257f632. Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue May 10 17:32:58 CEST 2011 on sn-devel-104
* s3-printing: very obvious fix for cups_pull_comment_location().Günther Deschner2011-05-101-1/+1
| | | | | | This has been in there since 2008... Guenther
* s3: only include tdb headers where needed.Günther Deschner2011-05-067-1/+8
| | | | Guenther
* More simple const fixes.Jeremy Allison2011-05-052-3/+3
|
* s3-printing: run minimal_includes.pl.Günther Deschner2011-05-054-9/+0
| | | | Guenther
* Fix warning messages caused by addition of null check in fstrcpy macro.Jeremy Allison2011-05-041-1/+2
|
* s3: include ntdomain.h before including generated srv_ headers.Günther Deschner2011-05-021-0/+1
| | | | Guenther