1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

527 Commits

Author SHA1 Message Date
Jeremy Allison
2b425763b8 Hold lock on NEXTJOB record for a very short time. Jerry needs to add code
to make this rebust w.r.t. stored devicemodes.
Jeremy.
(This used to be commit f93a008f09)
2002-09-24 22:57:51 +00:00
Gerald Carter
56baccb928 CUPS merge from SAMBA_2_2
(This used to be commit cbb16eac0e)
2002-09-20 15:11:31 +00:00
Gerald Carter
aad3c35ac1 printjob merge from APP_HEAD regarding device modes
(This used to be commit aa52351384)
2002-09-18 19:06:58 +00:00
Gerald Carter
5d390fc5c7 AbortPrinter() fix merged from APP_HEAD.
(This used to be commit 97ede49e12)
2002-09-10 21:37:53 +00:00
Jeremy Allison
4cf5238599 Revert the "reverse" change to rpc_server/srv_spoolss_nt.c, simply
add then entries to the end of the list in printing/notify.c using
DLIST_ADD_END.
Jeremy.
(This used to be commit 047d6a05fb)
2002-09-05 12:55:56 +00:00
Jeremy Allison
8ac6e260b9 Remove donotify as notifies are cheap now.
Jeremy.
(This used to be commit 78585de581)
2002-09-05 05:26:29 +00:00
Tim Potter
481c0db0ac Roussed on Jeremy for not putting in enough debugs in the new print
notify stuff.  (-:
(This used to be commit 87c156704f)
2002-09-05 04:22:16 +00:00
Jeremy Allison
2658e4ee23 Added better error code on out of space. Removed total jobs check - not
applicable any more.
Jeremy.
(This used to be commit 8828e2ea3c)
2002-09-04 23:40:49 +00:00
Jeremy Allison
cbaa14857b Merge of (apparently working :-) new printing notify code.
Jeremy.
(This used to be commit 8595c6ce4d)
2002-09-04 21:59:38 +00:00
Jeremy Allison
a1aafce4dc Add bcast_msg_flags to connection struct. Allows sender to filter when
sending broadcast messages. Also initial cut-down of printing notify
messages (not yet finished).
Jeremy.
(This used to be commit aca3337196)
2002-09-04 19:13:06 +00:00
Gerald Carter
59f40f31ed DeletePrinterDriver[Ex]() fixes from APP_HEAD
(This used to be commit 04874134ed)
2002-09-04 01:14:24 +00:00
Gerald Carter
3cbe892276 fix up print portion of registry. Merge from APP_HEAD.
(This used to be commit ec37633548)
2002-08-30 14:48:33 +00:00
Gerald Carter
de3d0310e2 merge of phant0m key fix from APP_HEAD
(This used to be commit cb13d334a5)
2002-08-30 10:47:34 +00:00
Jeremy Allison
28a7d0f506 Move to reference counting rather than lock counting.
Jeremy.
(This used to be commit e7b48224c4)
2002-08-27 23:59:26 +00:00
Jeremy Allison
e519e528a0 Handle locking correctly.
Jeremy.
(This used to be commit 4208f027cf)
2002-08-27 20:23:12 +00:00
Jeremy Allison
16413f2d9d Allow us to "lock" printer tdb entries in memory to stop them being
re-used as cache.
Jeremy.
(This used to be commit 6f901e479d)
2002-08-27 20:15:35 +00:00
Gerald Carter
12be900ece * 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
(This used to be commit b6ceb8c2e5)
2002-08-18 16:52:51 +00:00
Gerald Carter
11fadbee74 fix GetPrinterDataEx() to work with registry subkeys using a depth > 1
(This used to be commit 8799d4f7cc)
2002-08-18 12:33:41 +00:00
Gerald Carter
50d224a898 fix to allow EnumPrinterKey() to enumerate multiple levels of subkeys.
Works on the top level.  Needs more testing for levels > 1.
(This used to be commit 32a7083843)
2002-08-18 11:11:48 +00:00
Jelmer Vernooij
b2edf254ed sync 3.0 branch with head
(This used to be commit 3928578b52)
2002-08-17 17:00:51 +00:00
Jelmer Vernooij
669a39fae3 Sync 3.0 branch with HEAD
(This used to be commit eac75549c3)
2002-08-17 16:31:24 +00:00
Gerald Carter
cb36e520b3 * 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
(This used to be commit d59b0eb123)
2002-08-17 13:17:41 +00:00
Gerald Carter
4ed429481c 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
(This used to be commit 7ba7c04c0e)
2002-08-16 15:36:37 +00:00
Gerald Carter
6633633f7d one line merge from APP_HEAD
(This used to be commit b6b64d06a6)
2002-08-08 22:17:42 +00:00
Gerald Carter
1492a040ee delete printer driver fix from APP_HEAD
(This used to be commit 9c6b930068)
2002-08-08 22:14:42 +00:00
Gerald Carter
14d385439d printing change notification merge from APPLIANCE_HEAD
(This used to be commit 11ddfd9cfa)
2002-08-08 20:54:37 +00:00
Tim Potter
0efda5cc21 Merge of print notify fixes from APPLIANCE_HEAD.
(This used to be commit 7bf9ca6ca3)
2002-08-02 03:57:40 +00:00
Gerald Carter
9f7e67c6f9 couple of minor formatting fixes to help me see better.
(This used to be commit 26027ee42a)
2002-07-29 18:10:59 +00:00
Tim Potter
fb5153a93b Merge from APPLIANCE_HEAD.
(This used to be commit 825cdc49db)
2002-07-22 21:40:45 +00:00
Jeremy Allison
36606f727d Ensure we're root before opening a printer backend tdb.
Jeremy.
(This used to be commit 48ab4ae422)
2002-07-22 19:32:13 +00:00
Andrew Bartlett
c30f930262 And a little more 'const'.
(This used to be commit 2cbbf0ecd3)
2002-07-20 23:55:17 +00:00
Gerald Carter
6dd9f24d05 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.
(This used to be commit e62ae94823)
2002-07-20 13:23:57 +00:00
Andrew Bartlett
29075c97d3 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
(This used to be commit 30d0998c8c)
2002-07-20 13:02:47 +00:00
Jeremy Allison
29426b4a50 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.
(This used to be commit 4ff64f6970)
2002-07-17 19:12:17 +00:00
Jeremy Allison
cc9511af8c Lanman print jobs are *16* bits, not 32. arggggh. Map them....
Jeremy.
(This used to be commit 2b06fd305b)
2002-07-17 00:38:37 +00:00
Jeremy Allison
b3aeabedd0 Put printing tdbs in a subdirectory to prevent name collisions.
Jeremy.
(This used to be commit b013b94375)
2002-07-16 00:07:02 +00:00
Andrew Tridgell
e90b652848 updated the 3.0 branch from the head branch - ready for alpha18
(This used to be commit 03ac082dcb)
2002-07-15 10:35:28 +00:00
cvs2svn Import User
ec167dc9cc This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit b8d39651fb) 2002-07-14 22:15:21 +00:00
Gerald Carter
bdfe11eaea added copyright
(This used to be commit dcb6d70706)
2002-07-11 13:17:57 +00:00
Gerald Carter
137570cb03 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)
(This used to be commit 17bb780e13)
2002-07-11 04:53:39 +00:00
Gerald Carter
0aadcff8ec 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.
(This used to be commit 7207662504)
2002-07-11 03:27:12 +00:00
Gerald Carter
496e85dd81 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
(This used to be commit 3fa6c31329)
2002-07-11 01:54:26 +00:00
Jeremy Allison
25148a148c *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.
(This used to be commit b0909cfa14)
2002-07-11 00:06:29 +00:00
Jeremy Allison
429400e449 Fix for LPRng from James Henstridge james@daa.com.au.
Jeremy.
(This used to be commit 9c93f89089)
2002-07-08 18:24:59 +00:00
Jeremy Allison
82176f4d85 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.
(This used to be commit 17cae0d683)
2002-07-02 06:34:27 +00:00
Andrew Tridgell
9930b0b065 used findstatic.pl to make some variables static and remove some dead
code
(This used to be commit 91ad9041e9)
2002-07-01 09:12:41 +00:00
Jeremy Allison
e7a866dd3d Shut down printing tdb correctly - this will be more important when I go
to a tdb per-queue for scalability.
Jeremy.
(This used to be commit e808eb2758)
2002-06-28 23:11:31 +00:00
Jeremy Allison
452eb38df0 Proper merge of all the working printing stuff from APPLIANCE_HEAD.
Now let's keep this in sync !
Jeremy.
(This used to be commit 3603cd4947)
2002-06-28 00:17:15 +00:00
Gerald Carter
a9093a1b58 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
(This used to be commit b5bc8aa0f6)
2002-06-27 18:10:56 +00:00
Gerald Carter
96c00daefa replacing free() with SAFE_FREE() where possible
(This used to be commit 5a4a7e5a88)
2002-06-24 21:14:30 +00:00
Gerald Carter
86e2e9b8a3 backing out changes for now
(This used to be commit e3422addeb)
2002-06-24 20:26:37 +00:00
Gerald Carter
900fb62238 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
(This used to be commit f753676286)
2002-06-24 19:51:23 +00:00
Jeremy Allison
7ed5608732 Format tidyup before I start working on scalability fixes (one file per
print queue).
Jeremy.
(This used to be commit 6544a500d0)
2002-06-21 01:19:31 +00:00
Andrew Bartlett
b0ffabdcca 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
(This used to be commit 96afea638e)
2002-06-07 14:33:33 +00:00
Jim McDonough
6b623b68d4 Ok, ok, I was too impatient...
(This used to be commit af35c5a57c)
2002-05-10 00:08:54 +00:00
Jim McDonough
961352403f Fix build. Changed MSG_PRINTER_UPDATE to MSG_PRINTER_DRVUPGRADE.
Jeremy, please verify that this was ok...
(This used to be commit f191563c7f)
2002-05-10 00:07:37 +00:00
Jeremy Allison
059da8fb3b Merged in printing fixes... There were many missing !
Jeremy
(This used to be commit 32fa089ade)
2002-05-09 19:54:47 +00:00
Gerald Carter
2699f9b9df printing merge from HEAD
(This used to be commit d3aed37dd8)
2002-04-22 18:48:45 +00:00
Jeremy Allison
16e1ff4f3a Added Martin's lpq parse fixes from 2.2.
Jeremy.
(This used to be commit 3853234c26)
2002-04-19 17:59:13 +00:00
Jeremy Allison
baf8e2e712 When opening a tdb fails - don't expect to be able to do tdb_errstr ! (Doh!).
Jeremy.
(This used to be commit 9209d8e718)
2002-04-19 17:10:56 +00:00
Tim Potter
1667a82106 Merge of print server permission handling fixes from HEAD.
Unit tests rock!
(This used to be commit bc673c4204)
2002-04-15 04:07:13 +00:00
Tim Potter
fea03cef2b Merge of print server permission handling fixes from HEAD.
(This used to be commit 62ee1f8c3f)
2002-04-15 03:49:53 +00:00
Andrew Tridgell
45b291b851 when background printing wasn't enabled printing was completely broken
as the pid was 0
(This used to be commit f16033635f)
2002-04-13 00:58:04 +00:00
Gerald Carter
e1e8c5b396 removed unnecessary memset
(This used to be commit 233a24792e)
2002-04-11 03:15:02 +00:00
Gerald Carter
b40e73e2ca specversion merge from SAMBA_2_2
(This used to be commit d87aa35d48)
2002-04-11 01:48:38 +00:00
Tim Potter
ce236d1dbf Stomped on some header file version numbers that have crept back in.
(This used to be commit e66bdf1229)
2002-03-22 06:24:38 +00:00
Jeremy Allison
e67f1be9f0 Ensure we don't do lp_servicename()'s in tdb traverse as this
allocates lots of memory.
Jeremy.
(This used to be commit fbc8c6a109)
2002-03-20 22:39:30 +00:00
Jeremy Allison
60a7d07d63 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.
(This used to be commit 230941d2fb)
2002-03-20 21:55:57 +00:00
Jeremy Allison
b9e91d2a8e 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.
(This used to be commit 504e5ef049)
2002-03-20 00:46:53 +00:00
Jeremy Allison
adf2431443 Merge JohnR's fix.
Jeremy.
(This used to be commit d5fd1fd859)
2002-03-19 23:33:32 +00:00
Jeremy Allison
72eb7dbd40 Merge in JohnR's page count fixes.
Jeremy.
(This used to be commit 2e3133fbe5)
2002-03-19 02:35:12 +00:00
John Terpstra
0b7f9e7a7c Fix ability to compile with CUPS support.
(This used to be commit 208c62c5a7)
2002-03-17 22:40:51 +00:00
Tim Potter
a4cce223d6 Added dos_errstr() function. Not all errors in list yet.
(This used to be commit ddb5753e36)
2002-03-17 06:04:15 +00:00
Gerald Carter
65c007b583 syncing up printing code with SAMBA_2_2 (already done some merges
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 5760315c1d)
2002-03-15 08:14:10 +00:00
Tim Potter
57bd576445 getpid() -> sys_getpid()
(This used to be commit a3cea5e9ae)
2002-03-14 01:53:04 +00:00
Tim Potter
8975d3ef70 Backed out enumprinters stuff - leave it for another day.
(This used to be commit d7efc5dd3d)
2002-03-14 01:48:59 +00:00
Tim Potter
92e59edc41 Merge of enumprinters vs getprinter naming patch from 2.2
(This used to be commit dfd51bc8d0)
2002-03-12 00:16:03 +00:00
Jeremy Allison
024e69da0b Fix for machines that have their time changed forward, then back. Ensure
that any cached lpq information gathered during that time doesn't
stay around for longer than 1 hour.
Jeremy.
(This used to be commit 39fca711a5)
2002-03-07 21:51:59 +00:00
Jeremy Allison
9d975fa6bc Fix from JohnR - Fixed SetPrinterData(magic key) to support zero length DEVMODE as is the case with the
Okidata Okipage 20 PCLXL Advanced printer driver.
(This used to be commit 51c3d35363)
2002-02-27 22:40:12 +00:00
Martin Pool
570cdd8529 FIXME: Use next_token rather than strtok!
(This used to be commit d56b8a30c5)
2002-02-26 23:22:02 +00:00
Jeremy Allison
2ff9390245 Fixup the sending of printer change messages from job changes.
Jeremy.
(This used to be commit 28d4e7a3e2)
2002-02-26 03:12:09 +00:00
Tim Potter
2f8452fd49 Merge of printing performance fixes from appliance.
(This used to be commit c8dc59dfe8)
2002-02-25 23:18:05 +00:00
Gerald Carter
2ef886855c merge from 2.2
(This used to be commit 9e96cbe241)
2002-02-19 02:10:08 +00:00
Jeremy Allison
03cfb31ad9 Bring printing in HEAD inline with 2.2.x and app-head.
Jeremy.
(This used to be commit 771ef92fc6)
2002-02-09 04:10:24 +00:00
Tim Potter
cd68afe312 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06)
2002-01-30 06:08:46 +00:00
Gerald Carter
485b4ff5ec merge from APPLIANCE_HEAD
(This used to be commit e3b87ffc8c)
2002-01-26 22:27:12 +00:00
Andrew Bartlett
a7b5354078 These changes commited on a 'no less broken' basis.
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 5fe1ea7f11)
2002-01-26 06:02:28 +00:00
Andrew Bartlett
38ac78c3df Change this code so that we don't do a lookup_name() on root.
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 f0137ac126)
2002-01-25 22:44:21 +00:00
Jeremy Allison
9d8ed7220f Fixed display of "remote downlevel document" in old print job submission
case.
Jeremy.
(This used to be commit 248770d730)
2002-01-25 20:16:14 +00:00
Gerald Carter
e710c07411 merge from 2.2
(This used to be commit 8ed7c1ffad)
2002-01-23 05:10:27 +00:00
Gerald Carter
528ff0d6f7 merge from 2.2. of
* PRINTER_ATTRIBUTE's
  * "default devmode" parameter
(This used to be commit 90a7a1840b)
2002-01-22 18:14:31 +00:00
Jeremy Allison
9e007457e4 Removed MAXSTATUS which was set incorrectly - thus causing tdb traversal
of the connections db on smbd startup. This should fix the Solaris large
load bug.... (fingers crossed).
Jeremy.
(This used to be commit 5b2b9c25af)
2002-01-14 19:34:28 +00:00
Jeremy Allison
1d40138232 Round and round we go....
Jeremy.
(This used to be commit 2603ab3c68)
2002-01-11 23:33:12 +00:00
Jeremy Allison
b741f6b04c Latest attempt at changeid.
Jeremy.
(This used to be commit 24ee18c77e)
2002-01-11 21:52:46 +00:00
Jeremy Allison
a842a3d458 When re-writing tdb version numbers as little endian int32, we must
change the version number also.
Jeremy.
(This used to be commit 3dec9cf99a)
2002-01-09 05:24:07 +00:00
Jeremy Allison
91536cc901 Fixed all uses of tdb_fetch/store/_int to use explicit int32 little endian
in tdb's. All except winbindd_idmap.... Hmmmmmm.
Jeremy.
(This used to be commit ec71f1732b)
2002-01-09 04:13:30 +00:00
Jeremy Allison
eca00cab66 My previous fix had a bug....
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 9fb780d951)
2002-01-08 23:50:14 +00:00
Jeremy Allison
bbc42672a2 Another attempt at getting changeid correct. Jerry / JF please check !
This fixes a driver init bug.
Jeremy.
(This used to be commit 8e8d718160)
2002-01-08 05:39:27 +00:00
Jeremy Allison
b19ec04f52 Caught one problem where a BOOL fn was returning 3 different values :-).
Roll on defined types :-).
Jeremy.
(This used to be commit ccf07e2184)
2002-01-08 01:22:23 +00:00
Jeremy Allison
4702494dce Added get_called_name() function, which replaces global_myname in printing
code (one less global, hurrah !) - to allow NetBIOS aliasing to be used
with point and print.
Jeremy.
(This used to be commit 10d72f0b01)
2002-01-08 00:46:56 +00:00
Jeremy Allison
43b27771f5 Return called NetBIOS name if present in preference to global_myname.
Should allow print servers to work with NetBIOS aliases.
Needs testing.
Jeremy.
(This used to be commit ee8fd2690a)
2002-01-07 22:58:20 +00:00
Tim Potter
17729f5dc5 Sed error. The status value in the PRINTER_INFO_2 structure isn't a WERROR
but a plain old uint32.
(This used to be commit 690cc12bad)
2002-01-07 06:13:40 +00:00
Jeremy Allison
eca99f5c22 Fixed nasty cast of tdb_delete in traversals.
Jeremy.
(This used to be commit a0cdec3acc)
2002-01-03 22:48:48 +00:00
Jeremy Allison
11b14e8389 Removed extra lp_adduser() call.
Fixed up error returns in get_correct_cversion().
Jeremy.
(This used to be commit 7ce2d1fe37)
2001-12-29 20:29:43 +00:00
Martin Pool
df28dee653 Factor out a broadcast_printer_notify() routine.
(This used to be commit d32598c953)
2001-12-21 00:37:09 +00:00
Tim Potter
7cb202e33c Fixed uninitialised variable warning.
(This used to be commit 5095941dcb)
2001-12-18 05:08:48 +00:00
Gerald Carter
abcd1cad3a ChangeID fixe from APPLIANCE_HEAD
(This used to be commit 096d06a961)
2001-12-14 20:38:04 +00:00
Jeremy Allison
105f8a1a0f Use print_queue_length() by preference if we don't need a queue
as it doesn't do a traversal.
Jeremy.
(This used to be commit 4bf4ee3f14)
2001-12-05 02:11:03 +00:00
Jeremy Allison
5472638730 Improved efficiency of enumerating print queue's under a particular
extreme condition...
Jeremy.
(This used to be commit 425bb0f405)
2001-12-05 00:54:33 +00:00
Martin Pool
e0adf6e27e Writing decimal constants as "02" has been shown to cause cancer in
rats.
(This used to be commit 142d3dad0a)
2001-12-03 02:30:27 +00:00
Tim Potter
6d9adfe73c Renamed sid field in SEC_ACE to trustee to be more in line with MS's
definitions.
(This used to be commit 9712d3f15a)
2001-11-30 01:04:15 +00:00
Tim Potter
abe6aff924 Merge from appliance-head: when creating a default security descriptor
for a printer, save it in ntprinters.tdb instead of recreating it
every time it is required.  This can save at least one winbind lookup
per secdesc creation.  Opening a port monitor and viewing the security
tab in the properties dialog required the security descriptor to be
returned 25 times!
(This used to be commit f85c976acc)
2001-11-26 03:39:16 +00:00
Andrew Tridgell
ad2974cd05 added "net join" command
this completes the first stage of the smbd ADS support
(This used to be commit 058a5aee90)
2001-11-24 14:16:41 +00:00
Gerald Carter
37a84c7bba merge oops fix from 2.2
(This used to be commit 48f2da440f)
2001-11-22 06:23:49 +00:00
Gerald Carter
116740a5df merge from 2.2
(This used to be commit 96b3a65a73)
2001-11-22 05:56:09 +00:00
Jeremy Allison
02eda2e251 Tidyups when I was doing the big merge...
Jeremy.
(This used to be commit 9148bb9eaa)
2001-11-17 03:19:17 +00:00
Andrew Bartlett
60f0627afb This is a farily large patch (3300 lines) and reworks most of the AuthRewrite
code.

In particular this assists tpot in some of his work, becouse it provides the
connection between the authenticaion and the vuid generation.

Major Changes:
	- Fully malloc'ed structures.
	  - Massive rework of the code so that all structures are made and destroyed
	    using malloc and free, rather than hanging around on the stack.
	- SAM_ACCOUNT unix uids and gids are now pointers to the same, to allow them
	   to be declared 'invalid' without the chance that people might get ROOT by
	   default.

	- kill off some of the "DOMAIN\user" lookups.  These can be readded at a more
	  appropriate place (probably domain_client_validate.c) in the future. They
	  don't belong in session setups.

	- Massive introduction of DATA_BLOB structures, particularly for passwords.

	- Use NTLMSSP flags to tell the backend what its getting, rather than magic
	  lenghths.

	- Fix winbind back up again, but tpot is redoing this soon anyway.

	- Abstract much of the work in srv_netlog_nt back into auth helper functions.

This is a LARGE change, and any assistance is testing it is appriciated.

Domain logons are still broken (as far as I can tell) but other functionality
seems
intact.

Needs testing with a wide variety of MS clients.

Andrew Bartlett
(This used to be commit f70fb819b2)
2001-10-31 10:46:25 +00:00
Jeremy Allison
c416ff851b Merge the become_XXX -> change_to_XXX fixes from 2.2.2 to HEAD.
Ensure make_conection() can only be called as root.
Jeremy.
(This used to be commit 8d23a7441b)
2001-10-18 20:15:12 +00:00
Jeremy Allison
ca4c584fb5 Optimisation to send only to correct processid.
Jeremy
(This used to be commit 3807c747a4)
2001-10-16 23:52:14 +00:00
Jean-François Micouleau
3f1d100842 very simple asynchronous "lpq" thread patch
To speed up operations with the lpq command, it's now run in a separate
asynchronous process.

Opening the Printers folder on NT is now fast ;-) I think even faster than
with a ** server

Jeremy, you should look at that patch to include it in 2.2.3

	J.F.
(This used to be commit 8ef9dff307)
2001-10-16 23:16:00 +00:00
Tim Potter
dc1fc3ee8e Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
(This used to be commit 2d0922b0ea)
2001-10-02 04:29:50 +00:00
Jeremy Allison
0f4281b9b4 Added Elrond patch to make se_access_check use NT datastructures, not Samba.
Jeremy.
(This used to be commit bca6419447)
2001-09-26 00:05:03 +00:00
Simo Sorce
091dbaa00b move to SAFE_FREE()
(This used to be commit 09bf442549)
2001-09-17 09:25:57 +00:00
Andrew Bartlett
06ccf1e499 Looks like it missed these. make_connection now no longer takes a 'username'
argument.
(This used to be commit 0e1322227b)
2001-09-15 23:32:19 +00:00
Andrew Tridgell
79139fe8d8 convert more code to use XFILE
(This used to be commit fe6679dffb)
2001-09-10 12:46:42 +00:00
Andrew Tridgell
9a9ac2739b got rid of USE_TDB_MMAP_FLAG as its not needed any more
(This used to be commit c26e0d3f27)
2001-09-06 22:08:19 +00:00
Andrew Tridgell
19fea3242c the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work
(This used to be commit dcd6e735f7)
2001-09-04 07:13:01 +00:00
Andrew Tridgell
fbc1f326f4 more NTSTATUS/WERROR conversion
(This used to be commit ad648c5cd8)
2001-09-03 10:38:13 +00:00
Andrew Tridgell
fd6ea43161 the next step in our error code handling change
- added WERROR for win32 error codes
- added a configure test for immediate structures

still lots to do, so its not enabled by default, but the main
structure is there
(This used to be commit 24f9ab683d)
2001-09-03 08:50:59 +00:00
Andrew Tridgell
95739423d0 updated copyright for Michael Sweet
(This used to be commit 9d53473f30)
2001-09-02 22:39:03 +00:00
Andrew Tridgell
b031af348c converted another bunch of stuff to NTSTATUS
(This used to be commit 1d36250e33)
2001-08-27 19:46:22 +00:00
Andrew Tridgell
e8e98c9ea0 converted smbd to use NTSTATUS by default
major changes include:

- added NSTATUS type
- added automatic mapping between dos and nt error codes
- changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT()
  these calls auto-translate to the client error code system
- got rid of the cached error code and the writebmpx code

We eventually will need to also:
- get rid of BOOL, so we don't lose error info
- replace all ERROR_DOS() calls with ERROR_NT() calls

but that is too much for one night
(This used to be commit 83d9896c1e)
2001-08-27 08:19:43 +00:00
Herb Lewis
717533483b get rid of compiler warnings
(This used to be commit 0768991d04)
2001-08-24 20:32:01 +00:00
Tim Potter
d1f53e4044 Fixed detection of CUPS. We need to check for the presence of the cups
header files as well as libcups.
(This used to be commit 2dbb41a7b8)
2001-08-23 19:06:20 +00:00
Simo Sorce
2e783a4707 this is a big global fix for the ptr = Realloc(ptr, size) bug.
many possible mem leaks, and segfaults fixed.

someone should port this fix to 2.2 also.
(This used to be commit fa8e55b8b4)
2001-08-12 17:30:01 +00:00
Jeremy Allison
4b2016305b Merge in the NT drivers changes from 2.2.
Jeremy.
(This used to be commit a3781ad38f)
2001-08-10 19:38:53 +00:00
Tim Potter
047a7c88d7 Replaced the duplicate DOS constants with appropriate ones from doserr.h to
emphasise the fact that the spoolss pipe returns DOS error codes instead of
32-bit nt status codes.
(This used to be commit 5f5ed41ee8)
2001-08-10 05:41:53 +00:00
Jeremy Allison
fc0fe941d8 Fixed typo in patch.
Jeremy.
(This used to be commit 36e01dcdbd)
2001-08-10 03:17:58 +00:00
Jeremy Allison
4f181227e5 Added fix from Dan Thibadeau @ HP for parsing problem.
Jeremy.
(This used to be commit 635f3a3ee2)
2001-08-09 19:36:12 +00:00
Jeremy Allison
f0ce79331f Merged John's fix.
Jeremy.
(This used to be commit 61141c371a)
2001-08-09 18:20:43 +00:00
Simo Sorce
2f844bf447 Change all realloc() statements to Realloc() (ecxept for tdb.c)
changed some code to exploit the fact that Realloc(NULL, size) == malloc(size)
fixed some possible mem leaks, or seg faults.

thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c)
(This used to be commit 7f33c01688)
2001-08-08 16:54:16 +00:00
Jeremy Allison
a62c6e81fc Fixup error returns in updating driver db version.
Jeremy.
(This used to be commit 5bd39ce233)
2001-07-30 23:12:48 +00:00
Jeremy Allison
996719cce2 Added "use mmap" for HPUX.
Jeremy.
(This used to be commit 840802f106)
2001-07-30 22:21:31 +00:00
Tim Potter
648528196c Held a shoot-out between NT_STATUS_NO_PROBLEMO and NT_STATUS_NOPROBLEMO.
According to the incorruptible judges find and grep, the latter won.

Mmm - procrastination.  (-:
(This used to be commit 2e33940360)
2001-07-25 06:42:05 +00:00
Jeremy Allison
cab11894ec Same fix for resume as for pause.
Jeremy.i
(This used to be commit 9444fc554b)
2001-07-23 20:47:55 +00:00
Jeremy Allison
c0d02ca380 Fix for CUPS pause/restart code.
Jeremy.
(This used to be commit 592ef3d8ea)
2001-07-23 20:40:16 +00:00
Jeremy Allison
6b53da146e Fix for cups compile.
Jeremy.
(This used to be commit e90ad081ad)
2001-07-23 19:50:36 +00:00
Jeremy Allison
e091298907 iFix from "Shahms E. King" <shahms@shahms.com> to get cups user name
right.
Jeremy.
(This used to be commit 34244c2a8d)
2001-07-17 00:39:07 +00:00
Jeremy Allison
a92134c5a4 Fix for incorrect creation of print job names, based on a patch by
Jos M.Rodrguez <josemi@iies.es>
Jeremy.
(This used to be commit 7ebf284ef7)
2001-07-16 23:39:26 +00:00
Jeremy Allison
11837682c7 Fix from Jim Vopni - muliple definitions of "letter".
Jeremy.
(This used to be commit 5aa3b18f69)
2001-07-16 19:36:44 +00:00