summaryrefslogtreecommitdiffstats
path: root/source3/printing
Commit message (Collapse)AuthorAgeFilesLines
...
* Merged Tim's fixes from appliance-head.Jeremy Allison2000-12-181-4/+8
| | | | | Jeremy. (This used to be commit 26f873540c2299600cb80eb059fcdaf70ec82473)
* Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. MergedJeremy Allison2000-12-151-8/+8
| | | | | | | in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open problem. Jeremy. (This used to be commit 0a40bc83e14c69a09948ec09bb6fc5026c4f4c14)
* Changes from APPLIANCE_HEAD:David O'Neill2000-12-131-14/+19
| | | | | | | | | | - trivial typo in definition of enum_printing[] (source/param/loadparm.c) - fixed printer status display bug. When no jobs existed in queue, the clients were not properly notified of printer status. This caused native tools for pausing/unpausing a print queue to not work. (source/printing/printing.c) (This used to be commit c533e77f1912618230a938458980a9339924fe06)
* Added proto definition for new RPC calls.Jeremy Allison2000-12-131-32/+15
| | | | | | Added printing fix from appliance-head. Jeremy. (This used to be commit f4c7f9ddb906b67ee4397e7707309356085476d1)
* Adding in debug for SD's.Jeremy Allison2000-12-111-0/+17
| | | | | Jeremy. (This used to be commit a19f936b644fedc4c59ada5f12172abed9894910)
* file_lines_load/file_lines_pload can now optionally convert unix_to_dos()Jeremy Allison2000-12-073-5/+5
| | | | | | on read. Jeremy. (This used to be commit 76b8dd376d13eb4469417be217c966d54d333367)
* Sync-up with appliance-head printing code.Jeremy Allison2000-12-062-50/+46
| | | | | Jeremy. (This used to be commit fe730614d70b331ec7b1a909940395c9713ea8ac)
* c++ style comments are NOT allowedAndrew Tridgell2000-12-041-1/+0
| | | | (This used to be commit 8b3c1f4455b7db440911960298f772c4db3d8112)
* no longer pass the type to make_sec_desc(), instead the type isAndrew Tridgell2000-12-041-4/+0
| | | | | derived from the other arguments (This used to be commit 9ec4b1fa48fbae937fdf78db06005a7b0cd52d89)
* passdb/secrets.c passdb/smbpassfile.c smbd/server.c : Actually *use* the codeJeremy Allison2000-11-271-1/+10
| | | | | | | | written to transition from an old DOMAIN.MACHINE.MAC file to secrets.tdb. printing/nt_printing.c: Fix case insensitive name lookups for driver files. John - this should fix the Win9x/WinME problem correctly. Jeremy. (This used to be commit 8f3332a9acf413ac5d12053ca5c52733a4e946cc)
* Fix for updating of print queues changed from a local box. Essentially,Jeremy Allison2000-11-211-15/+43
| | | | | | | this makes sure that the change messages sent to ourselves are handled synchronously w.r.t. other smb packets incoming. Jeremy. (This used to be commit 78a13074455618308d048d1c69f62e660988eb90)
* Fix for memory leak when adding driver.Jeremy Allison2000-11-171-6/+7
| | | | | Jeremy. (This used to be commit eeab4e0290f9df84025e91c85d27b21e0c02781f)
* Fix for incorrect break using wrong offset when updating a form.Jeremy Allison2000-11-171-6/+4
| | | | | Jeremy. (This used to be commit 365c76e39d2397a12ac6785a51c4d1529527a356)
* Fix for a problem with the new messaging system. If a sender is using theJeremy Allison2000-11-161-14/+7
| | | | | | | | | | | | | | | messaging system as a notification mechanism, and the speed of notification greatly exceeds the speed of message recovery, then you get a massively (>75Mb) growing tdb. If the message is a simple notification, then the message is static, and you only need one of them in transit to a target process at any one time. This patch adds a BOOL "allow_duplicates" to the message_send_XX primitives. If set to False, then before sending a message the sender checks the existing message queue for a target pid for a duplicate of this message, and doesn't add to it if one already exists. Also added code into msgtest.c to test this. Jeremy. (This used to be commit 3aa7995660395ecb85c8e35b638fa9fbbb952558)
* Uninitialized memory read fixes.Jeremy Allison2000-11-151-3/+7
| | | | | | open_file_shared takes a DOS pathname, not a UNIX one. Jeremy. (This used to be commit b2b59b93ff1c5bdc43b099e2db1ee86fe8514152)
* Tuyrn debug timestamps on by default.Jeremy Allison2000-11-151-4/+16
| | | | | | Add Tim's lpq race fix. Jeremy. (This used to be commit d43405bc47c95bf8c906035cba23bf95d252d13b)
* Merge from appliance head of JR's changes for driver versioning.Jeremy Allison2000-11-142-183/+698
| | | | | Jeremy. (This used to be commit cdbd2e99775642dc2e92004be9014bf38a92d80f)
* Changes from APPLIANCE_HEAD:David O'Neill2000-11-141-0/+51
| | | | | | | | | | - merged Tim's vlp (virtual lp) test program. Enable it with -DDEVELOPER or by using ./configure.developer (source/include/smb.h source/configure.developer source/printing/lpq_parse.c source/param/loadparm.c testsuite/printing/.cvsignore testsuite/printing/Makefile.vlp testsuite/printing/vlp.c) (This used to be commit fbcf83140da1823e74f63227f0a95d07c6e76764)
* printing/nt_printing.c: After long soul searching and making both Andrew and myJeremy Allison2000-11-141-2/+4
| | | | | | | | | life a misery, here is the only possible null driver fix we have found. This *SUCKS*. rpc_server/srv_spoolss_nt.c: Correct printername search. Correct portname reply Correct attributes reply. Removal of unused temp variable. Jeremy. (This used to be commit 06e71c9f8be20b84e33e143c3d0b7904225efb45)
* Large commit which restructures the local password storage API.Gerald Carter2000-11-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the only backend which works is smbpasswd (tdb, LDAP, and NIS+) are broken, but they were somewhat broken before. :) The following functions implement the storage manipulation interface /*The following definitions come from passdb/pdb_smbpasswd.c */ BOOL pdb_setsampwent (BOOL update); void pdb_endsampwent (void); SAM_ACCOUNT* pdb_getsampwent (void); SAM_ACCOUNT* pdb_getsampwnam (char *username); SAM_ACCOUNT* pdb_getsampwuid (uid_t uid); SAM_ACCOUNT* pdb_getsampwrid (uint32 rid); BOOL pdb_add_sam_account (SAM_ACCOUNT *sampass); BOOL pdb_update_sam_account (SAM_ACCOUNT *sampass, BOOL override); BOOL pdb_delete_sam_account (char* username); There is also a host of pdb_set..() and pdb_get..() functions for manipulating SAM_ACCOUNT struct members. Note that the struct passdb_ops {} has gone away. Also notice that struct smb_passwd (formally in smb.h) has been moved to passdb/pdb_smbpasswd.c and is not accessed outisde of static internal functions in this file. All local password searches should make use of the the SAM_ACCOUNT struct and the previously mentioned functions. I'll write some documentation for this later. The next step is to fix the TDB passdb backend, then work on spliting the backends out into share libraries, and finally get the LDAP backend going. What works and may not: o domain logons from Win9x works o domain logons from WinNT 4 works o user and group enumeration as implemented by Tim works o file and print access works o changing password from Win9x & NT ummm...i'll fix this tonight :) If I broke anything else, just yell and I'll fix it. I think it should be fairly quite. -- jerry (This used to be commit 0b92d0838ebdbe24f34f17e313ecbf61a0301389)
* Added Tim's changes to lock DB during update.Jeremy Allison2000-11-101-3/+18
| | | | | Jeremy. (This used to be commit f25b5798b8610de9748ae90ea1bf813b125f517d)
* printing/nt_printing.c: use getpwuid not smbgetpwuid. Canonicalize printernames.Jeremy Allison2000-11-102-7/+19
| | | | | | | | | printing/printing.c: Insure fix for malloc of zero. rpc_parse/parse_misc.c: Enusre UNISTR's are zero filled. rpc_parse/parse_spoolss.c: Correct INFO_6 - differs between pre-releases of W2K and shipping build. rpc_server/srv_spoolss_nt.c: Canonicalize printernames. Jeremy. (This used to be commit b17e23a8ff2b44540726968355a4b7e26f244f3b)
* an attempt to get the handling of fields in printer info structuresAndrew Tridgell2000-11-081-5/+6
| | | | | | consistent. Still working with Jeremy on this, there is probably more to be done (This used to be commit c4bb9c598cf9781d48bc123a8cbbed9c2049bf89)
* Merge of latest round of printing fixes from appliance branch.Tim Potter2000-11-071-30/+69
| | | | (This used to be commit 8fe17fd59488814cdbe9abcfe53ab2627901e421)
* Merge of printer security descriptor, info level and printerdataTim Potter2000-11-071-58/+2
| | | | | comparison changes from appliance branch. (This used to be commit ae087bdf312806e08848695cad70a943bb3d71b9)
* Merge from Tim - don't reinsert UNIX job if already exists.Jeremy Allison2000-11-041-0/+8
| | | | | Jeremy. (This used to be commit a33c395c98d80f620257fed480d5824fc609d9c9)
* Merge of printing improvements/fixes from appliance branch.Tim Potter2000-11-041-1/+60
| | | | (This used to be commit 8e163eac33e8f407de00c318d3de29fcfbf2b8a7)
* Sync up with Tim's changes in applience-head for SACLs.Jeremy Allison2000-11-041-49/+44
| | | | | Jeremy. (This used to be commit 6b94273fc61b26e83c8d791bc626fd52055ef293)
* Added John Reillys patch for error code returns from ↵Jeremy Allison2000-10-261-5/+7
| | | | | | | | clean_up_printer_driver_strunct() calls. Jeremy. (This used to be commit f81a2a03bf435e65e7484ab021f86a8a4f62b656)
* Sorry JF - no billable hours :-). I fixed the "stream of events" problemJeremy Allison2000-10-261-14/+42
| | | | | | | | | | with PCL drivers. The problem was we were updating the changeid on every SETPRINTERDATA/DELETEPRINTERDATA call. We should not do this, we should just update the 'setprinter' called count. We update the changeid on calls to SETPRINTER/ADDPRINTER/ADDPRINTEREX etc. Also fixed the correct returning of the create time on printers. Jeremy. (This used to be commit 521f09829fd329f87b3d19e8871e2b989c98a58e)
* We already have a perfectly good next_token() function we should be usingJeremy Allison2000-10-251-6/+3
| | | | | | | | instead of strtok - this fixes a bug with NT users with spaces in their names when using winbindd. Needs to be added to the other parse_lpXX functions (currently only added to lprng parsing code). Jeremy. (This used to be commit c3e4ac9a2db32c40ce330de0eab4bc82ef4fd579)
* John Reilly @ HP (who is a wonderful human being and *definately* needsJeremy Allison2000-10-251-54/+161
| | | | | | | | | CVS commit access :-) has written a simple routine that peeks inside the MS PE printer driver file format and can tell if a driver is W2K or NT4.x. So we can now correctly return the driver version number. Hurrah ! JF - this is the code you always wanted ..... :-) :-). Jeremy. (This used to be commit fd17374e6d888813f4ed7142480cf93b8a16bfef)
* Removed null user checks to enable lanman print queue pausing and print jobTim Potter2000-10-181-4/+0
| | | | | deleting. (This used to be commit e40a0e2f52326199264d622c4f11877f20e4ebce)
* Fix for growing printing.tdb by adding check on job creation.Jeremy Allison2000-10-111-17/+50
| | | | | | This also updates the printing.tdb db version to 2. Jeremy. (This used to be commit 13395514c632341e7be36eb9589011bb0949b075)
* Remove lpq as root fix - do this in print_job_start insteadJeremy Allison2000-10-111-28/+0
| | | | | | as part of print queue length processing. Jeremy. (This used to be commit e85a0fadd8dcf608822819f00f15569713518806)
* Fixes to periodically scan printing.tdb in idle time and occasionallyJeremy Allison2000-10-101-1/+42
| | | | | | | | on exit. Needed to fix printing.tdb from groving to 300Mb+ if being driven by smbclient clients that never ask for status... (effective DOS attack :-). Jeremy. (This used to be commit 6581066b93a674fadf6f9b92441428d2cc8b4a02)
* Fixed Realloc memory fragmentation problems.Jeremy Allison2000-10-101-17/+57
| | | | | Jeremy. (This used to be commit 5518f59976ecac796a85db959cb9e8cc6c4d3504)
* got rid of tdb_writelock() and instead lock a chain. tdb_writelock()Andrew Tridgell2000-10-102-11/+14
| | | | | is conceptually flawed (This used to be commit 6e4a3585521b7e5928298bd0f1418ff9fbcacfb4)
* Integrated support for NT and OS/2 lpq parsing. Code fromJeremy Allison2000-10-071-0/+163
| | | | | | | | | | Jim McDonough Infoprint Manager Development Linux Technology Center IBM Boulder Jeremy. (This used to be commit d9eedd5db1728be8e23d73c954db13bbbcadf3fb)
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-061-4/+4
| | | | | | | | | | | | | | | | a conn struct depending on the call. We need this to have a clean NT ACL call interface. This will break any existing VFS libraries (that's why this is pre-release code). Andrew gets credit for this one :-) :-). In addition - added Herb's WITH_PROFILE changes - Herb - please examine the changes I've made to the smbd/reply.c code you added. The original code was very ugly and I have replaced it with a START_PROFILE(x)/END_PROFILE(x) pair using the preprocessor. Please check this compiles ok with the --with-profile switch. Jeremy. (This used to be commit b07611f8159b0b3f42e7e02611be9f4d56de96f5)
* utils/smbcontrol.c: Fixes from Herb for interactive use.Jeremy Allison2000-09-291-1/+1
| | | | | | printing/nt_printing.c: No C++ comments please :-). Jeremy. (This used to be commit dd9f668108215f18240458fc33bf872a6fc9e6be)
* Fix from John Reilly for forms ordering problems.Jeremy Allison2000-09-281-12/+19
| | | | | Jeremy. (This used to be commit 837839eb3d0fae7fef5d61593862a2c1b00d6a07)
* fix for IRIX 6.2 compiler errorHerb Lewis2000-09-261-1/+1
| | | | (This used to be commit eecee22bf1ab6e22e5e989b51d522fcf587aa48c)
* Move towards getting W2k p&p to upload NT4.x drivers. Still doesn't work -Jeremy Allison2000-09-151-2/+67
| | | | | | | | not sure why (JF - a glance at this would be appreciated). Removed code that JF objected to with enumprinterdata. Added translations to/from level 6 - but Win2k still not happy... hmmm... Jeremy. (This used to be commit e5d98ba9e97eb16337ff6c49f799e130844ae72e)
* Ensure old DACL and SACL are preserved if the new SD is a 'set' only.Jeremy Allison2000-09-131-2/+11
| | | | | Jeremy. (This used to be commit 29f41d0d95661fbc31ae1d9669fd7fb439169f90)
* When creating a print job entry for the printing backend, use the WindowsTim Potter2000-09-131-11/+21
| | | | | | | username rather than the Unix username. The Windows username will then be shown in the port monitor regardless of the Unix username used to spool the job. (This used to be commit a15e610bb34636448cb30e590277c53e7f9efe1a)
* Added time check test before allowing print job.Jeremy Allison2000-09-132-1/+13
| | | | | Jeremy. (This used to be commit 0249de4cd91d72efb344e9fb05e2be2cb3f03945)
* Added missing break statement for manage documents check inTim Potter2000-09-131-1/+3
| | | | | print_access_check() function. (This used to be commit 318ead783c842f2a557207690afd522b3d28e077)
* Fixed memory leaks found in enumprinterdrivers code.Jeremy Allison2000-09-111-3/+3
| | | | | Jeremy. (This used to be commit e08b521559a824da09b0b73a04e462c573c42b06)
* Fixed up get_a_printer_driver_3 so it looks in the tdb using the correctJeremy Allison2000-09-081-0/+11
| | | | | | | | key name for a driver info. Version needs to be adjusted in the same way that it is adjusted when the driver info is stored in the tdb. AddPrinterConnection() Win32 call caught this one. Jeremy. (This used to be commit 54cab7dd3b7c1ad3a01692447f80134518772486)