tprouty/samba.git
16 years agor5715: Update for new CIFS POSIX info levels
Steve French [Wed, 9 Mar 2005 21:43:00 +0000 (21:43 +0000)]
r5715: Update for new CIFS POSIX info levels

16 years agor5708: BUG 2424: patch from Vince Brimhall <vbrimhall@novell.com> to ensure that...
Gerald Carter [Wed, 9 Mar 2005 15:22:06 +0000 (15:22 +0000)]
r5708: BUG 2424: patch from Vince Brimhall <vbrimhall@novell.com> to ensure that uidNumber and gidNumber use match the rfc2307 schema

16 years agor5707: BUG 2425: remove ubran legend wrt to win98 and the DFS_PATHNAMES capability bit
Gerald Carter [Wed, 9 Mar 2005 15:13:23 +0000 (15:13 +0000)]
r5707: BUG 2425: remove ubran legend wrt to win98 and the DFS_PATHNAMES capability bit

16 years agor5705: Have unknown_6 default to 1260 (fixed #892)
Jelmer Vernooij [Wed, 9 Mar 2005 10:10:43 +0000 (10:10 +0000)]
r5705: Have unknown_6 default to 1260 (fixed #892)

16 years agor5702: Fix bug #2271. Correctly pull out and use resume names in a
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.

16 years agor5700: Fix problems where we're not pointing to the start of entry for a
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.

16 years agor5696: BUG 2355: use bsd style commands for 'printing = cups' but \!defined(HAVE_CUPS)
Gerald Carter [Tue, 8 Mar 2005 21:04:36 +0000 (21:04 +0000)]
r5696: BUG 2355: use bsd style commands for 'printing = cups' but \!defined(HAVE_CUPS)

16 years agor5692: Fix compile warnings
Volker Lendecke [Tue, 8 Mar 2005 17:42:59 +0000 (17:42 +0000)]
r5692: Fix compile warnings

16 years agor5691: wrapping the pause/resume/purge printer commands in
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.

16 years agor5689: Allow for better protection of sensitive attributes in IBM Directory Server.
Jim McDonough [Tue, 8 Mar 2005 11:02:48 +0000 (11:02 +0000)]
r5689: Allow for better protection of sensitive attributes in IBM Directory Server.

16 years agor5688: ignore user_xattr mount parm so as not to confuse it with a user name
Steve French [Tue, 8 Mar 2005 00:00:13 +0000 (00:00 +0000)]
r5688: ignore user_xattr mount parm so as not to confuse it with a user name

16 years agor5687: Fix for bug #2398 from Kevin Dalley <kevin@kelphead.org>.
Jeremy Allison [Mon, 7 Mar 2005 23:54:24 +0000 (23:54 +0000)]
r5687: Fix for bug #2398 from Kevin Dalley <kevin@kelphead.org>.
smbtar shouldn't assume /dev/null means dryrun.
Jeremy.

16 years agor5685: BUG 1881: only define PRINT_SPOOL_PREFIX if it is not already defined
Gerald Carter [Mon, 7 Mar 2005 23:24:19 +0000 (23:24 +0000)]
r5685: BUG 1881: only define PRINT_SPOOL_PREFIX if it is not already defined

16 years agor5684: BUG 2405: patch from Torsten Werner <torsten.werner@assyst-intl.com> to define...
Gerald Carter [Mon, 7 Mar 2005 22:10:27 +0000 (22:10 +0000)]
r5684: BUG 2405: patch from Torsten Werner <torsten.werner@assyst-intl.com> to define 'lpstat' printcap output on HPUX

16 years agor5683: BUG 2363: allow 'in use' driver to be removed as long as one 'Windows NT x86...
Gerald Carter [Mon, 7 Mar 2005 22:06:25 +0000 (22:06 +0000)]
r5683: BUG 2363: allow 'in use' driver to be removed as long as one 'Windows NT x86' driver remains'

16 years agor5657: Fix uninitialized variable warning
Volker Lendecke [Sat, 5 Mar 2005 08:12:40 +0000 (08:12 +0000)]
r5657: Fix uninitialized variable warning

16 years agor5655: Added support for Novell NDS universal password. Code donated by
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.

16 years agor5654: Fix bug 1604 -- make winbind work with more than 10 trusted domains.
Volker Lendecke [Fri, 4 Mar 2005 19:29:18 +0000 (19:29 +0000)]
r5654: Fix bug 1604 -- make winbind work with more than 10 trusted domains.

TODO: This needs to be merged to trunk separately, it has changed a little,
but it's friday evening here.

Volker

16 years agor5653: Fixiing typos.
John Terpstra [Fri, 4 Mar 2005 17:38:25 +0000 (17:38 +0000)]
r5653: Fixiing typos.

16 years agor5650: add help lines for net rpc group addmem and delmem commands
Herb Lewis [Thu, 3 Mar 2005 18:55:36 +0000 (18:55 +0000)]
r5650: add help lines for net rpc group addmem and delmem commands
partial fix for Bug 2417 - we need to look for other missing
commands

16 years agor5647: Caches are good for performance, but you get a consistency problem.
Volker Lendecke [Thu, 3 Mar 2005 16:52:44 +0000 (16:52 +0000)]
r5647: Caches are good for performance, but you get a consistency problem.

Fix bug # 2401.

Volker

16 years agor5645: Add an autoconf test for -Wdeclaration-after-statement so we don't add it
Tim Potter [Thu, 3 Mar 2005 06:15:13 +0000 (06:15 +0000)]
r5645: Add an autoconf test for -Wdeclaration-after-statement so we don't add it
to the configure.developer CFLAGS if it's not supported.

16 years agor5641: Fix from James Peach @ SGI for oplock2 test.
Jeremy Allison [Thu, 3 Mar 2005 04:08:13 +0000 (04:08 +0000)]
r5641: Fix from James Peach @ SGI for oplock2 test.
Jeremy.

16 years agor5640: On failed mount (ENXIO) retry share name in uppercase (fix mount to FastConnec...
Steve French [Thu, 3 Mar 2005 04:07:55 +0000 (04:07 +0000)]
r5640: On failed mount (ENXIO) retry share name in uppercase (fix mount to FastConnect AIX SMB server)

16 years agor5639: update smb.h with missing defines
Steve French [Thu, 3 Mar 2005 04:05:33 +0000 (04:05 +0000)]
r5639: update smb.h with missing defines

16 years agor5637: Actually test and fix the crash bugs (sorry:-).
Jeremy Allison [Thu, 3 Mar 2005 04:03:36 +0000 (04:03 +0000)]
r5637: Actually test and fix the crash bugs (sorry:-).
Jeremy.

16 years agor5636: Re-add the allocation size - parameterized by share as
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.

16 years agor5634: Fix 64-bit overflow problems found by BlueArc torture tester.
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.

16 years agor5632: Fix infinite looping bug found by nasty BlueArc test :-).
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.

16 years agor5630: This may be a mistake ... needs more cthon investigation.
Jeremy Allison [Wed, 2 Mar 2005 21:43:54 +0000 (21:43 +0000)]
r5630: This may be a mistake ... needs more cthon investigation.
Jeremy.

16 years agor5628: Deprecate the write cache parameter - this code will go away soon.
Jeremy Allison [Wed, 2 Mar 2005 20:30:37 +0000 (20:30 +0000)]
r5628: Deprecate the write cache parameter - this code will go away soon.
Jeremy.

16 years agor5625: Reformat (tidy).
Jeremy Allison [Wed, 2 Mar 2005 20:19:10 +0000 (20:19 +0000)]
r5625: Reformat (tidy).

16 years agor5623: Horrible band-aid patch to fix Blue-Arc torture tester.
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.

16 years agor5616: Forgot about the sticky bit on directories (commonly set on /tmp). If this...
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.

16 years agor5614: fix proto for copy_fn() after changes to cli_list()
Gerald Carter [Wed, 2 Mar 2005 03:24:40 +0000 (03:24 +0000)]
r5614: fix proto for copy_fn() after changes to cli_list()

16 years agor5612: Add -Wdeclaration-after-statement to CFLAGS for --enable-developer.
Tim Potter [Wed, 2 Mar 2005 00:33:40 +0000 (00:33 +0000)]
r5612: Add -Wdeclaration-after-statement to CFLAGS for --enable-developer.

16 years agor5608: BUG 2399 - removing dead code (not finished with bug yet).
Gerald Carter [Tue, 1 Mar 2005 21:48:34 +0000 (21:48 +0000)]
r5608: BUG 2399 - removing dead code (not finished with bug yet).

16 years agor5607: Fix for bug #2399 - ensure we use SMB_VFS_STAT instead of stat
Jeremy Allison [Tue, 1 Mar 2005 21:26:01 +0000 (21:26 +0000)]
r5607: Fix for bug #2399 - ensure we use SMB_VFS_STAT instead of stat
when checking for existance of a pathname.
Jeremy.

16 years agor5605: only display the publish check box on printer if
Gerald Carter [Tue, 1 Mar 2005 17:28:25 +0000 (17:28 +0000)]
r5605: only display the publish check box on printer if
we are a member of an AD domain

clean up some hardcoded constands with the REG_XXX constant.

16 years agor5600: Bring IBM Directory Server schema up to date with openldap schema
Jim McDonough [Tue, 1 Mar 2005 14:00:25 +0000 (14:00 +0000)]
r5600: Bring IBM Directory Server schema up to date with openldap schema

16 years agor5597: full fix for BUG 2394 (unresolved symbols on IRIX)
Gerald Carter [Mon, 28 Feb 2005 19:14:07 +0000 (19:14 +0000)]
r5597: full fix for BUG 2394 (unresolved symbols on IRIX)

16 years agor5596: BUG 2394: fix nmbd linking issue on IRIX
Gerald Carter [Mon, 28 Feb 2005 17:14:18 +0000 (17:14 +0000)]
r5596: BUG 2394: fix nmbd linking issue on IRIX

16 years agor5594: Fix comment to read "remove" instead of "add"
Jim McDonough [Mon, 28 Feb 2005 11:17:13 +0000 (11:17 +0000)]
r5594: Fix comment to read "remove" instead of "add"

16 years agor5593: More reversal of accidental commit.
Jim McDonough [Mon, 28 Feb 2005 11:13:22 +0000 (11:13 +0000)]
r5593: More reversal of accidental commit.

16 years agor5592: Oops, accidentally committed test version of rpcclient. Reverting changes.
Jim McDonough [Mon, 28 Feb 2005 11:11:55 +0000 (11:11 +0000)]
r5592: Oops, accidentally committed test version of rpcclient.  Reverting changes.

16 years agor5591: Implement "net rpc trustdom del", including client side of
Jim McDonough [Mon, 28 Feb 2005 10:55:13 +0000 (10:55 +0000)]
r5591: Implement "net rpc trustdom del", including client side of
samr_remove_sid_from_foreign_domain.

16 years agor5589: Ensure the torture code that uses cli_list and cli_list_old
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.

16 years agor5580: Fix "net rpc trustdom add". Much closer to what windows does. Also stop
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.

16 years agor5578: get 'recurse; dir' working across multiple levels of dfs referrals
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 *

16 years agor5577: get recurse; dir working across single level dfs referrals
Gerald Carter [Sat, 26 Feb 2005 14:42:55 +0000 (14:42 +0000)]
r5577: get recurse; dir working across single level dfs referrals

16 years agor5571: fix another breakage on gcc 2.96
Gerald Carter [Fri, 25 Feb 2005 19:26:07 +0000 (19:26 +0000)]
r5571: fix another breakage on gcc 2.96

16 years agor5568: fix more breakage on gcc 2.96
Gerald Carter [Fri, 25 Feb 2005 18:49:42 +0000 (18:49 +0000)]
r5568: fix more breakage on gcc 2.96

16 years agor5565: fix breakage on gcc 2.96
Gerald Carter [Fri, 25 Feb 2005 18:38:19 +0000 (18:38 +0000)]
r5565: fix breakage on gcc 2.96

16 years agor5562: * bump version to 3.0.12pre2
Gerald Carter [Fri, 25 Feb 2005 15:56:13 +0000 (15:56 +0000)]
r5562: * bump version to 3.0.12pre2
* change special character in gd's valid workstation
  check to a '+' to be more in line with the characters
  used by valid users

16 years agor5560: make sure session setup message is displayed after changes to client.c
Gerald Carter [Fri, 25 Feb 2005 15:22:49 +0000 (15:22 +0000)]
r5560: make sure session setup message is displayed after changes to client.c

16 years agor5556: Fix the build on AIX.
Günther Deschner [Fri, 25 Feb 2005 14:12:05 +0000 (14:12 +0000)]
r5556: Fix the build on AIX.

use AF_UNIX instead of AF_LOCAL (thanks to Doug VanLeuven
<roamdad-at-sonic.net>) and make smbldap_open() a bit more readable.

Guenther

16 years agor5548: Stop lying about allocation sizes to Windows clients. It was a nice
Jeremy Allison [Fri, 25 Feb 2005 02:22:44 +0000 (02:22 +0000)]
r5548: Stop lying about allocation sizes to Windows clients. It was a nice
idea, and aparently improved performance in some circumstances, but it
breaks the VC++ compiler :-(. Not cool. Fix bug #2146.
Jeremy.

16 years agor5547: Fix compile warning.
Günther Deschner [Thu, 24 Feb 2005 23:30:47 +0000 (23:30 +0000)]
r5547: Fix compile warning.

Guenther

16 years agor5546: Fix some comments in "net rpc printer migrate settings"
Günther Deschner [Thu, 24 Feb 2005 23:25:35 +0000 (23:25 +0000)]
r5546: Fix some comments in "net rpc printer migrate settings"

Guenther

16 years agor5545: move cli_cm_XXX() connection handling code to clidfs and out of client.c;...
Gerald Carter [Thu, 24 Feb 2005 21:54:52 +0000 (21:54 +0000)]
r5545: move cli_cm_XXX() connection handling code to clidfs and out of client.c;  client.c still maintains a pointer to the first connection so the change is fairly reansparent to other smbclient functions such as -L and -M

16 years agor5543: Fix for bug #962 - using MB sharenames containing a ']' character.
Jeremy Allison [Thu, 24 Feb 2005 21:06:11 +0000 (21:06 +0000)]
r5543: Fix for bug #962 - using MB sharenames containing a ']' character.
Processing a share name is now MB safe so long as the correct
unix charset is in scope.
Jeremy.

16 years agor5542: fix a few more msdfs bugs in smbclient against both smbd and 2k dfs root
Gerald Carter [Thu, 24 Feb 2005 19:10:28 +0000 (19:10 +0000)]
r5542: fix a few more msdfs bugs in smbclient against both smbd and 2k dfs root
shares.

16 years agor5541: Fix crash bug in the client-spoolss enumdataex-call.
Günther Deschner [Thu, 24 Feb 2005 17:00:24 +0000 (17:00 +0000)]
r5541: Fix crash bug in the client-spoolss enumdataex-call.

With Windows2003 it's perfectly legal to receive no data when querying a
value-less subkey. Found while migrating printer settings.

Guenther

16 years agor5536: Avoid intermediate copy of NT and LM responses in NETLOGON client.
Andrew Bartlett [Thu, 24 Feb 2005 03:45:09 +0000 (03:45 +0000)]
r5536: Avoid intermediate copy of NT and LM responses in NETLOGON client.

This copy was length-limited, which broke when the NTLMv2 response was
more than 128 bytes in length.

Andrew Bartlett

16 years agor5535: Reformat so I can actually maintain this code and eventually convert to MB...
Jeremy Allison [Thu, 24 Feb 2005 02:19:17 +0000 (02:19 +0000)]
r5535: Reformat so I can actually maintain this code and eventually convert to MB safe.
Jeremy.

16 years agor5532: Patch to detect infinite loops when traversing a tdb from "Shlomi Yaakobovich...
Jeremy Allison [Thu, 24 Feb 2005 01:07:09 +0000 (01:07 +0000)]
r5532: Patch to detect infinite loops when traversing a tdb from "Shlomi Yaakobovich" <Shlomi@exanet.com>
Jeremy.

16 years agor5530: Keep the TRANS call up to date with the NTCreateX call.
Jeremy Allison [Thu, 24 Feb 2005 01:03:35 +0000 (01:03 +0000)]
r5530: Keep the TRANS call up to date with the NTCreateX call.
Jeremy.

16 years agor5528: Expand the invalid-workstation-scheme. Workstation-Names with leading
Günther Deschner [Thu, 24 Feb 2005 00:26:24 +0000 (00:26 +0000)]
r5528: Expand the invalid-workstation-scheme. Workstation-Names with leading
'@'-sign are expanded on-the-fly as posix-groups of workstations. This
allows optional, more flexible login-control in larger networks.

Guenther

16 years agor5527: Allow own netbios name to be set in smbclient's session setup.
Günther Deschner [Thu, 24 Feb 2005 00:11:42 +0000 (00:11 +0000)]
r5527: Allow own netbios name to be set in smbclient's session setup.

Guenther

16 years agor5525: Add extra case to torture to test this (we currently fail with the wrong
Jeremy Allison [Wed, 23 Feb 2005 23:41:15 +0000 (23:41 +0000)]
r5525: Add extra case to torture to test this (we currently fail with the wrong
error message but we correctly deny the open).
Jeremy.

16 years agor5524: Don't do share mode checks on can_delete if open, the rest of the open
Jeremy Allison [Wed, 23 Feb 2005 23:39:51 +0000 (23:39 +0000)]
r5524: Don't do share mode checks on can_delete if open, the rest of the open
code will do this correctly. More for bug #2201.
Jeremy.

16 years agor5522: Better handling of LDAP over IPC connections that have expired on the
Günther Deschner [Wed, 23 Feb 2005 20:38:29 +0000 (20:38 +0000)]
r5522: Better handling of LDAP over IPC connections that have expired on the
LDAP-Server.

Guenther

16 years agor5521: allow smbclient to follow multiple leveles of dfs referrals (no loop checking...
Gerald Carter [Wed, 23 Feb 2005 20:00:26 +0000 (20:00 +0000)]
r5521: allow smbclient to follow multiple leveles of dfs referrals (no loop checking currently)

16 years agor5520: fix last remaining dfs issues with smbclient.
Gerald Carter [Wed, 23 Feb 2005 19:26:32 +0000 (19:26 +0000)]
r5520: fix last remaining dfs issues with smbclient.

* all the unix extension commands should work
* send the correct TRANS2_FINDFIRST format to 2k to
  get a listing from a msdfs root share (tested against
  smbd as well).
* mkdir, rmdir, etc... all seem ok.

I'm sure bugs will pop up so keep testing.

Last thing I plan on doing is to clean up the horrible
mess with connection management in smbclient and global
variables (so i can move the cli_cm_xx() routines to a
separate file).

16 years agor5519: fix msdfs support for [m]get and [m]put
Gerald Carter [Wed, 23 Feb 2005 18:27:13 +0000 (18:27 +0000)]
r5519: fix msdfs support for [m]get and [m]put

16 years agor5518: Add initial msdfs support to smbclient. Currently I can only
Gerald Carter [Wed, 23 Feb 2005 17:29:28 +0000 (17:29 +0000)]
r5518: Add initial msdfs support to smbclient.  Currently I can only
cd up and down the tree and get directory listings.

Still have to figure out how to get a directory listing on a
2k dfs root.  Also have to work out some issues with relative paths
that cross dfs mount points.

We're protected from the new code paths when connecting to
a non-dfs root share ( the flag from the tcon&X is stored
in the struct cli_state* )

16 years agor5517: code cleanup; rename the sorted_tree to pathtree (used by registry code)
Gerald Carter [Wed, 23 Feb 2005 16:36:44 +0000 (16:36 +0000)]
r5517: code cleanup; rename the sorted_tree to pathtree (used by registry code)
I was going to use this for tracking dfs mounts in smbclient
but found another way.  Still the cleanup is valid so commiting it.
should be minimally disruptive since it is not widely used.

16 years agor5513: Fix for bug #2201 - use same logic with "delete readonly"
Jeremy Allison [Wed, 23 Feb 2005 02:20:54 +0000 (02:20 +0000)]
r5513: Fix for bug #2201 - use same logic with "delete readonly"
when setting the delete on close flag as we do in SMBunlink
calls.
Jeremy.

16 years agor5511: Fix pipe-mismatch for NETDFS.
Günther Deschner [Tue, 22 Feb 2005 23:55:31 +0000 (23:55 +0000)]
r5511: Fix pipe-mismatch for NETDFS.

Guenther

16 years agor5510: Optimisation to only do can_delete check if client asks for FILE_SHARE_DELETE.
Jeremy Allison [Tue, 22 Feb 2005 20:55:48 +0000 (20:55 +0000)]
r5510: Optimisation to only do can_delete check if client asks for FILE_SHARE_DELETE.
Not completely correct but will catch the XP SP2 problem.
Jeremy.

16 years agor5508: Typo - ZERO_STRUCT -> ZERO_STRUCTP.
Jeremy Allison [Tue, 22 Feb 2005 20:54:06 +0000 (20:54 +0000)]
r5508: Typo - ZERO_STRUCT -> ZERO_STRUCTP.
Jeremy.

16 years agor5497: Fix for DIR1 failures in build farm. It struck me that we
Jeremy Allison [Tue, 22 Feb 2005 05:11:37 +0000 (05:11 +0000)]
r5497: Fix for DIR1 failures in build farm. It struck me that we
only care about failing with ACCESS_DENIED if we can't delete
with DELETE access requested. All other errors will be processed
as normal.
Jeremy.

16 years agor5495: * add in some code from Mike Nix <mnix@wanm.com.au> for the SMBsplopen
Gerald Carter [Tue, 22 Feb 2005 03:31:22 +0000 (03:31 +0000)]
r5495: * add in some code from Mike Nix <mnix@wanm.com.au> for the SMBsplopen
  and SMBsplclose commands (BUG 2010)
* clarify some debug messages in smbspool (also from Mike)

my changes:

* start adding msdfs client routines
* enable smbclient to maintain multiple connections
* set the CAP_DFS flag for our internal clienht routines.

I actualy have a dfs referral working in do_cd() but that code
is too ugly to live so I'm not checking it in just yet.
Further work is to merge with vl's changes in trunk to support multiple
TIDs per cli_state *.

16 years agor5484: Fix a memleak
Volker Lendecke [Mon, 21 Feb 2005 11:21:11 +0000 (11:21 +0000)]
r5484: Fix a memleak

16 years agor5481: Fix a memleak
Volker Lendecke [Mon, 21 Feb 2005 11:11:13 +0000 (11:11 +0000)]
r5481: Fix a memleak

16 years agor5471: In cli_samr_lookup_rids, flags is not a flags but an array size. W2k3 rejects
Volker Lendecke [Sun, 20 Feb 2005 15:15:33 +0000 (15:15 +0000)]
r5471: In cli_samr_lookup_rids, flags is not a flags but an array size. W2k3 rejects
everything but 1000 here, so there's no point in exposing that to the caller.

Thanks,

Volker

16 years agor5469: Fix error codes of samr_lookup_rids: There's also STATUS_SOME_UNMAPPED.
Volker Lendecke [Sun, 20 Feb 2005 14:26:58 +0000 (14:26 +0000)]
r5469: Fix error codes of samr_lookup_rids: There's also STATUS_SOME_UNMAPPED.

Thanks,

Volker

16 years agor5467: Optimize _samr_query_groupmem with LDAP backend for large domains.
Volker Lendecke [Sun, 20 Feb 2005 13:47:16 +0000 (13:47 +0000)]
r5467: Optimize _samr_query_groupmem with LDAP backend for large domains.

Could someone else please look at this patch, verifying that I did not break
the ldapsam:trusted = False fallback to the old behaviour? It works fine for
me, but you never know. You're certainly free to review the new code as well :-)

Thanks,

Volker

16 years agor5462: BUG 1549: patch from SATOH Fumiyasu <fumiya@samba.gr.jp> to fix trunction...
Gerald Carter [Sat, 19 Feb 2005 16:40:19 +0000 (16:40 +0000)]
r5462: BUG 1549: patch from SATOH Fumiyasu <fumiya@samba.gr.jp> to fix trunction of service names

16 years agor5460: Fix "restrict anonymous = 1". If we have schannel connection, we must be
Jim McDonough [Sat, 19 Feb 2005 11:09:52 +0000 (11:09 +0000)]
r5460: Fix "restrict anonymous = 1".  If we have schannel connection, we must be
validated with a user, so allow it even if pipe itself had an anonymous
connection.

16 years agor5458: Generate a sane response to exceeding lookupsids limit. Truncate list to...
Jim McDonough [Sat, 19 Feb 2005 10:56:40 +0000 (10:56 +0000)]
r5458: Generate a sane response to exceeding lookupsids limit.  Truncate list to zero
and return NT_STATUS_NONE_MAPPED.  This does not crash windows and maintains
the benefit of not overallocating memory.  The previous response of
truncating to the MAX limit was not useful because it crashed lsass.exe on
windows (bug opened with MS), and it was also misleading the client to
believe that a complete answer was received.

16 years agor5456: Increase limit of mapped SIDS to 0x5000, which is what 2k and later do.
Jim McDonough [Sat, 19 Feb 2005 10:41:51 +0000 (10:41 +0000)]
r5456: Increase limit of mapped SIDS to 0x5000, which is what 2k and later do.
NT has no limit.  We still don't respond the way 2k would to requests
larger, which is to actually allocate the memory and send back the entire
response, plus a return status of NT_STATUS_NONE_MAPPED.  Still looking
into ways of doing this without crashing windows.

16 years agor5455: Remove bogus DEBUG messages (dump for a failure to parse NTLMSSP,
Andrew Bartlett [Sat, 19 Feb 2005 09:27:06 +0000 (09:27 +0000)]
r5455: Remove bogus DEBUG messages (dump for a failure to parse NTLMSSP,
before trying the alternate format).

This only caused confusion and bug reports...

Andrew Bartlett

16 years agor5444: Add adssearch.pl utility (on volkers request).
Günther Deschner [Fri, 18 Feb 2005 16:43:20 +0000 (16:43 +0000)]
r5444: Add adssearch.pl utility (on volkers request).

Added to samba3 due to some header and machine-account dependencies,
although it's possibly of more interest to samba4 developers.

adssearch.pl is a kind of ldapsearch + dump-filters for various
ADS-attributes. It can also register asynchronous change notifications.

./adssearch.pl -h w2k3host -D administrator@MY.REALM.NET -x -w mypass -n

and *any* change in your entire DIT will show up immediately (after a
second change of an object even as object diff). It's very interesting
to see the interaction of GPOs, the various steps of account
modification with dsa.msc, etc.

Gracefully ignore some parts of adssearch.pl that are rather immature...

Guenther

16 years agor5436: small merges from trunk
Gerald Carter [Thu, 17 Feb 2005 22:46:41 +0000 (22:46 +0000)]
r5436: small merges from trunk

16 years agor5432: compile fixes from Jason Mader <jason@ncac.gwu.edu> -- BUGS 2340
Gerald Carter [Thu, 17 Feb 2005 15:32:19 +0000 (15:32 +0000)]
r5432: compile fixes from Jason Mader <jason@ncac.gwu.edu> -- BUGS 2340

16 years agor5431: couple of cimpile fixes from Jason Mader <jason@ncac.gwu.edu> -- BUGS 2341...
Gerald Carter [Thu, 17 Feb 2005 15:17:16 +0000 (15:17 +0000)]
r5431: couple of cimpile fixes from Jason Mader <jason@ncac.gwu.edu> -- BUGS 2341 & 2342

16 years agor5428: Apply some const. LDAP attribs should now be declared const char *attr[]....
Volker Lendecke [Thu, 17 Feb 2005 14:27:34 +0000 (14:27 +0000)]
r5428: Apply some const. LDAP attribs should now be declared const char *attr[]. This
gives some new warnings in smbldap.c, but a the callers are cleaned up.

Volker

16 years agor5421: Fix a memleak
Volker Lendecke [Wed, 16 Feb 2005 21:31:40 +0000 (21:31 +0000)]
r5421: Fix a memleak

16 years agor5419: Fix some unitialized variable warnings
Volker Lendecke [Wed, 16 Feb 2005 19:51:16 +0000 (19:51 +0000)]
r5419: Fix some unitialized variable warnings