1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-20 16:23:51 +03:00
Commit Graph

405 Commits

Author SHA1 Message Date
Gerald Carter
b6ceb8c2e5 * Fix DeletePrinterDataEx() to work with arbitrary registry keys
* 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
-
Gerald Carter
8799d4f7cc fix GetPrinterDataEx() to work with registry subkeys using a depth > 1 -
Gerald Carter
32a7083843 fix to allow EnumPrinterKey() to enumerate multiple levels of subkeys.
Works on the top level.  Needs more testing for levels > 1.
-
Gerald Carter
d59b0eb123 * the printing code should now be back to the working state it was
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
-
Gerald Carter
7ba7c04c0e Fairly large change to printing code.
* 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
-
Gerald Carter
b6b64d06a6 one line merge from APP_HEAD -
Gerald Carter
9c6b930068 delete printer driver fix from APP_HEAD -
Gerald Carter
11ddfd9cfa printing change notification merge from APPLIANCE_HEAD -
Tim Potter
7bf9ca6ca3 Merge of print notify fixes from APPLIANCE_HEAD. -
Gerald Carter
26027ee42a couple of minor formatting fixes to help me see better. -
Tim Potter
825cdc49db Merge from APPLIANCE_HEAD. -
Jeremy Allison
48ab4ae422 Ensure we're root before opening a printer backend tdb.
Jeremy.
-
Andrew Bartlett
2cbbf0ecd3 And a little more 'const'. -
Gerald Carter
e62ae94823 another intermediate checkin on the way to enumerating forms
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.
-
Andrew Bartlett
30d0998c8c More fixes towards warnings on the IRIX compiler
(and yes, some of these are real bugs)

In particular, the samr code was doing an &foo of various types, to a function
that assumed uint32.  If time_t isn't 32 bits long, that broke.

They are assignment compatible however, so use that and an intermediate
variable.

Andrew Bartlett
-
Jeremy Allison
4ff64f6970 Gone back to explicit queue number passing as snum - removed encoding of
queueid in job number. This means we must have an internal tdb to store
mapping from 16 bit RAP jobid's to 32 bit RPC jobids.
Jeremy.
-
Jeremy Allison
2b06fd305b Lanman print jobs are *16* bits, not 32. arggggh. Map them....
Jeremy.
-
Jeremy Allison
b013b94375 Put printing tdbs in a subdirectory to prevent name collisions.
Jeremy.
-
Gerald Carter
dcb6d70706 added copyright -
Gerald Carter
17bb780e13 last check in for tonight.
* 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)
-
Gerald Carter
7207662504 all that is left to do is to actually perform the
file deletion now.  I have the file list.
One more commit should do it.
-
Gerald Carter
3fa6c31329 intermediate work on DeletePrinterDriverEx(). This call
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
-
Jeremy Allison
b0909cfa14 *Experimental* new large-scaling printer code. Splits printing.tdb into
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.
-
Jeremy Allison
9c93f89089 Fix for LPRng from James Henstridge james@daa.com.au.
Jeremy.
-
Jeremy Allison
17cae0d683 Address the string_sub problem by changing len = 0 to mean "no expand".
Went through and checked all string_subs I could to ensure they're being
used correctly.
Jeremy.
-
Andrew Tridgell
91ad9041e9 used findstatic.pl to make some variables static and remove some dead
code
-
Jeremy Allison
e808eb2758 Shut down printing tdb correctly - this will be more important when I go
to a tdb per-queue for scalability.
Jeremy.
-
Jeremy Allison
3603cd4947 Proper merge of all the working printing stuff from APPLIANCE_HEAD.
Now let's keep this in sync !
Jeremy.
-
Gerald Carter
b5bc8aa0f6 It's fairly obvious that no one has tried to upload a driver
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
-
Gerald Carter
5a4a7e5a88 replacing free() with SAFE_FREE() where possible -
Gerald Carter
e3422addeb backing out changes for now -
Gerald Carter
f753676286 printing merge from SAMBA_2_2. Ther server code looks to be in sync now.
Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions
being

  * John driver init changes
  * Tim's printer enumeration bug fix
-
Jeremy Allison
6544a500d0 Format tidyup before I start working on scalability fixes (one file per
print queue).
Jeremy.
-
Andrew Bartlett
96afea638e Globally replace 'global_sam_sid' with get_global_sam_sid(), a self
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
-
Jim McDonough
af35c5a57c Ok, ok, I was too impatient... -
Jim McDonough
f191563c7f Fix build. Changed MSG_PRINTER_UPDATE to MSG_PRINTER_DRVUPGRADE.
Jeremy, please verify that this was ok...
-
Jeremy Allison
32fa089ade Merged in printing fixes... There were many missing !
Jeremy
-
Jeremy Allison
3853234c26 Added Martin's lpq parse fixes from 2.2.
Jeremy.
-
Jeremy Allison
9209d8e718 When opening a tdb fails - don't expect to be able to do tdb_errstr ! (Doh!).
Jeremy.
-
Tim Potter
bc673c4204 Merge of print server permission handling fixes from HEAD.
Unit tests rock!
-
Andrew Tridgell
f16033635f when background printing wasn't enabled printing was completely broken
as the pid was 0
-
Gerald Carter
233a24792e removed unnecessary memset -
Gerald Carter
d87aa35d48 specversion merge from SAMBA_2_2 -
Tim Potter
e66bdf1229 Stomped on some header file version numbers that have crept back in. -
Jeremy Allison
fbc8c6a109 Ensure we don't do lp_servicename()'s in tdb traverse as this
allocates lots of memory.
Jeremy.
-
Jeremy Allison
230941d2fb Print queue entries *must* have queue names, not numbers - numbers are
not identical between different smbds (mr potter, come here and take
your medicine.... :-).
Jeremy.
-
Jeremy Allison
504e5ef049 Remove the "stat open" code - make it inline. This should fix the
bugs with opening and renaming mp3 files, also the word rename
problems that people have had for a while.
Needs a make clean :-) make.
Also added JohnR's printing fix.
Jeremy.
-
Jeremy Allison
d5fd1fd859 Merge JohnR's fix.
Jeremy.
-
Jeremy Allison
2e3133fbe5 Merge in JohnR's page count fixes.
Jeremy.
-
John Terpstra
208c62c5a7 Fix ability to compile with CUPS support. -