1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

4284 Commits

Author SHA1 Message Date
Andrew Tridgell
f0ce4f7ae3 - 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 f1c49ca7ce)
2000-09-12 06:13:25 +00:00
Andrew Tridgell
a19836ae52 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 2ebfdd21b3)
2000-09-12 04:50:36 +00:00
Andrew Tridgell
06eeb3c458 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 c3350c77f5)
2000-09-12 00:47:11 +00:00
Jeremy Allison
d836024b28 Fixed memory leaks found in enumprinterdrivers code.
Jeremy.
(This used to be commit e08b521559)
2000-09-11 23:43:44 +00:00
Jeremy Allison
692fe0cabf Fix for malloc of zero bytes found by insure.
Jeremy.
(This used to be commit 2916790859)
2000-09-11 23:21:16 +00:00
Andrew Tridgell
0b2e454703 debug messages now work for nmbd
(This used to be commit 6a503f95b1)
2000-09-11 07:33:44 +00:00
Andrew Tridgell
fe47e8efe2 a simple test program I use to test the debug message system
(This used to be commit db1ec05f89)
2000-09-11 07:03:10 +00:00
Andrew Tridgell
3689e4ffc1 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 2a34ee95f3)
2000-09-11 07:02:43 +00:00
Jeremy Allison
e0f9de0c49 Implemented DELETEPRINTERDATA (tested with Gerald's Win32 progs).
Jeremy.
(This used to be commit fb48efaf83)
2000-09-09 00:19:35 +00:00
Jeremy Allison
588d802877 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 54cab7dd3b)
2000-09-08 21:24:45 +00:00
Jeremy Allison
912ecf7fb9 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 43192370f3)
2000-09-08 02:20:48 +00:00
Jeremy Allison
f4ae5a6e38 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 a87f6277b1)
2000-09-08 00:28:07 +00:00
Jeremy Allison
8808c4e6c8 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 4d792e6bcb)
2000-09-07 20:56:24 +00:00
Jeremy Allison
6ef7bf0eac 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 29ba3a2cdf)
2000-09-07 19:12:59 +00:00
Tim Potter
45d30f72ff Hopefully this should fix the primary group permission problem.
(This used to be commit 2f33ec41ac)
2000-09-07 08:43:05 +00:00
Jeremy Allison
b27571e916 Temporary fix to convert from level6 (Win2k) to level 3 (NT4)
for driver download files.
Jeremy.
(This used to be commit 1c9ac94c94)
2000-09-06 23:20:35 +00:00
Jeremy Allison
061fc961cd Fix from John Reilly for double free of printer struct.
Jeremy.
(This used to be commit c15b7e41e1)
2000-09-06 01:55:36 +00:00
Jeremy Allison
a1f66a820d 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 2b1f66eb82)
2000-09-06 01:06:39 +00:00
Jeremy Allison
d644d4438c Implemented GETFORM tested and working using Gerald's Win32 test progs....
Jeremy.
(This used to be commit 55ed0a9b0c)
2000-09-05 20:56:09 +00:00
David O'Neill
a3a28675fa 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 74af3e2cae)
2000-09-01 18:49:26 +00:00
Jeremy Allison
bfa751734a Fix from John Reilly @ HP for my typo with the parameters being reversed. Ooops.
Jeremy.
(This used to be commit 8317d70a35)
2000-09-01 17:13:44 +00:00
Gerald Carter
08e73efdbc -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 cc611ecc67)
2000-09-01 06:25:15 +00:00
Tim Potter
e5e43b553e Fix for swat to return correct MIME type for text files. From "Ron
Alexander" <rcalex@home.com>
(This used to be commit 061e5e5052)
2000-09-01 02:06:20 +00:00
Jeremy Allison
fa810d4c80 Implemented DELETEFORM tested using Gerald's Win32 test code :-).
Jeremy.
(This used to be commit 596c21a2af)
2000-08-31 19:04:51 +00:00
Andrew Tridgell
288ea15a56 make sure a couple of variables are initialised
(This used to be commit 155c7c3739)
2000-08-31 07:11:59 +00:00
Andrew Tridgell
22fbda6c56 fixed "admin users" option with new security code
(This used to be commit b69c5de6ba)
2000-08-31 07:11:45 +00:00
Tim Potter
bd5e70ebfd Removed compiler warning.
(This used to be commit 2d23607bb0)
2000-08-31 04:27:38 +00:00
Jeremy Allison
b26e3d2525 Fixed overrun write error when using debuglevel > 50.
Jeremy.
(This used to be commit 3d9b163655)
2000-08-30 22:54:54 +00:00
Jeremy Allison
c77bf3d9e2 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 67b9d40e3d)
2000-08-30 21:09:21 +00:00
Jeremy Allison
177b962dfe Added vfs_unlink call to ensure vfs is used on unlink from client.
Jeremy.
(This used to be commit 38fc56c843)
2000-08-30 18:33:56 +00:00
Jeremy Allison
6e150a7ca5 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 9890740121)
2000-08-30 17:34:35 +00:00
Jeremy Allison
d407579b94 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 6d081a9017)
2000-08-30 00:45:59 +00:00
Gerald Carter
3b33053b88 missed removing the static declaration of strwicmp()
jerry
(This used to be commit d09d8a3f4b)
2000-08-29 16:47:20 +00:00
Gerald Carter
f0c8bcc832 make proto
(This used to be commit d59623dd92)
2000-08-29 14:57:37 +00:00
Gerald Carter
a86ae846ad added -P (for no prompt) and -A <authfile> options
jerry
(This used to be commit 2d95c38f7e)
2000-08-29 14:43:42 +00:00
Gerald Carter
ae149ff6c5 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 41bf133411)
2000-08-29 14:42:10 +00:00
Gerald Carter
92d1e90d49 fixed previous bug spotted by Elrond in get_printerdrivernumber().
Thought I had already committed this.





jerry
(This used to be commit 2ceb704c3d)
2000-08-29 14:38:38 +00:00
Gerald Carter
28c07a5e9f added -A <authfile> option to smbclient for the reading of username /
password credentials from a file.



--jerry
(This used to be commit e291500903)
2000-08-29 14:35:31 +00:00
Gerald Carter
4326894f6a 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 dfdca21bd9)
2000-08-29 14:33:39 +00:00
Gerald Carter
e0d09910a1 make rpcclent by default.
--jerry
(This used to be commit e89117f418)
2000-08-29 14:32:23 +00:00
Gerald Carter
91f243f636 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 d8dde169e7)
2000-08-29 14:31:27 +00:00
Gerald Carter
2fca4a1c69 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 0202f7e249)
2000-08-29 14:29:53 +00:00
Jeremy Allison
9e3098587b This doesn't compile but is a placeholder for moving the UNIX
acl code over to POSIX acls.
Jeremy.
(This used to be commit a2829febe1)
2000-08-29 00:29:15 +00:00
Jeremy Allison
7d93eb3483 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 2b6e3ed7a6)
2000-08-28 20:45:00 +00:00
Herb Lewis
0c5bbb3bbd 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 7db533cb47)
2000-08-28 18:58:46 +00:00
Gerald Carter
fda1cf6a76 fixed typos spotted by Ron Alexander <rcalex@home.com>
--jerry
(This used to be commit 9fbcede92f)
2000-08-28 13:41:46 +00:00
Gerald Carter
87591d8ab5 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 eb20a2c6f4)
2000-08-28 13:35:10 +00:00
Tim Potter
66cc9787ef Merge bug - still getting used to dirdiff.
(This used to be commit cb717b4a2b)
2000-08-28 07:25:18 +00:00
Tim Potter
8b889a84a2 Oops - missed a file.
(This used to be commit 5aed84b749)
2000-08-28 06:50:45 +00:00
Tim Potter
d12f3fea75 Merge from appliance branch.
(This used to be commit 567b0095b1)
2000-08-28 06:46:53 +00:00