1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

4471 Commits

Author SHA1 Message Date
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
Andrew Tridgell
9e1f9a5719 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 14e534a890)
2000-08-28 04:42:31 +00:00
Andrew Tridgell
4ff15c319e 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 f99f028c77)
2000-08-28 03:17:22 +00:00
Andrew Tridgell
bbc7918ad0 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 311a4dfb9a)
2000-08-28 02:06:25 +00:00
Jeremy Allison
ace6739f5e vfs write data fix. Fix for name matching in addtosmbpass
Jeremy.
(This used to be commit 85738b7ee1)
2000-08-25 20:44:33 +00:00
Tim Potter
c79b92bbd8 Replaced "\\MAILSLOT\\NET\\NETLOGON" with NET_LOGON_MAILSLOT constant.
(This used to be commit 5764e84c0e)
2000-08-25 04:18:50 +00:00
Andrew Tridgell
e1b9b33e2b - 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 2520a0eff9)
2000-08-25 03:58:02 +00:00
Tim Potter
ebe8a05062 Updated file with version in TNG.
(This used to be commit 156e17dea4)
2000-08-25 00:55:27 +00:00
Jeremy Allison
42e8f4102d Modified to use sid_to_uid and sid_to_gid. Now ready for POSIX ACL
code....
Jeremy.
(This used to be commit 28586c1dee)
2000-08-24 19:48:31 +00:00
Jeremy Allison
f03879e0b3 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 3514b5bb8f)
2000-08-23 23:05:49 +00:00
Jeremy Allison
b3addf7ebe Documentation on NT_USER_TOKEN. Requested by Sander.
Jeremy.
(This used to be commit e203324d4a)
2000-08-23 17:38:52 +00:00
Jeremy Allison
641d9e85ea Added code to do SID to uid/gid conversion. Needed for ACL support.
Jeremy.
(This used to be commit 81c5380f91)
2000-08-23 00:45:40 +00:00
Tim Potter
af0071c9b8 Patch from John Reilly <jreilly@hp.com> for not processing duplicate files
when moving printer driver to download area.
(This used to be commit 6e0c9079c3)
2000-08-22 06:28:33 +00:00
Jeremy Allison
d8ad8a0d74 Fix for safe_free freeing static strings. From Robert August Vincent, II.
Jeremy.
(This used to be commit bd844fcd30)
2000-08-21 19:30:19 +00:00