summaryrefslogtreecommitdiffstats
path: root/source3/printing/nt_printing.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Squash another compiler warning.Tim Potter2003-05-271-2/+2
| | | | (This used to be commit 8b208834354db39797e45fd041c408c7ab6eb314)
* Prefix VFS API macros with SMB_ for consistency and to avoid problems with ↵Alexander Bokovoy2003-05-141-5/+5
| | | | | | VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out (This used to be commit c2689ed118b490e49497a76ed6a2251262018769)
* Fix VFS layer:Alexander Bokovoy2003-05-111-5/+5
| | | | | | | | | | 1. Finally work with cascaded modules with private data storage per module 2. Convert VFS API to macro calls to simplify cascading 3. Add quota support to VFS layer (prepare to NT quota support) Patch by Stefan (metze) Metzemacher, with review of Jelmer and me Tested in past few weeks. Documentation to new VFS API for third-party developers to follow (This used to be commit 91984ef5caa2d13c5d52e1f535bd3bbbae1ec978)
* Elsewhere, we use a #define for this environment variable name, so do theAndrew Bartlett2003-05-091-2/+2
| | | | | | | same here. Andrew Bartlett (This used to be commit a4556786d28724309321a02afbf5005158440258)
* Get credentials before publishing printers.Jim McDonough2003-04-251-0/+8
| | | | (This used to be commit 674174fcca234a44d1778ee092998338cbd7a553)
* Merge the 'safe' parts of my StrnCpy patch - many of the users really wantedAndrew Bartlett2003-04-231-54/+50
| | | | | | | | | | | | | a pstrcpy/fstrcpy or at most a safe_strcpy(). These have the advantage of being compiler-verifiable. Get these out of the way, along with a rewrite of 'get_short_archi' in the spoolss client and server. (This pushes around const string pointers, rather than copied strings). Andrew Bartlett (This used to be commit 32fb801ddc035e8971e9911ed4b6e51892e9d1cc)
* Array size fixup for construct_nt_devicemode() from HEAD.Tim Potter2003-04-141-1/+1
| | | | (This used to be commit 5d1e8cca03b3908e2266e39f4b50ef16ef4ef2b2)
* Fix off by one bug noticed by Andrew Bartlett.Jeremy Allison2003-03-141-2/+2
| | | | | Jeremy. (This used to be commit 759aab9944e8dc5c38e224ace738b75ded07ee54)
* add #define for the max device name length in a DEVICEMODEGerald Carter2003-03-061-1/+1
| | | | (This used to be commit 52ef84b53495db1eac6ecfb0b926ef8df7ea5cc5)
* Writable string const fixes.Jeremy Allison2003-03-051-6/+12
| | | | | Jeremy. (This used to be commit c832e95c2f4daf175954a60f3c56420cf2f35b45)
* Progress on CR 601Gerald Carter2003-02-251-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 31272d3b6bb9ec62fd666301c7adfa0c1720a99b)
* Missed one in the previous merge - user_ok() and user_in_group() now takeAndrew Bartlett2003-02-241-1/+1
| | | | | an optional list of groups the user is in. (This used to be commit 39f3bec0f62520e49a087403287330ed5f3a79c5)
* * set PRINTER_ATTRIBUTE_RAW_ONLY; CR 1736Gerald Carter2003-02-151-2/+2
| | | | | | | | * 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 ffda9e2480414c7ed6156958f516e0d1f3c61350)
* *lots of small merges form HEADGerald Carter2003-01-151-2/+7
| | | | | | | *sync up configure.in *don't build torture tools in make all *make sure to remove torture tools as part of make clean (This used to be commit 0fb724b3216eeeb97e61ff12755ca3a31bcad6ef)
* Merge from HEAD:Andrew Bartlett2003-01-141-1/+1
| | | | | | | | | | - fstring/pstring mixups - the detection code that found them (disabled) - a bit of whitespace - a static Andrew Bartlett (This used to be commit 9b70fa868e7d9481f584c83fc4046174e1dedfd9)
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-21/+21
| | | | | | | warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-201-4/+4
| | | | | | named. Ensure we can query them. Jeremy. (This used to be commit 09a218a9f6fb0bd922940467bf8500eb4f1bcf84)
* Store printer guid in the dsspooler registry key so we don't have toJim McDonough2002-12-131-72/+178
| | | | | query the directory server every time someone asks (This used to be commit dd81003bddc17522041e1cd2f0484e1760493e4a)
* More printer publishing code.Jim McDonough2002-12-131-6/+16
| | | | | | | | | - Add published attribute to info2, needed for win clients to work properly - Return proper info on getprinter 7 This means you can now look at the sharing tab of a printer and get correct info about whether it is published or not, and change it. (This used to be commit d57bddc9b22e809c79294c7eacbd5d0f115fe990)
* More printer data to publishJim McDonough2002-12-051-33/+89
| | | | (This used to be commit 6e2f0c4e304a09313f933a3c9c2a7b3a0219006d)
* Janitor for tpot yet again... Merging in memory leak fix.Jeremy Allison2002-12-041-2/+2
| | | | | Jeremy. (This used to be commit 6ce50ffcda1d6bd17f027d138a985bf93985c016)
* Automatic printer publishing when using APW or choosing 'list in the ↵Jim McDonough2002-12-041-1/+143
| | | | | | directory' in printer settings. Currently very little is published, and you cannot unpublish because of a bug in win2k clients. (This used to be commit ca6360e8db30fc9be3fe3718c8b49c92dba5ecac)
* Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison2002-11-231-8/+11
| | | | | | Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy. (This used to be commit 5d5762d1787db4392d2dff16024097c638b2d494)
* Keeping branches in sync....Jeremy Allison2002-11-071-1/+2
| | | | | Jeremy. (This used to be commit eb937761c4047bd98990ca33e56b668465e2c228)
* Fix slowdown because of enumerating all print queues on every smbd startup.Jeremy Allison2002-10-311-1/+7
| | | | | Jeremy. (This used to be commit 6efd17ef78ebcfed1130312fa019d674e4663a00)
* Check the long_archi name for NULL.Jeremy Allison2002-10-311-0/+6
| | | | | Jeremy. (This used to be commit e504d1170da0d89da78063f0a00fc7b9294d911f)
* removed the following parametersGerald Carter2002-10-211-62/+0
| | | | | | | | | | * postscript * printer driver * printer driver location * printer driver file also removed the get_a_printer_driver_9x_compatible() function (This used to be commit 743f2b8025effe57d8f075ff14a9357123c507a8)
* Add a timeout to tdb_lock_bystring(). Ensure we never have more thanJeremy Allison2002-10-041-2/+2
| | | | | | MAX_PRINT_JOBS in a queue. Jeremy. (This used to be commit 9fe3c0b90d4bff2217e3cb5a34b4683ca314c06e)
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-179/+436
| | | | (This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
* Sync 3.0 branch with HEADJelmer Vernooij2002-08-171-495/+387
| | | | (This used to be commit eac75549c398f208484ae735d5a5931fed6d0e99)
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-100/+437
| | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* Merge of print server permission handling fixes from HEAD.Tim Potter2002-04-151-0/+16
| | | | (This used to be commit 62ee1f8c3fbcf83641bed881143a1a8c70f836ba)
* removed unnecessary memsetGerald Carter2002-04-111-2/+1
| | | | (This used to be commit 233a24792ea305e92c15b43f57839391ca91d1b6)
* specversion merge from SAMBA_2_2Gerald Carter2002-04-111-0/+2
| | | | (This used to be commit d87aa35d482824df7b5a2e87240ae43c113cc730)
* Stomped on some header file version numbers that have crept back in.Tim Potter2002-03-221-1/+1
| | | | (This used to be commit e66bdf1229ba84f64c19e817e2c4081dbbf0bee8)
* Added dos_errstr() function. Not all errors in list yet.Tim Potter2002-03-171-1/+1
| | | | (This used to be commit ddb5753e36b8c5efb48ce5c82c16d970fb8e76b6)
* syncing up printing code with SAMBA_2_2 (already done some mergesGerald Carter2002-03-151-12/+54
| | | | | | | | | | | | | | in the reverse). * add in new printer change notify code from SAMBA_2_2 * add in se_map_standard() from 2.2 in _spoolss_open_printer_ex() * sync up the _print_queue_struct in smb.h (why did someone change the user/file names in fs_user/fs_file (or vice-versa) ? ) * sync up some cli_spoolss_XXX functions (This used to be commit 5760315c1de4033fdc22684c940f18010010924f)
* Backed out enumprinters stuff - leave it for another day.Tim Potter2002-03-141-1/+3
| | | | (This used to be commit d7efc5dd3dd712e7138b5c79eea9756125757175)
* Merge of enumprinters vs getprinter naming patch from 2.2Tim Potter2002-03-121-6/+8
| | | | (This used to be commit dfd51bc8d0714473880bf50369f7994304c1d83f)
* Fix from JohnR - Fixed SetPrinterData(magic key) to support zero length ↵Jeremy Allison2002-02-271-1/+1
| | | | | | | DEVMODE as is the case with the Okidata Okipage 20 PCLXL Advanced printer driver. (This used to be commit 51c3d3536335a72aa264e3f4d62515f5c0b6d192)
* merge from 2.2Gerald Carter2002-02-191-2/+2
| | | | (This used to be commit 9e96cbe24149c8d0ed4f3a1f1d5ea736ba5dca56)
* Bring printing in HEAD inline with 2.2.x and app-head.Jeremy Allison2002-02-091-124/+230
| | | | | Jeremy. (This used to be commit 771ef92fc6e43725b7cc351079998a8acb74abef)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* merge from APPLIANCE_HEADGerald Carter2002-01-261-35/+1
| | | | (This used to be commit e3b87ffc8c26f9fd4c3e8181897b8812b7dc4ab6)
* These changes commited on a 'no less broken' basis.Andrew Bartlett2002-01-261-7/+5
| | | | | | | | | | | | | | | | | | The previous code attempted to call winbind to find out the domain sid. This couldn't work for a number of reasons - not the least of which was that both the client and server ends would reject any name (in this case domain name) without a \ in it (or lp_winbind_seperator()). I think this is what was intended to occour. If there is still some need to contact winbind for this information, I suggest a new call be created for this - as it the server-side code doesn't allow for this information to be extracted easily in any case. Finally, it gets in the way of the default domain code a bit - hence why I was actually looking at it... Andrew Bartlett (This used to be commit 5fe1ea7f11a314a42f867a4f159c1c63c516568f)
* Change this code so that we don't do a lookup_name() on root.Andrew Bartlett2002-01-251-11/+3
| | | | | | | | | | | | This matches the lookup failure case in 2.2, and seems to make more sense than giving the printer to 'world'. (Avoiding this lookup makes some of my other changes - including winbind default domains - a little easier). In any case, tpot has promised to look at this and test it when he gets back to work. :-) Andrew Bartlett (This used to be commit f0137ac126f782e83ed15d8e905def708cdb6c64)
* merge from 2.2Gerald Carter2002-01-231-3/+3
| | | | (This used to be commit 8ed7c1ffad2df03c66151c1dfe7477301bd3ebad)
* merge from 2.2. ofGerald Carter2002-01-221-20/+19
| | | | | | * PRINTER_ATTRIBUTE's * "default devmode" parameter (This used to be commit 90a7a1840b4823d4ebe047130a95dd15a824500b)
* Round and round we go....Jeremy Allison2002-01-111-1/+1
| | | | | Jeremy. (This used to be commit 2603ab3c6870f3697751b887e940910713f08985)
* Latest attempt at changeid.Jeremy Allison2002-01-111-4/+5
| | | | | Jeremy. (This used to be commit 24ee18c77e1b61004d8ed817118a481f3d43e34c)