Jeremy Allison [Wed, 16 Mar 2005 19:31:15 +0000 (19:31 +0000)]
r5833: Revert change for bug #2335. Tested with a Win9x client and the original
error code is correct. I have some theories as to why this is different,
I'll add some code to the torture tester to confirm.
Jeremy.
Jeremy Allison [Wed, 16 Mar 2005 00:26:57 +0000 (00:26 +0000)]
r5817: Patch from Vince Brimhall <vbrimhall@novell.com> to change the way pdb_nds
handles users with no Universal or Simple Password. Bug #2453.
Jeremy.
Jeremy Allison [Tue, 15 Mar 2005 23:40:47 +0000 (23:40 +0000)]
r5813: Fix bug found by Jim McDonough <jmcd@us.ibm.com>
Win9x can send a resume name of "..". This will cause the parser to
complain (it thinks we're asking for the directory above the shared
path). Catch this as the resume name is only compared, never used in
a file access and replace it with "..".
Jeremy.
Jeremy Allison [Tue, 15 Mar 2005 01:19:58 +0000 (01:19 +0000)]
r5792: Added new parameter "inherit owner". If set on a share, the created file/directory
will be owned by the same uid as the containing directory. Doing this for directories
in a race-free mannor has only been tested on Linux (it depends on being able to open
a directory and then do a fchown on that file descriptor). If this functionality is
not available then the code silently downgrades to not changing the ownership of a
new directory. This new parameter (docs to follow) finally makes it possible to create
"drop boxes" on Samba, which requires all files within a directory to be commonly owned.
A HOWTO on how to use this will follow.
Jeremy.
Jeremy Allison [Sat, 12 Mar 2005 01:28:10 +0000 (01:28 +0000)]
r5762: Modified version of patch from Michael Brown <mbrown@fensystems.co.uk> to case
insentively search for a principal match on logon verification in the system
keytab. UNTESTED (although it compiles). Please test.
Jeremy.
Gerald Carter [Fri, 11 Mar 2005 17:01:30 +0000 (17:01 +0000)]
r5752: implement derrell's solution for binary compatibilty in the _SMBCCTX structure; note that we break compat with 3.0.11 but are ok with earlier versions
Gerald Carter [Thu, 10 Mar 2005 23:41:19 +0000 (23:41 +0000)]
r5735: rest of derrel's patch for BUG 2308; had to move the options structure from the _SMBCCTX to the internals structure to maintain binary compatibility (derrel, we should talk more about this)
Jeremy Allison [Thu, 10 Mar 2005 02:00:24 +0000 (02:00 +0000)]
r5723: Add missing part of fix for #2271. After analysing the actions of a XP
client against a Samba server. It never uses the "continue" flag, but always
does "new search, continue from this file" instead. Change our client code
to do the same (it appears that's all they test in W2K etc.).
Jeremy.
Jeremy Allison [Thu, 10 Mar 2005 01:30:14 +0000 (01:30 +0000)]
r5720: Attempt to fix bug #2382 (Excel shared workbook stops working). Also
incorporates part of the fix created by ke_miyata@itg.hitachi.co.jp
for bug #2045 (MS-Office behavior of timestamp).
Jeremy.
Jeremy Allison [Wed, 9 Mar 2005 00:06:27 +0000 (00:06 +0000)]
r5702: Fix bug #2271. Correctly pull out and use resume names in a
directory listing (we were incorrectly understanding what was
returned in the "last name" entry).
Jeremy.
Jeremy Allison [Tue, 8 Mar 2005 23:03:38 +0000 (23:03 +0000)]
r5700: Fix problems where we're not pointing to the start of entry for a
couple of info levels - W2K3 always points to the start, not the name.
Jeremy.
Gerald Carter [Tue, 8 Mar 2005 17:22:39 +0000 (17:22 +0000)]
r5691: wrapping the pause/resume/purge printer commands in
{become,unbecome}_root() blocks. We've already done
a print_access_check() to ensure the user is admin.
The means that non-root users can pause and manage printers.
I really don't see how this worked before without setuid
binaries on the server.
Also update print_queue_update() interface to allow an smbd
to update the print queue cache locally rather than going through
the bg lpq daemon. This is needed for things like pjob_delete()
to ensure the cache is current for the specific client.
Jeremy Allison [Sat, 5 Mar 2005 01:22:53 +0000 (01:22 +0000)]
r5655: Added support for Novell NDS universal password. Code donated by
Vince Brimhall <vbrimhall@novell.com> - slight tidyup by me to
use Samba conventions.
Vince - thanks a *lot* for this code - please test to make sure
I haven't messed anything up.
Jeremy.
Jeremy Allison [Thu, 3 Mar 2005 03:43:57 +0000 (03:43 +0000)]
r5636: Re-add the allocation size - parameterized by share as
"allocation roundup size", by default set as 1Mb. From
advice by BlueArc about Windows client behaviour. VC++
people can set this to zero to turn it off.
Jeremy.
Jeremy Allison [Thu, 3 Mar 2005 02:07:00 +0000 (02:07 +0000)]
r5634: Fix 64-bit overflow problems found by BlueArc torture tester.
We still have a few strange bugs with 64-bit locking values. I will
get traces.
Jeremy.
Jeremy Allison [Thu, 3 Mar 2005 02:04:36 +0000 (02:04 +0000)]
r5632: Fix infinite looping bug found by nasty BlueArc test :-).
When finding a singleton directory remember that we're
at the end and don't continuously return the same name.
Jeremy.
Jeremy Allison [Wed, 2 Mar 2005 18:19:32 +0000 (18:19 +0000)]
r5623: Horrible band-aid patch to fix Blue-Arc torture tester.
I know this isn't right but will work until I can refactor
the deny mode code with the Samba4 algorithm.
Jeremy.
Jeremy Allison [Wed, 2 Mar 2005 03:41:44 +0000 (03:41 +0000)]
r5616: Forgot about the sticky bit on directories (commonly set on /tmp). If this is set
then only the owner or root can delete a file. We now use
the same algorithm to check file delete.
Jeremy.
Jeremy Allison [Mon, 28 Feb 2005 07:01:52 +0000 (07:01 +0000)]
r5589: Ensure the torture code that uses cli_list and cli_list_old
matches the new MS-DFS function prototypes. Should fix the
build farm tests.
Jeremy.
Jim McDonough [Sat, 26 Feb 2005 15:26:55 +0000 (15:26 +0000)]
r5580: Fix "net rpc trustdom add". Much closer to what windows does. Also stop
referencing unknown_6 from sam, because it's just fixed at 1260, the max
len of LOGON_HRS. Need to go in and mark it as "remove me" from passdb.
Gerald Carter [Sat, 26 Feb 2005 15:03:16 +0000 (15:03 +0000)]
r5578: get 'recurse; dir' working across multiple levels of dfs referrals
note that this does not handle the situation where the same \\server\share
is mounted mutliple times in the dfs tree since I store a single mount
path per struct cli_state *