1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

4298 Commits

Author SHA1 Message Date
Jeremy Allison
29f41d0d95 Ensure old DACL and SACL are preserved if the new SD is a 'set' only.
Jeremy.
-
Jeremy Allison
79c94f37d0 Added SIGHUP when printer deleted as well as added.
Jeremy.
-
Andrew Tridgell
5207496097 don't show equivalent enum options in swat -
Andrew Tridgell
5f91c24636 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
-
Tim Potter
a15e610bb3 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.
-
Jeremy Allison
0249de4cd9 Added time check test before allowing print job.
Jeremy.
-
Tim Potter
318ead783c Added missing break statement for manage documents check in
print_access_check() function.
-
Tim Potter
0d7f816331 Updated manual pages to point at http://lists.samba.org instead of old
listproc address.
-
Jeremy Allison
9e1fbb0c2f Fix for enumjobs infor level 2 which caused smbd to coredump.
Uninitialized element in struct.
Jeremy.
-
Jeremy Allison
41d03a118c Fixed error return when printer is PAUSED - should be returning "Pause".
Jeremy.
-
Jeremy Allison
0264fdafe9 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.
-
Gerald Carter
ae7dd77c24 spoolgetprinterdriver now returns "Windows NT x86" and "Windows 4.0"
driver information.

Will merge into TNG.



jerry
-
Andrew Tridgell
bb0f769272 fixed a race in the pipe() setup in sys_select() -
Andrew Tridgell
e779f834db - fixed some memory leaks in the messages code
- added a MSG_PING message for performance testing.
-
Andrew Tridgell
f1c49ca7ce - 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
-
Andrew Tridgell
2ebfdd21b3 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.
-
Andrew Tridgell
c3350c77f5 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).
-
Jeremy Allison
e08b521559 Fixed memory leaks found in enumprinterdrivers code.
Jeremy.
-
Jeremy Allison
2916790859 Fix for malloc of zero bytes found by insure.
Jeremy.
-
Andrew Tridgell
6a503f95b1 debug messages now work for nmbd -
Andrew Tridgell
db1ec05f89 a simple test program I use to test the debug message system -
Andrew Tridgell
2a34ee95f3 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.
-
Jeremy Allison
fb48efaf83 Implemented DELETEPRINTERDATA (tested with Gerald's Win32 progs).
Jeremy.
-
Jeremy Allison
54cab7dd3b 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.
-
Jeremy Allison
43192370f3 Fixed typo where docname was being checked for datatype - was causing
STARTDOCPRINTER call to fail. I *love* Gerald's test code :-).
Jeremy.
-
Jeremy Allison
a87f6277b1 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.
-
Jeremy Allison
4d792e6bcb 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.
-
Jeremy Allison
29ba3a2cdf 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.
-
Tim Potter
2f33ec41ac Hopefully this should fix the primary group permission problem. -
Jeremy Allison
1c9ac94c94 Temporary fix to convert from level6 (Win2k) to level 3 (NT4)
for driver download files.
Jeremy.
-
Jeremy Allison
c15b7e41e1 Fix from John Reilly for double free of printer struct.
Jeremy.
-
Jeremy Allison
2b1f66eb82 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.
-
Jeremy Allison
55ed0a9b0c Implemented GETFORM tested and working using Gerald's Win32 test progs....
Jeremy.
-
David O'Neill
74af3e2cae 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
-
Jeremy Allison
8317d70a35 Fix from John Reilly @ HP for my typo with the parameters being reversed. Ooops.
Jeremy.
-
Gerald Carter
cc611ecc67 -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
-
Tim Potter
061e5e5052 Fix for swat to return correct MIME type for text files. From "Ron
Alexander" <rcalex@home.com>
-
Jeremy Allison
596c21a2af Implemented DELETEFORM tested using Gerald's Win32 test code :-).
Jeremy.
-
Andrew Tridgell
155c7c3739 make sure a couple of variables are initialised -
Andrew Tridgell
b69c5de6ba fixed "admin users" option with new security code -
Tim Potter
2d23607bb0 Removed compiler warning. -
Jeremy Allison
3d9b163655 Fixed overrun write error when using debuglevel > 50.
Jeremy.
-
Jeremy Allison
67b9d40e3d 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.
-
Jeremy Allison
38fc56c843 Added vfs_unlink call to ensure vfs is used on unlink from client.
Jeremy.
-
Jeremy Allison
9890740121 Fix for bind interfaces only sometimes picking the wrong IP address
for a name query. From Steve Langasek <vorlon@netexpress.net>.
Jeremy.
-
Jeremy Allison
6d081a9017 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.
-
Gerald Carter
d09d8a3f4b missed removing the static declaration of strwicmp()
jerry
-
Gerald Carter
d59623dd92 make proto -
Gerald Carter
2d95c38f7e added -P (for no prompt) and -A <authfile> options
jerry
-
Gerald Carter
41bf133411 added a #define for SPOOLSSGETPRINTERDATAEX. Although we do not
support the RPC yte (win2k specific), I added it for documentation
purposes.



jerry
-