ira/wip.git
23 years agoMove towards getting W2k p&p to upload NT4.x drivers. Still doesn't work -
Jeremy Allison [Fri, 15 Sep 2000 00:15:10 +0000 (00:15 +0000)]
Move towards getting W2k p&p to upload NT4.x drivers. Still doesn't work -
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)

23 years agoPlaceholder for some forthcoming documentation
Gerald Carter [Thu, 14 Sep 2000 16:49:50 +0000 (16:49 +0000)]
Placeholder for some forthcoming documentation

jerry
(This used to be commit d4a60f22331b3ead4dd428f3dbe699f56a3a30b3)

23 years agofixed typo
Gerald Carter [Thu, 14 Sep 2000 16:47:49 +0000 (16:47 +0000)]
fixed typo

jerry
(This used to be commit d2949468dccd79eb281769cd0da74e4b37d936b8)

23 years agoAdded a gew more mods by Patrick Powell (lprng guy)
Gerald Carter [Thu, 14 Sep 2000 16:44:44 +0000 (16:44 +0000)]
Added a gew more mods by Patrick Powell (lprng guy)

jerry
(This used to be commit d675a6bd147e974c7970310ba8af9032f8bba1c7)

23 years agoFirst draft of new printing doc describing the SPOOLSS support in the
Gerald Carter [Thu, 14 Sep 2000 16:40:51 +0000 (16:40 +0000)]
First draft of new printing doc describing the SPOOLSS support in the
upcoming 2.2.0 release.

Needs some other eyes to review it.  :-)

jerry
(This used to be commit c9a76a2e10fd14fc1c63184afcda986163912b06)

23 years agoEnsure old DACL and SACL are preserved if the new SD is a 'set' only.
Jeremy Allison [Wed, 13 Sep 2000 22:01:15 +0000 (22:01 +0000)]
Ensure old DACL and SACL are preserved if the new SD is a 'set' only.
Jeremy.
(This used to be commit 29f41d0d95661fbc31ae1d9669fd7fb439169f90)

23 years agoAdded SIGHUP when printer deleted as well as added.
Jeremy Allison [Wed, 13 Sep 2000 18:50:38 +0000 (18:50 +0000)]
Added SIGHUP when printer deleted as well as added.
Jeremy.
(This used to be commit 79c94f37d0434150d84858e67c8677650106d76c)

23 years agodon't show equivalent enum options in swat
Andrew Tridgell [Wed, 13 Sep 2000 07:08:09 +0000 (07:08 +0000)]
don't show equivalent enum options in swat
(This used to be commit 52074960971995580a03647ac5c638043eb8f5e1)

23 years agofirst cut at smbcontrol program. It currently allows syntax like:
Andrew Tridgell [Wed, 13 Sep 2000 07:07:17 +0000 (07:07 +0000)]
first cut at smbcontrol program. It currently allows syntax like:

  smbcontrol nmbd debug 7
  smbcontrol smbd debug 9
  smbcontrol 3278 debug 1
  smbcontrol nmbd force-election
(This used to be commit 5f91c24636f5d82486f22c10bc55e060f9c518bf)

23 years agoWhen creating a print job entry for the printing backend, use the Windows
Tim Potter [Wed, 13 Sep 2000 04:42:06 +0000 (04:42 +0000)]
When creating a print job entry for the printing backend, use the Windows
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)

23 years agoAdded time check test before allowing print job.
Jeremy Allison [Wed, 13 Sep 2000 02:24:35 +0000 (02:24 +0000)]
Added time check test before allowing print job.
Jeremy.
(This used to be commit 0249de4cd91d72efb344e9fb05e2be2cb3f03945)

23 years agoAdded missing break statement for manage documents check in
Tim Potter [Wed, 13 Sep 2000 01:18:01 +0000 (01:18 +0000)]
Added missing break statement for manage documents check in
print_access_check() function.
(This used to be commit 318ead783c842f2a557207690afd522b3d28e077)

23 years agoUpdated manual pages to point at http://lists.samba.org instead of old
Tim Potter [Tue, 12 Sep 2000 23:00:01 +0000 (23:00 +0000)]
Updated manual pages to point at lists.samba.org instead of old
listproc address.
(This used to be commit 0d7f81633157d6028a47488020862fe24a648546)

23 years agoFix for enumjobs infor level 2 which caused smbd to coredump.
Jeremy Allison [Tue, 12 Sep 2000 22:33:41 +0000 (22:33 +0000)]
Fix for enumjobs infor level 2 which caused smbd to coredump.
Uninitialized element in struct.
Jeremy.
(This used to be commit 9e1fbb0c2f1d2ad0c907f1e902e44ea7af214b57)

23 years agoFixed error return when printer is PAUSED - should be returning "Pause".
Jeremy Allison [Tue, 12 Sep 2000 21:45:42 +0000 (21:45 +0000)]
Fixed error return when printer is PAUSED - should be returning "Pause".
Jeremy.
(This used to be commit 41d03a118c9981fc2159f37cd5ed4684e1d36037)

23 years agoWith John Reilly help tracking it down - fixed a *nasty* bug when
Jeremy Allison [Tue, 12 Sep 2000 19:51:38 +0000 (19:51 +0000)]
With John Reilly help tracking it down - fixed a *nasty* bug when
authorising logins. If a user connected to a share as guest, then
the snum was getting flagged as "force guest", meaning that all
subsequent connections to it, even under a different vuid, would
be bounced to guest.
This explains several very hard to reproduce access denied bugs,
and as the NT client also has bugs in that it will sometimes
erroneously use guest instead of the correct vuid on an IPC$
connection lead to a *very* hard problem to find.
This fix should be propagated into all branches (TNG/Applience
take note) and I'll also make a separate patch availalble on the
samba-technical list.
Jeremy.
(This used to be commit 0264fdafe909cf9e995df3ae7b64bedbe0b4e8a1)

23 years agospoolgetprinterdriver now returns "Windows NT x86" and "Windows 4.0"
Gerald Carter [Tue, 12 Sep 2000 16:03:16 +0000 (16:03 +0000)]
spoolgetprinterdriver now returns "Windows NT x86" and "Windows 4.0"
driver information.

Will merge into TNG.

jerry
(This used to be commit ae7dd77c2495d5e17f6e8da94afbe8cab3e773bb)

23 years agofixed a race in the pipe() setup in sys_select()
Andrew Tridgell [Tue, 12 Sep 2000 07:24:06 +0000 (07:24 +0000)]
fixed a race in the pipe() setup in sys_select()
(This used to be commit bb0f769272d8a8bd527053746b468bca797e1663)

23 years ago- fixed some memory leaks in the messages code
Andrew Tridgell [Tue, 12 Sep 2000 06:57:25 +0000 (06:57 +0000)]
- fixed some memory leaks in the messages code

- added a MSG_PING message for performance testing.
(This used to be commit e779f834dbb875669c3aa0a35b324aa13f0c8c36)

23 years ago- changed the msg_type to be an int instead of an enum so that it is
Andrew Tridgell [Tue, 12 Sep 2000 06:13:25 +0000 (06:13 +0000)]
- changed the msg_type to be an int instead of an enum so that it is
easier to add new message types to messages.h without breaking old
binaries

- added a MSG_FORCE_ELECTION message to force nmbd to hold an election
(This used to be commit f1c49ca7ce56bc39259041a71479e84ebf53eeca)

23 years agowe should not lowercase the username we receive in
Andrew Tridgell [Tue, 12 Sep 2000 04:50:36 +0000 (04:50 +0000)]
we should not lowercase the username we receive in
reply_sesssetup_and_X(). The getpwnam() wrapper handles the case
munging operations later.

this fixes a problem with mixed case usernames.
(This used to be commit 2ebfdd21b3123d7daefeeed4dae6e8bc3a7a7653)

23 years agomuch nicer message interface. We now register dispatch functions,
Andrew Tridgell [Tue, 12 Sep 2000 00:47:11 +0000 (00:47 +0000)]
much nicer message interface. We now register dispatch functions,
allowing new bits of code or vfs modules to register functions without
impacting on the messaging code itself.

Also note that multiple registrations for the same message type are
possible allowing the same message to be delivered to multiple parts
of the code (possibly useful for reload messages).
(This used to be commit c3350c77f52cade48d2945574e09cb630af85b92)

23 years agoFixed memory leaks found in enumprinterdrivers code.
Jeremy Allison [Mon, 11 Sep 2000 23:43:44 +0000 (23:43 +0000)]
Fixed memory leaks found in enumprinterdrivers code.
Jeremy.
(This used to be commit e08b521559a824da09b0b73a04e462c573c42b06)

23 years agoFix for malloc of zero bytes found by insure.
Jeremy Allison [Mon, 11 Sep 2000 23:21:16 +0000 (23:21 +0000)]
Fix for malloc of zero bytes found by insure.
Jeremy.
(This used to be commit 2916790859acc56e582056774b02d4a33cedeaa4)

23 years agodebug messages now work for nmbd
Andrew Tridgell [Mon, 11 Sep 2000 07:33:44 +0000 (07:33 +0000)]
debug messages now work for nmbd
(This used to be commit 6a503f95b10f6661b089f30f2b5ffebead32685c)

23 years agoa simple test program I use to test the debug message system
Andrew Tridgell [Mon, 11 Sep 2000 07:03:10 +0000 (07:03 +0000)]
a simple test program I use to test the debug message system
(This used to be commit db1ec05f89071cd1ae4b190dda843b38e2d97cef)

23 years agothe first cut of the internal messaging system.
Andrew Tridgell [Mon, 11 Sep 2000 07:02:43 +0000 (07:02 +0000)]
the first cut of the internal messaging system.

The motivation for this system is to replace the UDP message for
oplocks, but this commit only does the "set debug level" message.
(This used to be commit 2a34ee95f3929cff131db6c5a2b4820194c05b2d)

23 years agoImplemented DELETEPRINTERDATA (tested with Gerald's Win32 progs).
Jeremy Allison [Sat, 9 Sep 2000 00:19:35 +0000 (00:19 +0000)]
Implemented DELETEPRINTERDATA (tested with Gerald's Win32 progs).
Jeremy.
(This used to be commit fb48efaf830626f6ef05b88f5f8a74b932ceb257)

23 years agoFixed up get_a_printer_driver_3 so it looks in the tdb using the correct
Jeremy Allison [Fri, 8 Sep 2000 21:24:45 +0000 (21:24 +0000)]
Fixed up get_a_printer_driver_3 so it looks in the tdb using the correct
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)

23 years agoFixed typo where docname was being checked for datatype - was causing
Jeremy Allison [Fri, 8 Sep 2000 02:20:48 +0000 (02:20 +0000)]
Fixed typo where docname was being checked for datatype - was causing
STARTDOCPRINTER call to fail. I *love* Gerald's test code :-).
Jeremy.
(This used to be commit 43192370f31c7cc71d1f72449a067573adad3ebc)

23 years agoWin32 API is explicit that EnumPrinterData returns ERROR_MORE_DATA not
Jeremy Allison [Fri, 8 Sep 2000 00:28:07 +0000 (00:28 +0000)]
Win32 API is explicit that EnumPrinterData returns ERROR_MORE_DATA not
ERROR_INSUFICIENT_BUFFER when working out what space is needed. This fix
gives us the same return that WinNT does.
Jeremy.
(This used to be commit a87f6277b1faa1ea492f31add4ce33556bdf3695)

23 years agoFixed the printerdata code to return NO_MORE_ITEMS if a size is requested
Jeremy Allison [Thu, 7 Sep 2000 20:56:24 +0000 (20:56 +0000)]
Fixed the printerdata code to return NO_MORE_ITEMS if a size is requested
and the parameter index doesn't exist. I think this code can be simplified
considerably, but JF needs to check to be sure.
Jeremy.
(This used to be commit 4d792e6bcb7bef640c2c4e3054ed8839d8fc86f4)

23 years agoAdded code to return NO_MORE_ENTRIES when trying to determine
Jeremy Allison [Thu, 7 Sep 2000 19:12:59 +0000 (19:12 +0000)]
Added code to return NO_MORE_ENTRIES when trying to determine
size using "NT mega hack". I think this is the correct thing to
do but JF should also examine the.
Jeremy.
(This used to be commit 29ba3a2cdf7f6fbcf0be41b75d76c04007cd4651)

23 years agoHopefully this should fix the primary group permission problem.
Tim Potter [Thu, 7 Sep 2000 08:43:05 +0000 (08:43 +0000)]
Hopefully this should fix the primary group permission problem.
(This used to be commit 2f33ec41ac1d3243340455b6c3a6cea22d267f14)

23 years agoTemporary fix to convert from level6 (Win2k) to level 3 (NT4)
Jeremy Allison [Wed, 6 Sep 2000 23:20:35 +0000 (23:20 +0000)]
Temporary fix to convert from level6 (Win2k) to level 3 (NT4)
for driver download files.
Jeremy.
(This used to be commit 1c9ac94c941aac5f6d309a094e4f741d523dbfb0)

23 years agoFix from John Reilly for double free of printer struct.
Jeremy Allison [Wed, 6 Sep 2000 01:55:36 +0000 (01:55 +0000)]
Fix from John Reilly for double free of printer struct.
Jeremy.
(This used to be commit c15b7e41e170ced4e4de2e08f6fba860f51e66ac)

23 years agoFix for the SID history problem when using a Win2k domain controller
Jeremy Allison [Wed, 6 Sep 2000 01:06:39 +0000 (01:06 +0000)]
Fix for the SID history problem when using a Win2k domain controller
with security=domain. Also fixed to dynamically allocate the SIDs and GIDs.
Jeremy.
(This used to be commit 2b1f66eb82f05fe0b85ac5b4916e32847b8de675)

23 years agoImplemented GETFORM tested and working using Gerald's Win32 test progs....
Jeremy Allison [Tue, 5 Sep 2000 20:56:09 +0000 (20:56 +0000)]
Implemented GETFORM tested and working using Gerald's Win32 test progs....
Jeremy.
(This used to be commit 55ed0a9b0c91159c0fc4282c2171d9ced74a302a)

23 years agoChanges from APPLIANCE_HEAD (per Tim Potter):
David O'Neill [Fri, 1 Sep 2000 18:49:26 +0000 (18:49 +0000)]
Changes from APPLIANCE_HEAD (per Tim Potter):
- make proto
- addition of function to convert from errno values to NT status codes
  (source/lib/error.c)
- purge queue done without full access permission will purge only the
  jobs owned by that user, rather than failing.
- unlock job database tdb before sending job to printer
- in print_job_start(), ensure that we don't pick a jobid with an existing
  temporary file that may be owned by another user, as it causes silent
  failures.
- fixes for printer permission checking for NT5 clients
  (source/include/rpc_spoolss.h, source/printing/nt_printing.c,
   source/printing/printing.c, source/rpc_server/srv_spoolss_nt.c)
- change from uint8 to 'enum SID_NAME_USE' (source/rpc_server/srv_lsa.c)
- fixed memory leaks for win95 driver download process
  (source/smbd/lanman.c)
- properly free prs_structs and dacl in testsuite/printing/psec.c
(This used to be commit 74af3e2caec7197e5d1ca389e2f78054a4197502)

23 years agoFix from John Reilly @ HP for my typo with the parameters being reversed. Ooops.
Jeremy Allison [Fri, 1 Sep 2000 17:13:44 +0000 (17:13 +0000)]
Fix from John Reilly @ HP for my typo with the parameters being reversed. Ooops.
Jeremy.
(This used to be commit 8317d70a35086c5539e67d60cbcf937b6ce0932c)

23 years ago-U% should be an anonymous connection. Fixed bug where
Gerald Carter [Fri, 1 Sep 2000 06:25:15 +0000 (06:25 +0000)]
-U% should be an anonymous connection.  Fixed bug where
the password was being set to "" instead of NULL.

..and yes Elrond, I'll merge this into TNG.

P
jerry
(This used to be commit cc611ecc674832f7e7390b5e7ad6648c9d622e9e)

23 years agoFix for swat to return correct MIME type for text files. From "Ron
Tim Potter [Fri, 1 Sep 2000 02:06:20 +0000 (02:06 +0000)]
Fix for swat to return correct MIME type for text files.  From "Ron
Alexander" <rcalex@home.com>
(This used to be commit 061e5e50523913a26bc86bd816c4e26a37a832c7)

23 years agoImplemented DELETEFORM tested using Gerald's Win32 test code :-).
Jeremy Allison [Thu, 31 Aug 2000 19:04:51 +0000 (19:04 +0000)]
Implemented DELETEFORM tested using Gerald's Win32 test code :-).
Jeremy.
(This used to be commit 596c21a2af0309ce43a5e52a343a671036d05ebf)

23 years agomake sure a couple of variables are initialised
Andrew Tridgell [Thu, 31 Aug 2000 07:11:59 +0000 (07:11 +0000)]
make sure a couple of variables are initialised
(This used to be commit 155c7c37398f5f9457ea249ded74f425b90ac9a0)

23 years agofixed "admin users" option with new security code
Andrew Tridgell [Thu, 31 Aug 2000 07:11:45 +0000 (07:11 +0000)]
fixed "admin users" option with new security code
(This used to be commit b69c5de6bad9fad3aed1280e7d12fbfed276a16f)

23 years agoRemoved compiler warning.
Tim Potter [Thu, 31 Aug 2000 04:27:38 +0000 (04:27 +0000)]
Removed compiler warning.
(This used to be commit 2d23607bb0fe3d93809b3a194f9976b01ece8768)

23 years agoFixed overrun write error when using debuglevel > 50.
Jeremy Allison [Wed, 30 Aug 2000 22:54:54 +0000 (22:54 +0000)]
Fixed overrun write error when using debuglevel > 50.
Jeremy.
(This used to be commit 3d9b163655f684f2b98aa72f976379cee869db05)

23 years agoFixed error returns for moving printer driver files around so generic
Jeremy Allison [Wed, 30 Aug 2000 21:09:21 +0000 (21:09 +0000)]
Fixed error returns for moving printer driver files around so generic
"Access denied" isn't always returned. More fixes found using Gerald's
wonderful Win32 test progs :-).
Jeremy.
(This used to be commit 67b9d40e3df19523714430cb4457717575f2a61e)

23 years agoAdded vfs_unlink call to ensure vfs is used on unlink from client.
Jeremy Allison [Wed, 30 Aug 2000 18:33:56 +0000 (18:33 +0000)]
Added vfs_unlink call to ensure vfs is used on unlink from client.
Jeremy.
(This used to be commit 38fc56c8434c427335cf264c4b27420c5ad47566)

23 years agoFix for bind interfaces only sometimes picking the wrong IP address
Jeremy Allison [Wed, 30 Aug 2000 17:34:35 +0000 (17:34 +0000)]
Fix for bind interfaces only sometimes picking the wrong IP address
for a name query. From Steve Langasek <vorlon@netexpress.net>.
Jeremy.
(This used to be commit 9890740121ae7bd7a0196bbf946c6f8c82aa7f6e)

23 years agoImplemented AbortPrinter() from Gerald's Win32 test code. Just purge all
Jeremy Allison [Wed, 30 Aug 2000 00:45:59 +0000 (00:45 +0000)]
Implemented AbortPrinter() from Gerald's Win32 test code. Just purge all
possible printjobs from that printer (I think this is correct).
Added error code returns for print_queue_XXX() functions.
Jeremy.
(This used to be commit 6d081a9017f87f59b7189ba507e211db01c40af5)

23 years agomissed removing the static declaration of strwicmp()
Gerald Carter [Tue, 29 Aug 2000 16:47:20 +0000 (16:47 +0000)]
missed removing the static declaration of strwicmp()

jerry
(This used to be commit d09d8a3f4b32c1b4467dff5f2284e382163b7f09)

23 years agomake proto
Gerald Carter [Tue, 29 Aug 2000 14:57:37 +0000 (14:57 +0000)]
make proto
(This used to be commit d59623dd92aac7de73d27dd6c64df57bfd0d4010)

23 years agoadded -P (for no prompt) and -A <authfile> options
Gerald Carter [Tue, 29 Aug 2000 14:43:42 +0000 (14:43 +0000)]
added -P (for no prompt) and -A <authfile> options

jerry
(This used to be commit 2d95c38f7e65a0379cbaadd57b8eb41d830b5a6b)

23 years agoadded a #define for SPOOLSSGETPRINTERDATAEX. Although we do not
Gerald Carter [Tue, 29 Aug 2000 14:42:10 +0000 (14:42 +0000)]
added a #define for SPOOLSSGETPRINTERDATAEX.  Although we do not
support the RPC yte (win2k specific), I added it for documentation
purposes.

jerry
(This used to be commit 41bf13341127b1c58105ca9a59fd686c15746164)

23 years agofixed previous bug spotted by Elrond in get_printerdrivernumber().
Gerald Carter [Tue, 29 Aug 2000 14:38:38 +0000 (14:38 +0000)]
fixed previous bug spotted by Elrond in get_printerdrivernumber().
Thought I had already committed this.

jerry
(This used to be commit 2ceb704c3d06a92b97ba67ac82c007a7ba084b75)

23 years agoadded -A <authfile> option to smbclient for the reading of username /
Gerald Carter [Tue, 29 Aug 2000 14:35:31 +0000 (14:35 +0000)]
added -A <authfile> option to smbclient for the reading of username /
password credentials from a file.

--jerry
(This used to be commit e2915009031d63f43cc11c36dac2dfe6c780b5f0)

23 years agoneeded to use strwicmp() in smbclient code, so I moved it to util_str.c
Gerald Carter [Tue, 29 Aug 2000 14:33:39 +0000 (14:33 +0000)]
needed to use strwicmp() in smbclient code, so I moved it to util_str.c
and made it non-static

--jerry
(This used to be commit dfdca21bd90b9c83f195d580ec9d774f1be8f9cb)

23 years agomake rpcclent by default.
Gerald Carter [Tue, 29 Aug 2000 14:32:23 +0000 (14:32 +0000)]
make rpcclent by default.

--jerry
(This used to be commit e89117f418c9c1a1b4f2e9d708030369d801a01c)

23 years agoadded the -A <authfile> option for allowing the reading of user
Gerald Carter [Tue, 29 Aug 2000 14:31:27 +0000 (14:31 +0000)]
added the -A <authfile> option for allowing the reading of user
name and password credentials from a file.  Designed for use
when needed to passwd credentials between scripts

--jerry
(This used to be commit d8dde169e729ad5229d2bda8c9f306edb3c1239b)

23 years agofirst draft at rpcclient man page for HEAD branch. Taken heavily
Gerald Carter [Tue, 29 Aug 2000 14:29:53 +0000 (14:29 +0000)]
first draft at rpcclient man page for HEAD branch.  Taken heavily
from the man page in TNG.  Updated for newer spoolss commands.

jerry
(This used to be commit 0202f7e249a3988f94ab38706e6f6224148868bb)

23 years agoThis doesn't compile but is a placeholder for moving the UNIX
Jeremy Allison [Tue, 29 Aug 2000 00:29:15 +0000 (00:29 +0000)]
This doesn't compile but is a placeholder for moving the UNIX
acl code over to POSIX acls.
Jeremy.
(This used to be commit a2829febe12513d26534c4977c2f41f480f4fa0e)

23 years agosmbd/password.c: Fixed typo in Tim's new code that caused insure overrun error.
Jeremy Allison [Mon, 28 Aug 2000 20:45:00 +0000 (20:45 +0000)]
smbd/password.c: Fixed typo in Tim's new code that caused insure overrun error.
smbd/reply.c: Fixed lowercasing UNIX character set problem.
Jeremy.
(This used to be commit 2b6e3ed7a6447d40d9dd7e9b5c286b1aabe4730d)

23 years agoadded a little description of useage and output format since this gives
Herb Lewis [Mon, 28 Aug 2000 18:58:46 +0000 (18:58 +0000)]
added a little description of useage and output format since this gives
more info than just what parameters are not supported by SWAT.
(This used to be commit 7db533cb47a0d9bc88219dbe48e96ceed45a65a1)

23 years agofixed typos spotted by Ron Alexander <rcalex@home.com>
Gerald Carter [Mon, 28 Aug 2000 13:41:46 +0000 (13:41 +0000)]
fixed typos spotted by Ron Alexander <rcalex@home.com>

--jerry
(This used to be commit 9fbcede92f558fdcda257338798613cffa4e2cb6)

23 years agoscript written by herb for reporting which smb.conf parameters
Gerald Carter [Mon, 28 Aug 2000 13:35:10 +0000 (13:35 +0000)]
script written by herb for reporting which smb.conf parameters
are in loarparm.c but not supported by SWAT.  I just thought it looked fun.
:-)

--jerry
(This used to be commit eb20a2c6f478688b82ce8346fea618aebbfc9295)

23 years agoMerge bug - still getting used to dirdiff.
Tim Potter [Mon, 28 Aug 2000 07:25:18 +0000 (07:25 +0000)]
Merge bug - still getting used to dirdiff.
(This used to be commit cb717b4a2bb55eb2ff008e59203ebfeac6c5ab9f)

23 years agoOops - missed a file.
Tim Potter [Mon, 28 Aug 2000 06:50:45 +0000 (06:50 +0000)]
Oops - missed a file.
(This used to be commit 5aed84b74981a4f4fcc4d466ef03178eff22ba85)

23 years agoMerge from appliance branch.
Tim Potter [Mon, 28 Aug 2000 06:46:53 +0000 (06:46 +0000)]
Merge from appliance branch.
(This used to be commit 567b0095b1b8393b3b1e32533aa2860ab3dbfa47)

23 years agoyipee!
Andrew Tridgell [Mon, 28 Aug 2000 04:42:31 +0000 (04:42 +0000)]
yipee!

The spoolss AddJob function has an [in,out] buffer not an [in] buffer
(despite the comment in the code to the contrary). Also, we must fail
this function - not just blindly reply "no problem" as AddJob should
always fail on non-local printers.

This fixes a bug where the "print test page" failed about half the
time. I suspect it will also fix a bunch of other intermittent spoolss
bugs where the client (incorrectly) tries to use the AddJob printing
interface.
(This used to be commit 14e534a8907c34b53e00a63756efd71903ff9432)

23 years agomade reopen_logs() always re-open logs, not try and be smart about not
Andrew Tridgell [Mon, 28 Aug 2000 03:17:22 +0000 (03:17 +0000)]
made reopen_logs() always re-open logs, not try and be smart about not
re-opening in some circumstances. This fixes a problem where a HUP
does not re-open logs and leaves the log open on a unlinked file.
(This used to be commit f99f028c77482e591741df2a3da7f036f7409a68)

23 years agoarrgh.
Andrew Tridgell [Mon, 28 Aug 2000 02:06:25 +0000 (02:06 +0000)]
arrgh.

whoever added "auto" parameters in loadparam only supported "True", "False"
and "Auto", and did not support "Yes" and "No" like booleans. This
means anyone using "preferred master = yes" didn't get what they
expected!
(This used to be commit 311a4dfb9a9a39a54dcb47d83e1604ad7461dce4)

23 years agovfs write data fix. Fix for name matching in addtosmbpass
Jeremy Allison [Fri, 25 Aug 2000 20:44:33 +0000 (20:44 +0000)]
vfs write data fix. Fix for name matching in addtosmbpass
Jeremy.
(This used to be commit 85738b7ee1ea6d88999d6aedc51a2daf545cb8b8)

23 years agoReplaced "\\MAILSLOT\\NET\\NETLOGON" with NET_LOGON_MAILSLOT constant.
Tim Potter [Fri, 25 Aug 2000 04:18:50 +0000 (04:18 +0000)]
Replaced "\\MAILSLOT\\NET\\NETLOGON" with NET_LOGON_MAILSLOT constant.
(This used to be commit 5764e84c0e01fa4d6ecba410542f6f5c63b9eae6)

23 years ago- fixed the %U macro so that the old (and documented) semantics work
Andrew Tridgell [Fri, 25 Aug 2000 03:58:02 +0000 (03:58 +0000)]
- fixed the %U macro so that the old (and documented) semantics work
again. This got broken with one of the substitute.c updates a couple
of months ago.

- also fixed %u to return the username from the current_user structure
  when called via a method that does not have direct access to the
  username. I cache the uidtoname() result to prevent thrashing nss.
(This used to be commit 2520a0eff9c5decbec79aababe9910db3535890a)

23 years agoUpdated file with version in TNG.
Tim Potter [Fri, 25 Aug 2000 00:55:27 +0000 (00:55 +0000)]
Updated file with version in TNG.
(This used to be commit 156e17dea48962bca98a3f7d1e876eb6047ebc8a)

23 years agoModified to use sid_to_uid and sid_to_gid. Now ready for POSIX ACL
Jeremy Allison [Thu, 24 Aug 2000 19:48:31 +0000 (19:48 +0000)]
Modified to use sid_to_uid and sid_to_gid. Now ready for POSIX ACL
code....
Jeremy.
(This used to be commit 28586c1dee18d99e0e0999ab1a945a33ce33c371)

23 years agoTidied up some error returns from printing calls. Still need to map UNIX
Jeremy Allison [Wed, 23 Aug 2000 23:05:49 +0000 (23:05 +0000)]
Tidied up some error returns from printing calls. Still need to map UNIX
errors to NT error for print job failure returns. Patch from John Reilly at HP.
Jeremy.
(This used to be commit 3514b5bb8fffd78e3647425d93b74e2e6291bafc)

23 years agoDocumentation on NT_USER_TOKEN. Requested by Sander.
Jeremy Allison [Wed, 23 Aug 2000 17:38:52 +0000 (17:38 +0000)]
Documentation on NT_USER_TOKEN. Requested by Sander.
Jeremy.
(This used to be commit e203324d4a3b9aac99ed0b22cbd8c373461919dd)

23 years agoAdded code to do SID to uid/gid conversion. Needed for ACL support.
Jeremy Allison [Wed, 23 Aug 2000 00:45:40 +0000 (00:45 +0000)]
Added code to do SID to uid/gid conversion. Needed for ACL support.
Jeremy.
(This used to be commit 81c5380f91839b6416c8a42739dadf00e7388528)

23 years agoPatch from John Reilly <jreilly@hp.com> for not processing duplicate files
Tim Potter [Tue, 22 Aug 2000 06:28:33 +0000 (06:28 +0000)]
Patch from John Reilly <jreilly@hp.com> for not processing duplicate files
when moving printer driver to download area.
(This used to be commit 6e0c9079c385a4f0e61d9f1b1e0351bc4dbc3151)

23 years agoFix for safe_free freeing static strings. From Robert August Vincent, II.
Jeremy Allison [Mon, 21 Aug 2000 19:30:19 +0000 (19:30 +0000)]
Fix for safe_free freeing static strings. From Robert August Vincent, II.
Jeremy.
(This used to be commit bd844fcd3023ab956eb7ab369475955a88bcca14)

23 years agooops. must return "" string and length zero when strlen(filebuf) == 0
Luke Leighton [Fri, 18 Aug 2000 06:27:24 +0000 (06:27 +0000)]
oops.  must return "" string and length zero when strlen(filebuf) == 0
(This used to be commit d3bc7cca99e47ce89035a03022d7c3ec69e01636)

23 years agofixed an off by one error where I was tromping on memory
Gerald Carter [Fri, 18 Aug 2000 06:03:13 +0000 (06:03 +0000)]
fixed an off by one error where I was tromping on memory
when initializing a driver_info_3 struct.  See spoolss_addprinterdriver()

jerry
(This used to be commit 4fad1fc28a0396443e4723d2065860feb283a785)

23 years agofixed initialization errors (again!) I must have forgot to
Gerald Carter [Fri, 18 Aug 2000 05:57:09 +0000 (05:57 +0000)]
fixed initialization errors (again!)  I must have forgot to
check these in before.

jerry
(This used to be commit e682d6a599934e5460abe0d30cb2465fa80c7937)

23 years agogetfileline() - line with length of zero -> filebuf[strlen(filebuf)-1]
Luke Leighton [Fri, 18 Aug 2000 05:56:19 +0000 (05:56 +0000)]
getfileline() - line with length of zero -> filebuf[strlen(filebuf)-1]
is NOT ok.
(This used to be commit 24e0c8ef70dc59bfaaa113c3d44befbccbcba15f)

23 years agochanging some debug message levels
Gerald Carter [Fri, 18 Aug 2000 05:55:37 +0000 (05:55 +0000)]
changing some debug message levels

j-
(This used to be commit facef51be4e3f3be75613f39c8dfedfa7410552c)

23 years agoFix for Win9x driver downloads when information is
Gerald Carter [Thu, 17 Aug 2000 20:05:05 +0000 (20:05 +0000)]
Fix for Win9x driver downloads when information is
stored in the TDB.  See the message I posted about
this on samba-technical

* If the admin does not desire the new NT print driver
support, nothing needs to be done.  All existing
parameters work the same.

* If the admin wants to take advantage of NT printer
driver support but does not want to migrate the 9x drivers
to the new setup, the leave the existing printers.def
file.  When smbd attempts to locate a 9x driver for the
printer in the TDB and fails it will drop down to
using the printers.def (and all associated parameters).
The make_printerdef tool will also remain for backwards
compatibility but will be moved to the "this tool is the
old way of doing it" pile.

* If the admin installs a 9x driver for a printer on
a Samba host (in the printing TDB), this information will
take precedence and the three old printing parameters
will be ignored (including print driver location).

* If an admin wants to migrate the printers.def file into
the new setup, I can write a script to do this using
rpcclient.  The main problem is the driver namespace
(we need the NT driver name first in order to
be consistent).

jerry
(This used to be commit ac049f8bf348810dc068382fdbc6635a2015d36a)

23 years agoadded comment for my own memory purposes
Gerald Carter [Thu, 17 Aug 2000 20:03:53 +0000 (20:03 +0000)]
added comment for my own memory purposes

jerry
(This used to be commit b64ddbd1aaba8811641e502e96f3bbef01171f52)

23 years agohack for unmarshalling unistr's on machines with BIG_ENDIAN arch
Gerald Carter [Wed, 16 Aug 2000 03:44:04 +0000 (03:44 +0000)]
hack for unmarshalling unistr's on machines with BIG_ENDIAN arch
I think we have a lot more of these bugs lurking (i'm fairly
confident of it).

jerry
(This used to be commit 3b14487c7e5218ff3e0ff3118ca1afd706e05247)

23 years ago- fixed memcpy bug in copy_unistr2()
Gerald Carter [Wed, 16 Aug 2000 03:41:02 +0000 (03:41 +0000)]
- fixed memcpy bug in copy_unistr2()
- init_unistr2_from_unistr() does not NULL terminate
  the buffer

--jerry
(This used to be commit 65ee5f9b6ed3c4ad33fefd3c879f2649496fd3f3)

23 years agofixed unitialized struct bug in enum_users (whatever it is called)
Gerald Carter [Wed, 16 Aug 2000 03:38:52 +0000 (03:38 +0000)]
fixed unitialized struct bug in enum_users (whatever it is called)

jerry
(This used to be commit a606131508592d72f3fd8a0dd63073e9c559062f)

23 years agofixed typo.
Gerald Carter [Wed, 16 Aug 2000 03:34:58 +0000 (03:34 +0000)]
fixed typo.

jerry
(This used to be commit f00a330b3e7900bc325802b2a252a392a16a8b2a)

23 years agofixed error in [public] spotted by Ron Alexander <rcalex@home.com>
Gerald Carter [Tue, 15 Aug 2000 23:36:05 +0000 (23:36 +0000)]
fixed error in [public] spotted by Ron Alexander <rcalex@home.com>
changed to read only = yes

jerry
(This used to be commit e17753c532ab6d5ae628c6e6f6d5b810638cb314)

23 years agoMerge of uninitialised variable fix from APPLIANCE_HEAD.
Tim Potter [Tue, 15 Aug 2000 21:09:54 +0000 (21:09 +0000)]
Merge ... uninitialised variable fix from APPLIANCE_HEAD.
(This used to be commit 20a7fefee8c85f02f6a0e2a02c0df04a8b22b7cb)

23 years agoTidied up extra ()'s.
Jeremy Allison [Tue, 15 Aug 2000 02:33:27 +0000 (02:33 +0000)]
Tidied up extra ()'s.
Jeremy
(This used to be commit f94f37dcab2bc2b68e2b6b4ca440ad53a60e8117)

23 years agoReverted the change Luke made. Removed IS_BITS_SET_XX macros.
Jeremy Allison [Mon, 14 Aug 2000 23:48:07 +0000 (23:48 +0000)]
Reverted the change Luke made. Removed IS_BITS_SET_XX macros.
Do not re-add them. These macros are unsafe as they are not understood.
Change all TNG code using them to correct '&' and '|' please.
IS_BITS_SET_ALL was being used in cmd_interp.c when IS_BITS_SET_SOME
should have been used.
Jeremy.
(This used to be commit be4e5eeb4f808c1d8ac4030e8886a83a37914c57)

23 years agoMerge.
Tim Potter [Mon, 14 Aug 2000 21:27:54 +0000 (21:27 +0000)]
Merge.
(This used to be commit 604f6a34effb8aeed7701345a4219749a6a97892)

23 years agofixed a few bugs in new_smb_io_relarraystr().
Gerald Carter [Mon, 14 Aug 2000 21:18:02 +0000 (21:18 +0000)]
fixed a few bugs in new_smb_io_relarraystr().
Marshalling code path now uses spoolss_smb_io_unistr()
also caught a NULL pointer case.

i'll update TNG later.
(This used to be commit bd4c83eb40a14baf447ac88886d4eafe7b9a309f)

23 years agoNT printer permissions test program.
Tim Potter [Mon, 14 Aug 2000 18:39:51 +0000 (18:39 +0000)]
NT printer permissions test program.
(This used to be commit 9af82423d2e5c6f873a906097a56c8ac6c5f8297)