1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
Commit Graph

4458 Commits

Author SHA1 Message Date
Jeremy Allison
d666b958bc param/loadparm.c: Fix based on Damian's code to stop printer scripts getting overwritten.
rpc_parse/parse_spoolss.c: Tidyup to call function for relstring arrays.
Win2000 now does "Add Printer" successfully !!!!!

Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
ce70fb5800 Modified test.h generator to return error if structure passed to vluke
doesn't match any known structure names.
0001-01-01 00:00:00 +00:00
Tim Potter
807f22412e Removed emacs backup file from repository. 0001-01-01 00:00:00 +00:00
Jean-François Micouleau
cd41d7a354 in a printer_info_6, driver version is 64 bits long and there is a 32 bit
padding before.

	J.F.
0001-01-01 00:00:00 +00:00
Jeremy Allison
63a7d0fc35 Fixes from JF as I didn't understand the string array sizing code correctly.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
e5d98ba9e9 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.
0001-01-01 00:00:00 +00:00
Gerald Carter
d4a60f2233 Placeholder for some forthcoming documentation
jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
d2949468dc fixed typo
jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
d675a6bd14 Added a gew more mods by Patrick Powell (lprng guy)
jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
c9a76a2e10 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
0001-01-01 00:00:00 +00:00
Jeremy Allison
29f41d0d95 Ensure old DACL and SACL are preserved if the new SD is a 'set' only.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
79c94f37d0 Added SIGHUP when printer deleted as well as added.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5207496097 don't show equivalent enum options in swat 0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
0249de4cd9 Added time check test before allowing print job.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
318ead783c Added missing break statement for manage documents check in
print_access_check() function.
0001-01-01 00:00:00 +00:00
Tim Potter
0d7f816331 Updated manual pages to point at http://lists.samba.org instead of old
listproc address.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9e1fbb0c2f Fix for enumjobs infor level 2 which caused smbd to coredump.
Uninitialized element in struct.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
41d03a118c Fixed error return when printer is PAUSED - should be returning "Pause".
Jeremy.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Gerald Carter
ae7dd77c24 spoolgetprinterdriver now returns "Windows NT x86" and "Windows 4.0"
driver information.

Will merge into TNG.



jerry
0001-01-01 00:00:00 +00:00
Andrew Tridgell
bb0f769272 fixed a race in the pipe() setup in sys_select() 0001-01-01 00:00:00 +00:00
Andrew Tridgell
e779f834db - fixed some memory leaks in the messages code
- added a MSG_PING message for performance testing.
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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).
0001-01-01 00:00:00 +00:00
Jeremy Allison
e08b521559 Fixed memory leaks found in enumprinterdrivers code.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2916790859 Fix for malloc of zero bytes found by insure.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
6a503f95b1 debug messages now work for nmbd 0001-01-01 00:00:00 +00:00
Andrew Tridgell
db1ec05f89 a simple test program I use to test the debug message system 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fb48efaf83 Implemented DELETEPRINTERDATA (tested with Gerald's Win32 progs).
Jeremy.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Tim Potter
2f33ec41ac Hopefully this should fix the primary group permission problem. 0001-01-01 00:00:00 +00:00
Jeremy Allison
1c9ac94c94 Temporary fix to convert from level6 (Win2k) to level 3 (NT4)
for driver download files.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c15b7e41e1 Fix from John Reilly for double free of printer struct.
Jeremy.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
55ed0a9b0c Implemented GETFORM tested and working using Gerald's Win32 test progs....
Jeremy.
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Jeremy Allison
8317d70a35 Fix from John Reilly @ HP for my typo with the parameters being reversed. Ooops.
Jeremy.
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Tim Potter
061e5e5052 Fix for swat to return correct MIME type for text files. From "Ron
Alexander" <rcalex@home.com>
0001-01-01 00:00:00 +00:00
Jeremy Allison
596c21a2af Implemented DELETEFORM tested using Gerald's Win32 test code :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
155c7c3739 make sure a couple of variables are initialised 0001-01-01 00:00:00 +00:00
Andrew Tridgell
b69c5de6ba fixed "admin users" option with new security code 0001-01-01 00:00:00 +00:00