summaryrefslogtreecommitdiffstats
path: root/source/printing
Commit message (Collapse)AuthorAgeFilesLines
...
* r5950: more compiler warning's from Jason MaderGerald Carter2007-10-101-2/+2
|
* r5807: fix segfault after compiler warning clean up (and cleanup another ↵Gerald Carter2007-10-101-4/+4
| | | | warning)
* r5792: Added new parameter "inherit owner". If set on a share, the created ↵Jeremy Allison2007-10-101-1/+1
| | | | | | | | | | | | | file/directory will be owned by the same uid as the containing directory. Doing this for directories in a race-free mannor has only been tested on Linux (it depends on being able to open a directory and then do a fchown on that file descriptor). If this functionality is not available then the code silently downgrades to not changing the ownership of a new directory. This new parameter (docs to follow) finally makes it possible to create "drop boxes" on Samba, which requires all files within a directory to be commonly owned. A HOWTO on how to use this will follow. Jeremy.
* r5770: Get rid of some compiler warningsVolker Lendecke2007-10-101-28/+17
|
* r5691: wrapping the pause/resume/purge printer commands inGerald Carter2007-10-101-53/+62
| | | | | | | | | | | | | {become,unbecome}_root() blocks. We've already done a print_access_check() to ensure the user is admin. The means that non-root users can pause and manage printers. I really don't see how this worked before without setuid binaries on the server. Also update print_queue_update() interface to allow an smbd to update the print queue cache locally rather than going through the bg lpq daemon. This is needed for things like pjob_delete() to ensure the cache is current for the specific client.
* r5684: BUG 2405: patch from Torsten Werner <torsten.werner@assyst-intl.com> ↵Gerald Carter2007-10-102-2/+2
| | | | to define 'lpstat' printcap output on HPUX
* r5683: BUG 2363: allow 'in use' driver to be removed as long as one 'Windows ↵Gerald Carter2007-10-101-8/+47
| | | | NT x86' driver remains'
* r5359: BUG 2333: use the lpq command to pass in the correct printer name for ↵Gerald Carter2007-10-101-5/+14
| | | | cups_queue_get(). See comments in code for details
* r5029: after talking to Rob, ensure that we set the NETIOSNAME.domainnameGerald Carter2007-10-101-1/+10
| | | | | | | as the longname in the published printer information since this is what we will have used when we joined the domain. More testing on this tomorrow.
* r5012: fix segfault caused by using a ipp_t * after calling cupsDoRequest()Gerald Carter2007-10-101-0/+2
|
* r4907: remove unreached codeGerald Carter2007-10-101-1/+0
|
* r4902: please note that cupsDoRequest() deletes the request* so don't call ↵Gerald Carter2007-10-101-32/+2
| | | | ippDelete(request) *ever*
* r4881: Varient of Lar's patch for #2270. Jerry promises to test :-).Jeremy Allison2007-10-101-258/+274
| | | | Jeremy.
* r4874: add DOmain Admins (Full Control) to the default printer sd if we are a DCGerald Carter2007-10-101-5/+24
|
* r4805: Last planned change to the privileges infrastructure:Gerald Carter2007-10-101-1/+2
| | | | | | | | | | | * rewrote the tdb layout of privilege records in account_pol.tdb (allow for 128 bits instead of 32 bit flags) * migrated to using SE_PRIV structure instead of the PRIVILEGE_SET structure. The latter is now used for parsing routines mainly. Still need to incorporate some client support into 'net' so for setting privileges. And make use of the SeAddUserPrivilege right.
* r4740: allow SE_PRINT_OPERATORS to have printer admin accessGerald Carter2007-10-101-3/+14
|
* r4662: Fix from "Jerome Borsboom" <j.borsboom@erasmusmc.nl> to fixJeremy Allison2007-10-101-0/+1
| | | | | missing release reference for printer tdb. Jeremy.
* r4539: patch from Rob -- adding real printcap name cache function to speed ↵Gerald Carter2007-10-107-511/+332
| | | | up printcap reloads
* r4306: Couple more MALLOC fixes from albert chin (china@thewrittenword.com).Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r4234: More malloc fixes to use the macros.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r4094: BUG 2107: fix memory bloating caused by large numbers of ↵Gerald Carter2007-10-101-35/+136
| | | | print_queue_updates() requests sent via messages.tdb
* r4089: fix logic error in add_a_form() that only compared N characters ↵Gerald Carter2007-10-101-2/+4
| | | | instead of the entire form name
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-107-39/+43
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r4030: patch from Rob -- don't force the cups printer-make-and-model tag as ↵Gerald Carter2007-10-101-24/+2
| | | | the comment for autoloaded printers
* r4028: * prevent the background LPQ daemon from updatingGerald Carter2007-10-101-63/+85
| | | | | | | | | the print queue cache just because multiple smbd processes sent a message that it was out of date. * add some extra debug messages while trying to track down down jobs being left in the queue after printing has completed.
* r3867: Fix from david.hu@hp.com - make a copy of an incoming messageJeremy Allison2007-10-101-5/+5
| | | | | | rather than indirecting into it as a struct (may not be on an even byte boundary). Bug #2052. Jeremy.
* r3727: Update from Rob Foehl (rwf@loonybin.net):Jim McDonough2007-10-101-24/+10
| | | | | | Try modifying printer before adding it,since add logic appends ObjectClass to mods, which caused a contraint violation when modifying an already published printer. Also cleanup the check_published_printers() logic when verifying published status on startup.
* r3710: fix another safe_strcpy() warning SPAM with the printer drivcenameGerald Carter2007-10-101-1/+1
|
* r3707: 2028: avoid false error messages when copying a long printer name to ↵Gerald Carter2007-10-101-1/+1
| | | | the device mode
* r3069: add 'force printername' service parameter for people that want to ↵Gerald Carter2007-10-101-3/+9
| | | | enforce printername == sharename for spoolss printing
* r3067: patch based on volker's initial work in trunk that fixes the queu ↵Gerald Carter2007-10-106-343/+416
| | | | update problem when using the background daemon
* r3049: fixing some calls in the printing code to stanard_sub_basic(); fix ↵Gerald Carter2007-10-101-1/+1
| | | | standard_sub_snum() to use the current user's gid; add some (snum == -1) checks to standard_sub_advanced()
* r2996: readability fix for length check; no semantic changesGerald Carter2007-10-101-1/+1
|
* r2955: fixing a segfault uncovered by the changes for BUG 1519Gerald Carter2007-10-101-3/+5
|
* r2821: Adding "Windows x64" as architecture string and driverdir "x64" for theGünther Deschner2007-10-101-0/+2
| | | | | | | | | | 64bit AMD platform. (This used to be "Windows AMD64" and "AMD64" in one of the release candidates of SP2 for Windows XP. AMD64 is obviously still supported but not documented.) Guenther
* r2768: BUG 1519: save the hostname used in the open_printer_ex() for later ↵Gerald Carter2007-10-101-10/+25
| | | | reuse when filling in the spolss replies (also gets rid of get_called_name()
* r2570: minor fix with Rob's patch. use dos_errstr() instead of W_ERROR_V() ↵Gerald Carter2007-10-101-2/+2
| | | | when using %s in the format string
* r2569: Patch from Rob Foehl <rwf@loonybin.net>:Gerald Carter2007-10-102-116/+169
| | | | | | | | | | | | | | | | | - fix typo in libads/ldap_printer.c:39, ads_find_printer_on_server() (originally libads-typo.patch) - fix leak in printing/nt_printing.c, is_printer_published() (originally is_printer_published-leak.patch) - fix double print_backend_init() calls, now only called from main() - restructuring in printing/nt_printing.c - replaced (un)publish_it() with ads-specific functions - moved common code to nt_printer_publish() - improved error handling in several places - added check_published_printers() in printing/nt_printing.c, to verify that each published printer is actually in the directory at startup - changed calling semantics of mod_a_printer, dump_a_printer, and update_driver_init to be more consistent with the rest of the api and reduce some copying
* r2191: ensure that we assign our pid to print jobs (and not our parent's ↵Gerald Carter2007-10-101-17/+8
| | | | pid); ensures that spooling jobs from dead smbds are removed from the tdb
* r2133: Several fixes:Gerald Carter2007-10-103-20/+25
| | | | | | | | | | | | | | | | | | | * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3 and 5.1 patch from Olaf Flebbe <o.flebbe@science-computing.de>. Will need to watch this one in the build farm. * Fix bug found by rwf@loonybin.net where the PRINT_ATTRIBUTE_PUBLISHED was getting reset by attempts to sanitize the defined attributes (PRINTER_ATTRIBUTE_SAMBA) * Resolve name conflict on DEC OSF-5.1 (inspired by patch from Adharsh Praveen <rprav@india.hp.com>) * Work around parsing error in the print change notify code (not that the alignment bug is still there but reording the entries in the array works around it). * remove duplicate declaration of getprintprocdir from rpcclient.
* r2068: Use SMB_ASSERT to track down empty printername (thanks jerry).Günther Deschner2007-10-101-2/+1
| | | | Guenther
* r2067: Prevent nameless $LIBDIR/printing/.tdb from beeing created.Günther Deschner2007-10-101-0/+3
| | | | | | | I've seen these on several sites now without knowing how they could get created. Guenther
* r1885: tighten the cache consistency with the ntprinters.tdb entry an the in ↵Gerald Carter2007-10-102-1/+34
| | | | memory cache associated with open printer handles; also make sure that register_messages_flags() doesn't overwrite the originally registers flags
* r1692: first commit :)Günther Deschner2007-10-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add IA64 to the architecture table of printer-drivers * add new "net"-subcommands: net rpc printer migrate {drivers|printers|forms|security|settings|all} [printer] net rpc share migrate {shares|files|all} [share] this is the first part of the migration suite. this will will (once feature-complete) allow to do 1:1 server-cloning in the best possible way by making heavy use of samba's rpc_client-functions. all migration-steps are implemented as rpc/smb-client-calls; net communicates via rpc/smb with two servers at the same time (a remote, source server and a destination server that currently defaults to the local smbd). this allows e. g. printer-driver migration including driverfiles, recursive mirroring of file-shares including file-acls, etc. almost any migration step can be called with a migrate-subcommand to provide more flexibility during a migration process (at the cost of quite some redundancy :) ). "net rpc printer migrate settings" is still in a bad condition (many open questions that hopefully can be adressed soon). "net rpc share migrate security" as an isolated call to just migrate share-ACLs will be added later. Before playing with it, make sure to use a test-server. Migration is a serious business and this tool-set can perfectly overwrite your existing file/print-shares. * along with the migration functions had to make I the following changes: - implement setprinter level 3 client-side - implement net_add_share level 502 client-side - allow security descriptor to be set in setprinterdata level 2 serverside guenther
* r1384: ensure we remove the tdb entry for a job in the spooling stateGerald Carter2007-10-101-3/+0
|
* r1325: Always use GetTimeOfDay() (wrapper). Ensure ldap replicationJeremy Allison2007-10-101-1/+1
| | | | | | sleep time is not more than 5 seconds. Should fix issue reported by Chris Garrigues <cwg@deepeddy.com>. Jeremy.
* r1295: To be able to send a message to the background queue updated, we need ↵Volker Lendecke2007-10-101-3/+7
| | | | | | | | to be root. Otherwise the USR1 signal will not be delivered. Volker
* r1230: (merges from HP PSA) fixing a couple of caching bugs in the printing ↵Gerald Carter2007-10-101-0/+1
| | | | code. (a) make sure to clear jobs_changed list when deleting a job and, (b) invalidate the printer handle cache when we get a notification that something has changed on that printer
* r1085: Now it's had some proper user testing, merge in the deferred open ↵Jeremy Allison2007-10-101-6/+6
| | | | | | | | fix. I'm still doing more testing, but it fixes a behaviour that we've been wrong on ever since the start of Samba. Jeremy.
* r1011: fix bad merge (from a few months ago) and ensure that we always use ↵Gerald Carter2007-10-101-2/+2
| | | | tdb_open_log() instead of tdb_open_ex()