summaryrefslogtreecommitdiff
path: root/source3/printing/nt_printing.c
AgeCommit message (Collapse)AuthorFilesLines
2002-08-18* Fix DeletePrinterDataEx() to work with arbitrary registry keysGerald Carter1-24/+101
* Fix delete_all_printer_data() to accept a key name for partial tree deletions * Fix EnumPrinterKey() to work with subkeys * Fix DeletePrinterKey() to work with ful or partial registry trees * Fix get_printer_subkeys() to return a list of unique keynames ( some were getting added twice due to subkeys names ) * fix a couple of typos for good measure (This used to be commit b6ceb8c2e50b7fcdc614a3b6782db05b60689a85)
2002-08-18fix GetPrinterDataEx() to work with registry subkeys using a depth > 1Gerald Carter1-1/+1
(This used to be commit 8799d4f7ccf3b3767c155d29f15cecd142d0db99)
2002-08-18fix to allow EnumPrinterKey() to enumerate multiple levels of subkeys.Gerald Carter1-5/+62
Works on the top level. Needs more testing for levels > 1. (This used to be commit 32a7083843f2bf9a3f32027189dbb0ff92927cd4)
2002-08-17* the printing code should now be back to the working state it wasGerald Carter1-38/+19
before the swap from NT_PRINTER_PARAM to REGISTRY_VALUE. * XxxPrinterDataEx() functions have not been expanded to support keys other than SPOOL_PRINTERDATA_KEY yet * fixed apparent long standing bug regarding the dependentfiles list in the DRIVER_INFO struct (This used to be commit d59b0eb1236cf5bb9371030a94eb60d4131c15fb)
2002-08-16Fairly large change to printing code.Gerald Carter1-435/+311
* removed support for PHANTOM_DEVMODE printer data * s/NT_PRINTER_PARAM/REGISTRY_VALUE/g - This was a good bit of work. Everything seems stable, but is not complete. * support for printer data keys other than PrinterDriverData in the store and fetch routines. Still needs to be plugged into the XxxPrinterDataEx() calls. Tested against NT4.0 & 2k. Like I said, it's not done, but doesn't crash so it shouldn't upset anyone (unless you're trying to build a Samba printer server off of HEAD). More work to come. Should settle by Monday. jerry (This used to be commit 7ba7c04c0e961618c82c2112b9627af114c6cc42)
2002-08-08one line merge from APP_HEADGerald Carter1-1/+1
(This used to be commit b6b64d06a630f741c7ffbec99b71d34496159fa7)
2002-08-08delete printer driver fix from APP_HEADGerald Carter1-14/+37
(This used to be commit 9c6b930068d1e762fad78c9e36792764c280b85c)
2002-08-08printing change notification merge from APPLIANCE_HEADGerald Carter1-1/+11
(This used to be commit 11ddfd9cfa550dcd3186c8aaf0cc038ce7f1791f)
2002-07-29couple of minor formatting fixes to help me see better.Gerald Carter1-4/+2
(This used to be commit 26027ee42ae378eef59a8ae46f5e4e44bf2d4af0)
2002-07-20another intermediate checkin on the way to enumerating formsGerald Carter1-5/+9
via the registry. There is a seg fault here which shouldn't bother anyone until I can get it fixed. I just need a check point in case I need to roll back to this version later on. (This used to be commit e62ae94823461e142978a786b2860ea97906cfb3)
2002-07-11added copyrightGerald Carter1-0/+1
(This used to be commit dcb6d70706a0e86881588c3828ff5bd4d63d415f)
2002-07-11last check in for tonight.Gerald Carter1-40/+128
* DeletePrinterDriverEx() now has the ability to delete driver files. I need to do some more testing tro veriofy that we are in fact not deleting a file out from under another driver, but it looks ok so far. * DeletePrinterDriver() noiw deletes all versions of the specified driver (cversion == 0, 1, 2, 3) (This used to be commit 17bb780e1327663fa2fcd6a3cb25dd461a29c537)
2002-07-11all that is left to do is to actually perform theGerald Carter1-15/+155
file deletion now. I have the file list. One more commit should do it. (This used to be commit 7207662504f585352b0ceeb99f8998ef58db7f15)
2002-07-11intermediate work on DeletePrinterDriverEx(). This callGerald Carter1-71/+146
will actually delete driver files ( not yet though I don't think). Just wanted to get it in since Jeremy and I are both working on nt_printing.c (This used to be commit 3fa6c3132950c9ff1c6a532d8264ee34a6b2b0ff)
2002-07-11*Experimental* new large-scaling printer code. Splits printing.tdb intoJeremy Allison1-4/+4
a separate tdb per printer, but only keeps (currently one) tdb open at a time (although this is easily changed by changing a #define). Needs scalability testing with large numbers of printers now.... Jeremy. (This used to be commit b0909cfa14fc7ef29d2b98b56d52723570da782a)
2002-06-27It's fairly obvious that no one has tried to upload a driverGerald Carter1-2/+2
to a Samba print server running HEAD in a while. This has been broken since tridge's changes to make_connection() to not do the chdir() to the connect_path. Sorry it took me so long to get around to fixing it. The problem occured with our internal use of make_connection(). jerry (This used to be commit b5bc8aa0f68ceebfb5c0ec15ff93b0172cec36d8)
2002-06-24printing merge from SAMBA_2_2. Ther server code looks to be in sync now.Gerald Carter1-7/+12
Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions being * John driver init changes * Tim's printer enumeration bug fix (This used to be commit f7536762863811f96364e8acd3716bdb7d665bbf)
2002-06-07Globally replace 'global_sam_sid' with get_global_sam_sid(), a selfAndrew Bartlett1-2/+1
initialising function. This patch thanks to the work of "Stefan (metze) Metzmacher" <metze@metzemix.de> This is partly to enable the transition to SIDs in the the passdb. Andrew Bartlett (This used to be commit 96afea638e15d4cbadc57023a511094a770c6adc)
2002-05-09Merged in printing fixes... There were many missing !Jeremy Allison1-0/+29
Jeremy (This used to be commit 32fa089adead6ff3279172fd36560f4f9e2aeef0)
2002-04-15Merge of print server permission handling fixes from HEAD.Tim Potter1-0/+16
Unit tests rock! (This used to be commit bc673c42045ceb46d9569bc4d88f9c64897fc85a)
2002-04-11removed unnecessary memsetGerald Carter1-2/+1
(This used to be commit 233a24792ea305e92c15b43f57839391ca91d1b6)
2002-04-11specversion merge from SAMBA_2_2Gerald Carter1-0/+2
(This used to be commit d87aa35d482824df7b5a2e87240ae43c113cc730)
2002-03-22Stomped on some header file version numbers that have crept back in.Tim Potter1-1/+1
(This used to be commit e66bdf1229ba84f64c19e817e2c4081dbbf0bee8)
2002-03-17Added dos_errstr() function. Not all errors in list yet.Tim Potter1-1/+1
(This used to be commit ddb5753e36b8c5efb48ce5c82c16d970fb8e76b6)
2002-03-15syncing up printing code with SAMBA_2_2 (already done some mergesGerald Carter1-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)
2002-03-14Backed out enumprinters stuff - leave it for another day.Tim Potter1-1/+3
(This used to be commit d7efc5dd3dd712e7138b5c79eea9756125757175)
2002-03-12Merge of enumprinters vs getprinter naming patch from 2.2Tim Potter1-6/+8
(This used to be commit dfd51bc8d0714473880bf50369f7994304c1d83f)
2002-02-27Fix from JohnR - Fixed SetPrinterData(magic key) to support zero length ↵Jeremy Allison1-1/+1
DEVMODE as is the case with the Okidata Okipage 20 PCLXL Advanced printer driver. (This used to be commit 51c3d3536335a72aa264e3f4d62515f5c0b6d192)
2002-02-19 merge from 2.2Gerald Carter1-2/+2
(This used to be commit 9e96cbe24149c8d0ed4f3a1f1d5ea736ba5dca56)
2002-02-09Bring printing in HEAD inline with 2.2.x and app-head.Jeremy Allison1-124/+230
Jeremy. (This used to be commit 771ef92fc6e43725b7cc351079998a8acb74abef)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-26merge from APPLIANCE_HEADGerald Carter1-35/+1
(This used to be commit e3b87ffc8c26f9fd4c3e8181897b8812b7dc4ab6)
2002-01-26These changes commited on a 'no less broken' basis.Andrew Bartlett1-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)
2002-01-25Change this code so that we don't do a lookup_name() on root.Andrew Bartlett1-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)
2002-01-23merge from 2.2Gerald Carter1-3/+3
(This used to be commit 8ed7c1ffad2df03c66151c1dfe7477301bd3ebad)
2002-01-22merge from 2.2. ofGerald Carter1-20/+19
* PRINTER_ATTRIBUTE's * "default devmode" parameter (This used to be commit 90a7a1840b4823d4ebe047130a95dd15a824500b)
2002-01-11Round and round we go....Jeremy Allison1-1/+1
Jeremy. (This used to be commit 2603ab3c6870f3697751b887e940910713f08985)
2002-01-11Latest attempt at changeid.Jeremy Allison1-4/+5
Jeremy. (This used to be commit 24ee18c77e1b61004d8ed817118a481f3d43e34c)
2002-01-09When re-writing tdb version numbers as little endian int32, we mustJeremy Allison1-15/+18
change the version number also. Jeremy. (This used to be commit 3dec9cf99a82bd15626eb99e7d937ff00183cc05)
2002-01-09Fixed all uses of tdb_fetch/store/_int to use explicit int32 little endianJeremy Allison1-8/+20
in tdb's. All except winbindd_idmap.... Hmmmmmm. Jeremy. (This used to be commit ec71f1732b6b27bd2d65b250a6f3720a235dc38d)
2002-01-08My previous fix had a bug....Jeremy Allison1-6/+11
This is SO NASTY as some drivers need this to change, others need it static. This value will change every second, and I must hope that this is enough..... DON'T CHANGE THIS CODE WITHOUT A TEST MATRIX THE SIZE OF UTAH ! Jeremy. (This used to be commit 9fb780d951babeaf5f5b82903c717ff5ccf831cd)
2002-01-08Another attempt at getting changeid correct. Jerry / JF please check !Jeremy Allison1-7/+14
This fixes a driver init bug. Jeremy. (This used to be commit 8e8d71816002c634669c0cb0234f7a35281d9cad)
2002-01-08Caught one problem where a BOOL fn was returning 3 different values :-).Jeremy Allison1-11/+12
Roll on defined types :-). Jeremy. (This used to be commit ccf07e2184a93345a51455dd3e9201dee7be70e7)
2002-01-08Added get_called_name() function, which replaces global_myname in printingJeremy Allison1-10/+4
code (one less global, hurrah !) - to allow NetBIOS aliasing to be used with point and print. Jeremy. (This used to be commit 10d72f0b01e5950c667f3f73dff1b4da5b675ea3)
2002-01-07Return called NetBIOS name if present in preference to global_myname.Jeremy Allison1-5/+9
Should allow print servers to work with NetBIOS aliases. Needs testing. Jeremy. (This used to be commit ee8fd2690a4c8e4ebc5dd3b6e830116806ed5a4b)
2002-01-07Sed error. The status value in the PRINTER_INFO_2 structure isn't a WERRORTim Potter1-1/+1
but a plain old uint32. (This used to be commit 690cc12bad2a037684a43b0dcb48be8eb03aa7bc)
2002-01-03Fixed nasty cast of tdb_delete in traversals.Jeremy Allison1-1/+1
Jeremy. (This used to be commit a0cdec3acc82d1ce0292fadd4b8dac23638450f3)
2001-12-29Removed extra lp_adduser() call.Jeremy Allison1-0/+4
Fixed up error returns in get_correct_cversion(). Jeremy. (This used to be commit 7ce2d1fe37d2be26c407f3dc9427851d00ca216a)
2001-12-14ChangeID fixe from APPLIANCE_HEADGerald Carter1-9/+37
(This used to be commit 096d06a961e3a3e6f6952754875b83558448f449)
2001-12-03Writing decimal constants as "02" has been shown to cause cancer inMartin Pool1-1/+1
rats. (This used to be commit 142d3dad0ab6870acb0d46d1f189d5e2e1f71b17)