summaryrefslogtreecommitdiff
path: root/source3/printing
AgeCommit message (Collapse)AuthorFilesLines
2004-03-02allow the 'printing' parameter to be set on a per share basis.Gerald Carter1-7/+29
The problem was that the current_printif struct was set during print_backend_init() based on the 'printcap name'. So you could not use cups and then override the setting for a specific printer by setting 'printing = bsd' (a common setup for pdf generation print services. There is a subtle change in behavior in that the print interface functions are selecting on the basis of lp_printing() and not lp_printcap_name(), but the new behavior seems more intuitive IMHO. (This used to be commit e721255e8f7d719dbcc2cad94c9b11f6124676e6)
2004-03-01BUG 1147; bad pointer case in get_stored_queue_info() causing seg faultGerald Carter1-1/+1
(This used to be commit eb8a8c290f893b6ffa3d16e282829230be56b212)
2004-02-12tdbsam & smb_panic merge from 3.0 (initial tests are ok but I'll setup a ↵Gerald Carter1-1/+2
HEAD PDC tomorrow) (This used to be commit c57b24ee49aee0f0687742da7f8d741c62f6effe)
2004-01-30Fix up name canonicalization (needed for krb5 keytab support later).Jeremy Allison1-1/+1
Remove source_env handler (no longer used in any codepath). Jeremy. (This used to be commit be60768e64ae2061f220faa3943dcb0588393dbc)
2004-01-14bug 770; correct fix this time; Make sure that we send the SMBjobid for ↵Gerald Carter1-9/+17
unix jobs back to the client. Allows windows client to remove print jobs submitted from lpr (This used to be commit 6a7f9ebccd6a40455cb5446551f3d68ea9a7a824)
2004-01-14bug 660; using byte order safe macros (or tdb_unpack) when reading 2 or 4 ↵Gerald Carter1-16/+18
byte values from a tdb buffer; also recognize smbjobs if the jobid < UNIX_JOB_START (This used to be commit ae6feb54a09a69e3a870b1a0d707b23eb8ca356a)
2004-01-13sync HEAD with recent changes in 3.0Gerald Carter5-0/+5
(This used to be commit c98399e3c9d74e19b7c9d806ca8028b48866931e)
2004-01-05(merge from 3.0)Andrew Bartlett1-2/+2
auth/auth_util.c: - Fill in the 'backup' idea of a domain, if the DC didn't supply one. This doesn't seem to occour in reality, hence why we missed the typo. lib/charcnv.c: lib/smbldap.c: libads/ldap.c: libsmb/libsmbclient.c: printing/nt_printing.c: - all the callers to pull_utf8_allocate() pass a char ** as the first parammeter, so don't make them all cast it to a void ** nsswitch/winbind_util.c: - Allow for a more 'correct' view of when usernames should be qualified in winbindd. If we are a PDC, or have 'winbind trusted domains only', then for the authentication returns stip the domain portion. - Fix valgrind warning about use of free()ed name when looking up our local domain. lp_workgroup() is maniplated inside a procedure that uses it's former value. Instead, use the fact that our local domain is always the first in the list. -- Jerry rightly complained that we can't assume that the first domain is our primary domain - new domains are added to the front of the list. :-( Use a much more reliable 'flag test' instead. (note: changes winbind structures, make clean). -- Forgot to commit this for the 'get our primary domain' change. Andrew Bartlett (This used to be commit acacd27ba25f7ebfec40bfa66d34ece543569e23)
2003-12-30Move to short lived TALLOC_CTX* for allocating printerGerald Carter1-4/+22
objects from the print handle cache. Fixes bug that caused smbd to consume large amounts of RAM when (a) a printer handle was kept open over an extended period of time, and (b) the client issued frequent requests that resulted in a call to get_a_printer() (This used to be commit b84ea23f99481f9260dedbe8dd715112ccdc7d7a)
2003-12-01don't mistake pre-existing UNIX jobs for smb jobs; patch from SATOH Fumiyasu ↵Gerald Carter1-3/+5
bug 770 (This used to be commit d6333ae8d707c17a6fa26a39b14a802bc816ab3f)
2003-11-25allow users to delete jobs with cups printing backendGerald Carter2-1/+7
The changes the name of the job passed off to cups from "Test Page" to "smbprn.00000033 Test Page" so that we can get the smb jobid back from lpq. Working on bug 770. (This used to be commit 3a84daf24f80cf44605841c844a0ba516354420b)
2003-11-24patch from Matthias Hilbig for bug 467; use the dns name (or IP) as the ↵Gerald Carter1-2/+7
originating client name when using CUPS (This used to be commit eae48cda0f7f1346cd66d5a581c1273880f214d4)
2003-11-13* Fix from SATOH Fumiyasu for bug 660 (failing to view printGerald Carter1-2/+2
jobs) by only enforce the 'max reported print jobs' parameter when it is non-zero. * Fixed bug 338 by making sure that data values are written out when we are marshalling an EnumPrinterDataEx() reply. This probably fixes other bugs reported against point-n-print feature in 3.0.0 (This used to be commit d7026f6d178f6ed531bbf7d681d4efde0828616c)
2003-11-05Merge of 64-bit printf warning fixes.Tim Potter2-9/+9
(This used to be commit a6cc763333943bc6e360bb7e78cf9bfb1bc936e8)
2003-10-30More GUID->struct uuid changes.Jim McDonough1-7/+10
Printer publishing now uses struct uuid. Also changes ads_pull_guid to unpack it from the wire format. (This used to be commit 671b434cc4b422144ab8f5858ae9c2179de701e1)
2003-10-29Fixes to check for wraps which could cause coredumps.Jeremy Allison1-5/+14
Jeremy. (This used to be commit 124a8ddae63adff4f601242a8e6d05abcaf4d9bf)
2003-10-20make sure we have a devmode before copying a string to the devicename; patch ↵Gerald Carter1-3/+4
from metze (This used to be commit 5479cb60c038969270353b9ff7a8e9967e066dfd)
2003-10-14updating version in copyrightGerald Carter1-1/+1
(This used to be commit 63ff13b2093aed43468c0ff2a49db7f22cffe587)
2003-09-19Ensure that dup_sec_desc copies the 'type' field correctly. This causedJeremy Allison1-3/+3
me to expose a type arguement to make_sec_desc(). We weren't copying the SE_DESC_DACL_AUTO_INHERITED flag which could cause errors on auto inherited checks. Jeremy. (This used to be commit 546b2271c08735ac1049a453abac996d794aa364)
2003-09-15Merge from Samba 3.0:Tim Potter1-5/+39
>Fix a nasty mess, and also bug #296. passdb/pdb_ldap.c was not converting >to/from utf8 for some calls. The libads code gets this right. Wonder why >the passdb code doesn't use it ? >Jeremy. (This used to be commit 9b6328bcfd5b53a05926eb5a97c74275842d086b)
2003-09-15Merge from Samba 3.0:Tim Potter1-0/+1
>fix unitiailized timestamp where merging print_jobs and lpq listing (This used to be commit 1603d0e6848a8ec3f7d8a8f735c9d1a6d92aac0b)
2003-09-09sync 3.0 into HEAD for the last timeGerald Carter2-13/+34
(This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)
2003-08-02port latest changes from SAMBA_3_0 treeSimo Sorce2-6/+6
(This used to be commit 3101c236b8241dc0183995ffceed551876427de4)
2003-07-16trying to get HEAD building again. If you want the codeGerald Carter7-121/+132
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
2003-05-27Squash another compiler warning.Tim Potter1-2/+2
(This used to be commit 8bfcbd53848e34b90099f5167b570165c3f6bf62)
2003-04-29removing printing = SOFTQ since no one knows what it isGerald Carter1-83/+0
(This used to be commit 7daf5f004273156ae263129b847c601b210f4fdb)
2003-04-23Limit the number of outstanding print notify messages for a process toJeremy Allison1-1/+8
1000. Jeremy. (This used to be commit aabaac05c6adbb510ed27f87115de3e83e27158c)
2003-04-16Fix mem leak. Spotted by tpot (thanks Tim).Jeremy Allison1-0/+1
Jeremy. (This used to be commit adeac265a05be90444d4651f36f2db2bd2f8e8e4)
2003-04-10Ensure we're not filtering our essential delete messages.Jeremy Allison1-11/+21
Added jobid debug when unpacking message. Jeremy. (This used to be commit 8bab6e32069e1636a52efa31ca55b49f1b3fa768)
2003-04-09Ensure print queue array is zeroed out before returning.Jeremy Allison1-0/+1
Jeremy. (This used to be commit 337cac7810369430045d7a136176bd57e55adcde)
2003-04-04Fix the new storage code to correctly convert from system queue info toJeremy Allison1-3/+15
pjob info. Ensure we retrieve more than one job from the storage code. Jeremy. (This used to be commit 5dc3150ff3fc05e71faad76e83079c60f62bac4f)
2003-04-02Subtle changes to message handling after ENUMJOBS.Jeremy Allison2-11/+88
Jeremy. (This used to be commit 48f3bf0ea51b9fd09dfb017870e32ca4a8cc4b8c)
2003-03-31Fix a botched merge from appliance-head...Andrew Bartlett1-1/+1
We have an extra NULL here, which is (if I understand correctly) related to a optional 'charset conversion' function. In any case, as this is a variable args length function, the compiler didn't pick it up. Would it be possible to change applicance_head (or even HEAD) in such a way that this extra arg would cause a warning? Finding this by testing is getting painful... Andrew Bartlett (This used to be commit b4e52d90f8a207b5cd7415abb5915c3ac0c65dfc)
2003-03-26Fix extra NULL arg added during app-head merge.Jeremy Allison1-3/+3
Jeremy. (This used to be commit 4868633bc8182b939190d3cdb86b24cbdb78b5e1)
2003-03-21Merge of new appliance-head scalable printing fixes.Jeremy Allison1-142/+287
Jeremy. (This used to be commit 301f17df51961b645b63d1520fc9c2e5627c1a0a)
2003-03-20lib/messages.c: Check return from chainlock before modifying message queue.Jeremy Allison1-0/+5
Apply the job returned limit across all requests for job queues. Jeremy. (This used to be commit dee1326a1d8a0bf8977df22a0fe014dd5d8dc769)
2003-03-06add #define for the max device name length in a DEVICEMODEGerald Carter1-1/+1
(This used to be commit 21ec2b6ba3ddba6964f6ddb53f8494e4a8b48a83)
2003-03-05Writable string const fixes.Jeremy Allison2-7/+13
Jeremy. (This used to be commit 60b0cfc8a5b6275d3460ebc6bf17d0f08e25b67e)
2003-03-04Fix another 'off by one' bug with safe_strcpy(). It is unclear if the intentAndrew Bartlett1-2/+2
was to limit the string to 31 or 32 characters (excluding the null term), so I've assumed for now that 32 is fine, as this matches current behaviour (well, current behaviour would crash, but anyway...) Jerry: Can you look at this for me? Andrew Bartlett (This used to be commit 6c43327ea2b50820ea4f623c889dc4525d58baa3)
2003-03-01Ensure added jobs increment total_jobs.Jeremy Allison1-0/+6
Jeremy. (This used to be commit d29c6853dd0c43825b3775020076f34faa5cd329)
2003-02-25Progress on CR 601Gerald Carter1-152/+214
cache the printer_info_2 with the open printer handle. cache is invalidated on a mod_a_printer() call **on that smbd**. Yes, this means that the window for admins to step on each other from different clients just got larger, but since handles a generally short lived this is probably ok. (This used to be commit 33c7b7522504fb15989f32add8e9a087c8d9d0fa)
2003-02-19Bit of a hack job to prevent smbprn.XXX jobs appearing in the queue if theJeremy Allison1-9/+14
jobid is below the UNIX_JOB_START number. Jeremy. (This used to be commit e8a9bf67cbe5b3e33f99e6793fe4ec445d6e8819)
2003-02-17This patch fixes one of my longest-standing pet hates with Samba :-).Andrew Bartlett1-1/+1
When we look see if a user is in a list, and we try to 'expand' an @group, we should lookup the user's own list of groups, rather than looking for all the members of a group. I'm sure this will fix some nasty performance issues, particularly on large domains etc. In particular, this avoids contacting winbind at all, if the group is not a winbind group. (This caused a deadlock on my winbind-on-PDC setup). The groups list always includes the user's primary group, as per the getgrouplist manpage, and my recent changes to our implementation. Andrew Bartlett (This used to be commit 9be21976f7662ebe6eb92fff7cecbdb352eca334)
2003-02-15* set PRINTER_ATTRIBUTE_RAW_ONLY; CR 1736Gerald Carter2-4/+35
* never save a pointer to an automatic variable (they go away) implement a deep copy for SPOOLSS_NOTIFY_MSG to correct messages being sent that have junk for strings; fix in response to changes for CR 1504 (This used to be commit 043b9dff22e909fc290c34d879cad8b4c980fc13)
2003-02-14off by one bug in string length; CR 1159Gerald Carter1-1/+1
(This used to be commit 4b5b0bcd9092a6003e3494dda949e03e803ec0aa)
2003-02-12Prevent NULL-pointer induced segfaults.Andrew Bartlett1-4/+4
Is tdb_pack in appliance_head different for some reason? Andrew Bartlett (This used to be commit 9deb14a2e63fa71a05915b5ab865b8d0c11df098)
2003-02-10Failure to find a CUPS printer, when auto-adding printers is not a level 0 ↵Andrew Bartlett1-3/+3
error. Andrew Bartlett (This used to be commit 79650e08c9f1cbf66979adf2575d8b04e06fe4e7)
2003-02-08Ensure we return NOSPACE if we can't fast allocate a print job.Jeremy Allison1-2/+7
Jeremy. (This used to be commit 9cd29f2bacd7c61f82f799e97f93d88f98f9ece6)
2003-02-05Collapse duplicate messages before sending.Jeremy Allison1-80/+132
Jeremy. (This used to be commit 203959f1c2389fa95736af09fee5b07e7ae8b659)
2003-02-05CUPS patch to log client nameGerald Carter1-0/+4
(This used to be commit 364a4de6dfb93353fe0742c259c810ffc7e1eab6)