]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
16 years agoFix error code when smbclient puts a file over an existing directory
Volker Lendecke [Fri, 12 Dec 2008 12:47:41 +0000 (13:47 +0100)] 
Fix error code when smbclient puts a file over an existing directory

Windows returns NT_STATUS_FILE_IS_A_DIRECTORY, as does Samba 3.0. 3.2 and
following returned NT_STATUS_INVALID_PARAMETER which is wrong.

Before I converted reply_open_and_X to create_file() we called
open_file_ntcreate directly. Passing through open&X for a filename that exists
as a directory ends up in open_directory after having tried open_file_ntcreate.
Some check in there returns NT_STATUS_INVALID_PARAMETER. With this additional
FILE_NON_DIRECTORY_FILE flag we get the correct error message back from
create_file_unixpath before trying open_directory().

Survives make test, but as this also touches the other open variants I would
like others to review this.

Volker

16 years agoFix the build
Volker Lendecke [Wed, 10 Dec 2008 15:58:40 +0000 (16:58 +0100)] 
Fix the build

Crap, too many trees and no instant, infinitely fast rebuild

Signed-off-by: Michael Adam <obnox@samba.org>
16 years agoAlso search for -lgpfs which is available as GPL in GPFS PTF8 (cherry picked from...
Volker Lendecke [Wed, 10 Dec 2008 17:17:59 +0000 (18:17 +0100)] 
Also search for -lgpfs which is available as GPL in GPFS PTF8 (cherry picked from commit 3c93c96fd0fe362c35fe8127058f94868abc9342)

Signed-off-by: Michael Adam <obnox@samba.org>
16 years agoMake use of smbd_gpfs_get_realfilename_path in unix_convert (cherry picked from commi...
Volker Lendecke [Wed, 10 Dec 2008 11:32:24 +0000 (12:32 +0100)] 
Make use of smbd_gpfs_get_realfilename_path in unix_convert (cherry picked from commit b37684ffcec4ba0beada55d37bcaf4f5e79bcd58)

Signed-off-by: Michael Adam <obnox@samba.org>
16 years agoFix nonempty blank lines in vfs_gpfs.c
Volker Lendecke [Wed, 10 Dec 2008 02:22:04 +0000 (03:22 +0100)] 
Fix nonempty blank lines in vfs_gpfs.c

Signed-off-by: Michael Adam <obnox@samba.org>
16 years agos3:modules/gpfs: Fix nonempty blank lines
Volker Lendecke [Wed, 1 Oct 2008 10:26:55 +0000 (12:26 +0200)] 
s3:modules/gpfs: Fix nonempty blank lines

16 years agoPass the get_real_filename operation through the VFS
Volker Lendecke [Wed, 10 Dec 2008 02:17:19 +0000 (03:17 +0100)] 
Pass the get_real_filename operation through the VFS

This is done to help file systems that can tell us about the real upper/lower
case combination given a case-insensitive file name. The sample I will soon
push is the gpfs module (recent gpfs has a get_real_filename function), others
might have a similar function to help alleviate the 1million files in a single
directory problem.

Jeremy, please comment!

Thanks,

Volker

16 years agoChange get_real_filename() to unix syscall conventions, make it non-static
Volker Lendecke [Wed, 10 Dec 2008 02:03:51 +0000 (03:03 +0100)] 
Change get_real_filename() to unix syscall conventions, make it non-static

It sets errno, so it might as well return 0/-1.

16 years agoApply some const
Volker Lendecke [Tue, 9 Dec 2008 12:50:22 +0000 (13:50 +0100)] 
Apply some const

16 years agoRename "scan_directory" to "get_real_filename"
Volker Lendecke [Tue, 9 Dec 2008 12:40:41 +0000 (13:40 +0100)] 
Rename "scan_directory" to "get_real_filename"

16 years agos3 sesssetup.c: Add missing line break to debug message.
root [Fri, 12 Dec 2008 15:51:34 +0000 (16:51 +0100)] 
s3 sesssetup.c: Add missing line break to debug message.

Karolin

16 years agoWHATSNEW: Prepare WHATSNEW for 3.3.0rc2.
Karolin Seeger [Fri, 12 Dec 2008 15:19:27 +0000 (16:19 +0100)] 
WHATSNEW: Prepare WHATSNEW for 3.3.0rc2.

Karolin

16 years agodocs: Add hint that "socket address" usually don't need to be set.
Karolin Seeger [Fri, 12 Dec 2008 13:30:01 +0000 (14:30 +0100)] 
docs: Add hint that "socket address" usually don't need to be set.

This fixes bug #5950.
Thanks to the Debian Samba package maintainers for reporting!

Karolin
(cherry picked from commit 19beef0dd9354296ae79d32077c58fbacf570c85)
(cherry picked from commit 0d035d36bd3707ccb9f77f0b2730869dc78719d4)

16 years agomount.cifs: allow mounts to ipv6 capable servers
Jeff Layton [Fri, 12 Dec 2008 12:06:07 +0000 (07:06 -0500)] 
mount.cifs: allow mounts to ipv6 capable servers

The current name resolution scheme in mount.cifs is IPv4 only. Expand
it to be protocol-independent. Also take advantage of the fact that
getaddrinfo() returns a list of addresses and have mount.cifs try each
in turn until it hits one that's reachable and allows the socket to
connect.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
16 years agonetapi: fix access bits in netapi.
Günther Deschner [Thu, 23 Oct 2008 23:57:28 +0000 (01:57 +0200)] 
netapi: fix access bits in netapi.

Guenther

16 years agos3-samr-server: remove unused historic code.
Günther Deschner [Thu, 23 Oct 2008 20:26:21 +0000 (22:26 +0200)] 
s3-samr-server: remove unused historic code.

Guenther

16 years agos3-netlogon: kill an fstring in rpc_server.
Günther Deschner [Mon, 27 Oct 2008 17:23:50 +0000 (18:23 +0100)] 
s3-netlogon: kill an fstring in rpc_server.

Guenther

16 years agoRemove unused CLI_DO_RPC macros (This used to be commit f5212c64d23a28fa40a14b45a8d1c...
Volker Lendecke [Tue, 2 Sep 2008 07:44:39 +0000 (09:44 +0200)] 
Remove unused CLI_DO_RPC macros (This used to be commit f5212c64d23a28fa40a14b45a8d1c0181f01a6da)

16 years agos3-passdb: remove unused (now samr.idl) ACCT_NT/LM_PWD_SET flags.
Günther Deschner [Sat, 29 Nov 2008 00:51:38 +0000 (01:51 +0100)] 
s3-passdb: remove unused (now samr.idl) ACCT_NT/LM_PWD_SET flags.

Guenther

16 years agomake installmo.sh executeable.
Günther Deschner [Thu, 11 Dec 2008 22:14:38 +0000 (23:14 +0100)] 
make installmo.sh executeable.

Guenther

16 years agoFix an uninitialized variable warning
Volker Lendecke [Sun, 23 Nov 2008 18:37:36 +0000 (19:37 +0100)] 
Fix an uninitialized variable warning

Andreas Schneider, please check!

16 years agosamr: fix samr_UserInfo21 (order of lm_password_set and nt_password_set).
Günther Deschner [Fri, 28 Nov 2008 23:29:47 +0000 (00:29 +0100)] 
samr: fix samr_UserInfo21 (order of lm_password_set and nt_password_set).

Guenther

16 years agos3-build: re-run make samba3-idl.
Günther Deschner [Wed, 5 Nov 2008 14:10:52 +0000 (15:10 +0100)] 
s3-build: re-run make samba3-idl.

Guenther

16 years agos3-samr-idl: fix samr_ValidatePassword.
Günther Deschner [Wed, 5 Nov 2008 01:02:50 +0000 (02:02 +0100)] 
s3-samr-idl: fix samr_ValidatePassword.

Guenther

16 years agos3-samr-idl: fix samr_QueryUserInfo2.
Günther Deschner [Wed, 5 Nov 2008 01:03:16 +0000 (02:03 +0100)] 
s3-samr-idl: fix samr_QueryUserInfo2.

Guenther

16 years agomessaging: move types to IDL.
Günther Deschner [Thu, 11 Dec 2008 21:55:27 +0000 (22:55 +0100)] 
messaging: move types to IDL.

Guenther
(This used to be commit 6c346d0eb20af5ba9b09f30319420f7c91480da6)

16 years agos3-libnet: fix DEBUG statement in libnet_keytab.
Günther Deschner [Thu, 11 Dec 2008 10:25:45 +0000 (11:25 +0100)] 
s3-libnet: fix DEBUG statement in libnet_keytab.

Guenther

16 years agos3-libnet: fix build warning (missing prototype).
Günther Deschner [Tue, 9 Dec 2008 13:48:10 +0000 (14:48 +0100)] 
s3-libnet: fix build warning (missing prototype).

Guenther

16 years agos3-libnet_samsync: print new line in display output.
Günther Deschner [Tue, 4 Nov 2008 13:34:23 +0000 (14:34 +0100)] 
s3-libnet_samsync: print new line in display output.

Guenther

16 years agos3-samr: avoid code duplication for identical code in _samr_Connect2, 4 and 5.
Günther Deschner [Thu, 11 Dec 2008 21:20:08 +0000 (22:20 +0100)] 
s3-samr: avoid code duplication for identical code in _samr_Connect2, 4 and 5.

Guenther

16 years agoUse strtoul since id types are unsigned
Dan Sledz [Mon, 8 Dec 2008 22:52:14 +0000 (14:52 -0800)] 
Use strtoul since id types are unsigned

16 years agos3-samr: fix rpcclient after idl change.
Günther Deschner [Thu, 11 Dec 2008 18:13:43 +0000 (19:13 +0100)] 
s3-samr: fix rpcclient after idl change.

Guenther

16 years agos3-samr: modify logging in _samr_Connect2 so that it can be called from other calls...
Günther Deschner [Thu, 11 Dec 2008 18:04:24 +0000 (19:04 +0100)] 
s3-samr: modify logging in _samr_Connect2 so that it can be called from other calls as well.

Guenther

16 years agos3-samr: a level 18 password set needs to set the pwdlastset as well.
Günther Deschner [Tue, 9 Dec 2008 11:39:47 +0000 (12:39 +0100)] 
s3-samr: a level 18 password set needs to set the pwdlastset as well.

Guenther

16 years agos3-samr: fix samr_SetUserInfo level 18 server-side.
Günther Deschner [Fri, 5 Dec 2008 15:13:28 +0000 (16:13 +0100)] 
s3-samr: fix samr_SetUserInfo level 18 server-side.

Guenther

16 years agos3-samr: fix SAMR_FIELD_PASSWORD callers.
Günther Deschner [Thu, 4 Dec 2008 17:15:03 +0000 (18:15 +0100)] 
s3-samr: fix SAMR_FIELD_PASSWORD callers.

Guenther

16 years agosamr: make more explicit what SAMR_FIELD_PASSWORD{2} means.
Günther Deschner [Thu, 4 Dec 2008 17:12:45 +0000 (18:12 +0100)] 
samr: make more explicit what SAMR_FIELD_PASSWORD{2} means.

Guenther

16 years agosamr: fill in two unknowns in samr_UserInfo21.
Günther Deschner [Thu, 4 Dec 2008 12:09:38 +0000 (13:09 +0100)] 
samr: fill in two unknowns in samr_UserInfo21.

Guenther

16 years agosamr: fill in two unknowns in samr_DomInfo13.
Günther Deschner [Tue, 2 Dec 2008 22:25:16 +0000 (23:25 +0100)] 
samr: fill in two unknowns in samr_DomInfo13.

Guenther

16 years agos3-samr: fix init_samr_user_info2{1,3,5} callers.
Günther Deschner [Fri, 28 Nov 2008 23:36:23 +0000 (00:36 +0100)] 
s3-samr: fix init_samr_user_info2{1,3,5} callers.

Guenther

16 years agos3-samr: fix samr callers of samr_UserInfo18.
Günther Deschner [Thu, 4 Dec 2008 17:21:10 +0000 (18:21 +0100)] 
s3-samr: fix samr callers of samr_UserInfo18.

Guenther

16 years agos3-build: re-run make samba3-idl.
Günther Deschner [Fri, 28 Nov 2008 23:30:21 +0000 (00:30 +0100)] 
s3-build: re-run make samba3-idl.

Guenther

16 years agosamr: fix samr_UserInfo18, lm/nt pwd mixup.
Günther Deschner [Fri, 5 Dec 2008 11:40:19 +0000 (12:40 +0100)] 
samr: fix samr_UserInfo18, lm/nt pwd mixup.

Guenther

16 years agosamr: fix samr_UserInfo18. It also contains password_expired, thanks metze.
Günther Deschner [Thu, 4 Dec 2008 17:19:29 +0000 (18:19 +0100)] 
samr: fix samr_UserInfo18. It also contains password_expired, thanks metze.

Guenther

16 years agos3-samr: refuse do process UserSetInfo with 0 fields_present.
Günther Deschner [Fri, 28 Nov 2008 23:23:16 +0000 (00:23 +0100)] 
s3-samr: refuse do process UserSetInfo with 0 fields_present.

Guenther

16 years agos3-samr: simplify _samr_QueryUserInfo a lot and fix some few potential memleaks.
Günther Deschner [Tue, 2 Dec 2008 01:08:05 +0000 (02:08 +0100)] 
s3-samr: simplify _samr_QueryUserInfo a lot and fix some few potential memleaks.

Guenther

16 years agos3-samr: fix samr_SetUserInfo{2} level 23.
Günther Deschner [Mon, 1 Dec 2008 23:58:53 +0000 (00:58 +0100)] 
s3-samr: fix samr_SetUserInfo{2} level 23.

Do not just start decoding/setting passwords when fields_present
do not indicate there is a password to be set.

Guenther

16 years agos3-samr: _samr_EnumDomainUsers always returns a sam array (even w/o users).
Günther Deschner [Mon, 1 Dec 2008 23:08:56 +0000 (00:08 +0100)] 
s3-samr: _samr_EnumDomainUsers always returns a sam array (even w/o users).

Guenther

16 years agos3-samr: fix return code for invalid name in _samr_LookupDomain.
Günther Deschner [Thu, 27 Nov 2008 00:22:39 +0000 (01:22 +0100)] 
s3-samr: fix return code for invalid name in _samr_LookupDomain.

Guenther

16 years agos3-samr: avoid enumeration and user creation on builtin domain handle.
Günther Deschner [Thu, 27 Nov 2008 00:21:49 +0000 (01:21 +0100)] 
s3-samr: avoid enumeration and user creation on builtin domain handle.

Guenther

16 years agos3-samr: support samr_CreateUser as well.
Günther Deschner [Tue, 25 Nov 2008 14:51:35 +0000 (15:51 +0100)] 
s3-samr: support samr_CreateUser as well.

Guenther

16 years agos3-samr: support samr_QueryUserInfo2 as well.
Günther Deschner [Tue, 25 Nov 2008 14:50:28 +0000 (15:50 +0100)] 
s3-samr: support samr_QueryUserInfo2 as well.

Guenther

16 years agos3-samr: add support for _samr_QueryUserInfo level 5.
Günther Deschner [Tue, 25 Nov 2008 11:21:37 +0000 (12:21 +0100)] 
s3-samr: add support for _samr_QueryUserInfo level 5.

Guenther

16 years agos3-samr: add init_samr_user_info5.
Günther Deschner [Tue, 25 Nov 2008 11:18:39 +0000 (12:18 +0100)] 
s3-samr: add init_samr_user_info5.

Guenther

16 years agoSamba3-HOWTO: Fix usage of 'net idmap restore'.
Karolin Seeger [Thu, 11 Dec 2008 17:08:29 +0000 (18:08 +0100)] 
Samba3-HOWTO: Fix usage of 'net idmap restore'.

This fixes bug #5883.

Karolin
(cherry picked from commit b4a4e635246b88277b235fa343eda48bd4bb4ce3)

16 years agopackaging(RHEL-CTDB): don't show failure messages in check for ccache
Michael Adam [Mon, 1 Dec 2008 22:19:02 +0000 (23:19 +0100)] 
packaging(RHEL-CTDB): don't show failure messages in check for ccache

by fixing the order of "> /dev/null 2>&1"

Michael
(cherry picked from commit 0e9d5638a7c375b3b18f19f83f97924ab45ad382)

16 years agopackaging(RHEL-CTDB): fix the build when ccache is not found.
Michael Adam [Mon, 1 Dec 2008 22:03:38 +0000 (23:03 +0100)] 
packaging(RHEL-CTDB): fix the build when ccache is not found.

Michael
(cherry picked from commit c98fb34ef933944a96a286d2d276cf2adc99e25e)

16 years agopackaging(RHEL-CTDB): explicitly build the gpfs module
Michael Adam [Mon, 1 Dec 2008 02:05:40 +0000 (03:05 +0100)] 
packaging(RHEL-CTDB): explicitly build the gpfs module

to prevent potetential problems on PTF8 systems where there
is no valid autodetecting configure check yet.

Michael
(cherry picked from commit 37039d345e9a25654bef038f2b8bb4b891cfa6f0)

16 years agopackaging(RHEL-CTDB): use ccache if available
Michael Adam [Mon, 1 Dec 2008 02:07:19 +0000 (03:07 +0100)] 
packaging(RHEL-CTDB): use ccache if available

Michael
(cherry picked from commit 36ca917a63f23126536e786bed845dee48fbf61c)

16 years agopackaging(RHEL-CTDB): adapt configure.rpm to changes to the spec file
Michael Adam [Thu, 18 Sep 2008 03:02:14 +0000 (05:02 +0200)] 
packaging(RHEL-CTDB): adapt configure.rpm to changes to the spec file

Michael
(cherry picked from commit d249a9ca2a1761f20655cbcfe39fbc942547974d)

16 years agopackaging(RHEL-CTDB): move the cifs.upcall manpage to the client package
Michael Adam [Tue, 11 Nov 2008 12:47:37 +0000 (13:47 +0100)] 
packaging(RHEL-CTDB): move the cifs.upcall manpage to the client package

Michael
(cherry picked from commit 16f23eb27467ace9751ef2d1fbb6c4d3a5ae9550)

16 years agopackaging(RHEL-CTDB): add the cifs.upcall binary to the client package.
Michael Adam [Tue, 11 Nov 2008 12:45:40 +0000 (13:45 +0100)] 
packaging(RHEL-CTDB): add the cifs.upcall binary to the client package.

Michael
(cherry picked from commit 1875b373a319ac9494fdc907793e59804c577a4d)

16 years agopackaging(RHEL-CTDB): fix typo in makerpms.sh
Michael Adam [Mon, 15 Sep 2008 14:15:42 +0000 (16:15 +0200)] 
packaging(RHEL-CTDB): fix typo in makerpms.sh

Michael
(cherry picked from commit 5fc5e82d4c2c386894fde95f94992171620c7853)

16 years agopackaging(RHEL-CTDB): refactor creation of spec file from template out
Michael Adam [Fri, 12 Sep 2008 13:50:33 +0000 (15:50 +0200)] 
packaging(RHEL-CTDB): refactor creation of spec file from template out

into new script makespec.sh

Michael
(cherry picked from commit d49a9d1c67e4d98017ce5f7d1351bca1366e1a8d)

16 years agopackaging(RHEL-CTDB): fix installation of pam modules
Michael Adam [Wed, 10 Sep 2008 21:06:28 +0000 (23:06 +0200)] 
packaging(RHEL-CTDB): fix installation of pam modules

use configure parameter to specify the pam modules dir.

Michael

16 years agoMake the LookupRid access check match LookupName until
Jeremy Allison [Thu, 11 Dec 2008 01:04:29 +0000 (17:04 -0800)] 
Make the LookupRid access check match LookupName until
we know the correct bits to use here.
Jeremy.

16 years agoFix usrmgr opening a user object as non-root.
Jeremy Allison [Wed, 10 Dec 2008 23:20:06 +0000 (15:20 -0800)] 
Fix usrmgr opening a user object as non-root.
Jeremy.

16 years agoFix a delete on close divergence from windows [2/2]
Tim Prouty [Sun, 7 Dec 2008 00:08:35 +0000 (16:08 -0800)] 
Fix a delete on close divergence from windows [2/2]

This second patch cleans up by removing all of the code that is made
obsolete by the first patch.  It should cause no functional changes.

16 years agoFix a delete on close divergence from windows [1/2]
Tim Prouty [Sun, 7 Dec 2008 18:30:01 +0000 (10:30 -0800)] 
Fix a delete on close divergence from windows [1/2]

smbtorture4's BASE-DELETE:deltest17 was failing against win2k8,
win2k3, and winXPsp2 but passing against samba.

deltest17 does the following:

1. open file -> file is created
2. closes file
3. open file with DOC -> fnum1
4. check that DOC is not reported as being set from fnum1
5. opens file again Read Only -> fnum2
6. check that DOC is not reported as being set from either file handle
7. close fnum1 (the file handle that requested DOC to be set)
8. check if DOC is reported as being set from fnum2
 * This is where windows and samba begin to diverge.  Windows
   reports that the DOC bit is set, while samba reports that it is not set.
9. close fnum2 (the last remaining open handle for the file)
10.See if the file has been deleted.
 * On samba the file still exists.  On windows the file was deleted.

The way open_file_ntcreate is written now, if an open has the DOC bit
set on the wire, DOC (fsp->initial_delete_on_close) is not set unless:
a. the open creates the file, or b. there is an open file handle with
a share_entry in the struct lck that has the
SHARE_MODE_ALLOW_INITIAL_DELETE_ON_CLOSE bit set (let's call it
SM_AIDOC).

My understanding of SM_AIDOC is that it was added to differentiate
between DOC being set on an open that creates a file vs an open that
opens an existing.  As described in step 8/10 above, it appears that
windows does not make this differentiation.

To resolve this issue there are two patches.  This first patch is a
simple proof of concept change that is sufficient to fix the bug.  It
removes the differentiation in open_file_ntcreate, and updates
deltest17 to allow it to pass against win2k3/xp.  This makes
open_file_ntcreate more closely match the semantics in open_directory
and rename_internals_fsp.  This change also does not break any other
tests in BASE-DELETE or "make test".  Specifically test deltest20b
which verifies the CIFSFS rename DOC semantics still passes :).

16 years agoFix bug #5688 LPQ process is orphaned if socket address parameter is invalid
SATOH Fumiyasu [Tue, 9 Dec 2008 22:25:46 +0000 (14:25 -0800)] 
Fix bug #5688 LPQ process is orphaned if socket address parameter is invalid

16 years agobuild-docs: Change to the right directory before calling 'make clean'.
Karolin Seeger [Tue, 9 Dec 2008 21:08:13 +0000 (22:08 +0100)] 
build-docs: Change to the right directory before calling 'make clean'.
This fixes build-docs if it's called from the create-tarball script.

Karolin
(cherry picked from commit dd3ef73c8c184eaec7ee515ef2130f30f9e481b3)

16 years agos3-ldapsam: Fix Bug 5957: do not abort rename process on valid rename script.
Günther Deschner [Tue, 9 Dec 2008 16:28:15 +0000 (17:28 +0100)] 
s3-ldapsam: Fix Bug 5957: do not abort rename process on valid rename script.

Guenther
(cherry picked from commit 26139344fd0fac4fdd2a6752628b252fbd9b7450)

16 years agoFix bug #5953 - smbclient crashes: cli_list_new segmentation fault.
Jeremy Allison [Mon, 8 Dec 2008 20:23:17 +0000 (12:23 -0800)] 
Fix bug #5953 - smbclient crashes: cli_list_new segmentation fault.
Karolin: must be in 3.3 final. Thanks,
Jeremy.

16 years agoFix logging to syslog
Dan Sledz [Sat, 6 Dec 2008 01:29:38 +0000 (17:29 -0800)] 
Fix logging to syslog

16 years agoFix bug #5928 - Option --version in testparm does not work.
Tomasz Krasuski [Sat, 6 Dec 2008 00:29:55 +0000 (16:29 -0800)] 
Fix bug #5928 - Option --version in testparm does not work.

16 years agoFix lp_socket_address() prototype.
Jeremy Allison [Fri, 5 Dec 2008 22:06:04 +0000 (14:06 -0800)] 
Fix lp_socket_address() prototype.
Jeremy.

16 years agoFix bug #5944 - nmbd does not boot if socket adress = "" is defined in smb.conf
Yasuma Takeda [Fri, 5 Dec 2008 21:37:04 +0000 (13:37 -0800)] 
Fix bug #5944 - nmbd does not boot if socket adress = "" is defined in smb.conf

16 years agoFix for crash bug freeing a non-malloc'ed buffer if the client sends a non-encrypted...
Volker Lendecke [Fri, 5 Dec 2008 21:17:49 +0000 (13:17 -0800)] 
Fix for crash bug freeing a non-malloc'ed buffer if the client sends a non-encrypted packet with the crypto state set.

16 years ago mount.cifs: if mount user not specified use USER environment variable
Steve French [Fri, 5 Dec 2008 14:33:39 +0000 (08:33 -0600)] 
mount.cifs: if mount user not specified use USER environment variable

    smbfs also would use the USER environment variable if the user was not
    specified on the mount command and no credential file specified, and
    mount.cifs man page says that we will use this environment variable
    (in most cases this will not cause a behavior change, because
    we were doing getuid of the current process which will usually be
    the same name).

    Fixes Samba bug #5934

Acked-by: Jeff Layton
16 years agoFix bug #5937 - filenames with "*" char hide other files
Jeremy Allison [Thu, 4 Dec 2008 23:34:09 +0000 (15:34 -0800)] 
Fix bug #5937 - filenames with "*" char hide other files
Jeremy.

16 years agoFix bug #5929 - vfs_prealloc does not build with option --with-cluster-support and...
Henning Henkel [Thu, 4 Dec 2008 21:47:54 +0000 (13:47 -0800)] 
Fix bug #5929 - vfs_prealloc does not build with option --with-cluster-support and GPFS

16 years agoRemove unused var.
Jeremy Allison [Thu, 4 Dec 2008 19:27:59 +0000 (11:27 -0800)] 
Remove unused var.
Jeremy.

16 years agoFix bug #1254 - write list not working under share-level security
Jeremy Allison [Thu, 4 Dec 2008 19:12:01 +0000 (11:12 -0800)] 
Fix bug #1254 - write list not working under share-level security
A somewhat more elegant fix than I could use for 3.2.x or 3.0.x.
Turns out the only part of check_user_ok() that needs to change
for share level security is the VUID cache pieces, so I can just
always use check_user_ok() for all lp_security() cases.
Jeremy

16 years agowinbindd: fix horrible mis-indentation of toplvl braces in getgrsid_sid2gid_r
Michael Adam [Thu, 4 Dec 2008 13:04:33 +0000 (14:04 +0100)] 
winbindd: fix horrible mis-indentation of toplvl braces in getgrsid_sid2gid_r

to make code more readable

Michael

16 years agowinbindd: don't open a new dc connection in winbindd_getpwnam (main winbindd)
Michael Adam [Wed, 3 Dec 2008 15:38:55 +0000 (16:38 +0100)] 
winbindd: don't open a new dc connection in winbindd_getpwnam (main winbindd)

This is just to find the corresponding domain struct.
Actual connection is handled by the domain child.

Michael

16 years agowinbindd: don't open a new dc connection in winbindd_getgrnam (main winbindd)
Michael Adam [Wed, 3 Dec 2008 14:59:17 +0000 (15:59 +0100)] 
winbindd: don't open a new dc connection in winbindd_getgrnam (main winbindd)

This is just to find the corresponding domain struct.
Actual connection is handled by the domain child.

Michael

16 years agos3:net: fix password set of 'net rpc trustdom add'
Stefan Metzmacher [Thu, 4 Dec 2008 11:26:03 +0000 (12:26 +0100)] 
s3:net: fix password set of 'net rpc trustdom add'

metze
(cherry-picked from commit 2b8f3e253d3a56aac996287f5ce265d0c915b3c8)

16 years agoChange sockaddr util function names for consistency and to eliminate name conflicts
Tim Prouty [Wed, 3 Dec 2008 18:37:03 +0000 (10:37 -0800)] 
Change sockaddr util function names for consistency and to eliminate name conflicts

16 years agolibwbclient: avoid usage talloc_init() in library code
Stefan Metzmacher [Wed, 3 Dec 2008 08:07:00 +0000 (09:07 +0100)] 
libwbclient: avoid usage talloc_init() in library code

talloc_init() is a compat function for the old samba3
non-hierachical talloc implementation. It enables
the talloc null tracking which should never be done
by library code.

metze
(cherry picked from commit afa0d6b0b14e0ef2293bd8468ffc1d6330abdb5b)

16 years agoconfigure.in: Fix smbtorture_s3 tests.
Kai Blin [Wed, 3 Dec 2008 00:08:49 +0000 (16:08 -0800)] 
configure.in: Fix smbtorture_s3 tests.

Seems like Jeremy forgot to fix configure.in when importing d448132 to master
in 8d674e35. Generate the vfs_streams_depot module so make test works again.

16 years agodocs: Add default value for "writeable" to man smb.conf.
Karolin Seeger [Tue, 2 Dec 2008 19:50:02 +0000 (20:50 +0100)] 
docs: Add default value for "writeable" to man smb.conf.

Karolin
(cherry picked from commit c09e04ac83365333605b7b1db3d07ccfd451a667)

16 years agoImplement type multi_sz for "net registry setvalue"
Volker Lendecke [Tue, 2 Dec 2008 12:27:50 +0000 (13:27 +0100)] 
Implement type multi_sz for "net registry setvalue"

16 years agos3-net: allow to list a keytab generated using net rpc vampire.
Günther Deschner [Tue, 2 Dec 2008 11:57:02 +0000 (12:57 +0100)] 
s3-net: allow to list a keytab generated using net rpc vampire.

Guenther
(cherry picked from commit c554080dd988791ec2db37c96ff7cc709b0ee6ab)

16 years agos3: Fix 'ctx' might be used unitialized warnings
Tim Prouty [Tue, 2 Dec 2008 05:56:59 +0000 (21:56 -0800)] 
s3: Fix 'ctx' might be used unitialized warnings

16 years agos3:selftest: test the streams_depot module as it passes make test
Stefan Metzmacher [Mon, 1 Dec 2008 22:37:40 +0000 (14:37 -0800)] 
s3:selftest: test the streams_depot module as it passes make test

The streams_xattr module only passes sometimes on my laptop.

metze

16 years agos3:smbd: close the low level fd of the base_fsp, if the file was created
Stefan Metzmacher [Mon, 1 Dec 2008 22:28:41 +0000 (14:28 -0800)] 
s3:smbd: close the low level fd of the base_fsp, if the file was created

metze

16 years agos3:streams_xattr: fstat should do a stat on the base file
Stefan Metzmacher [Mon, 1 Dec 2008 22:27:15 +0000 (14:27 -0800)] 
s3:streams_xattr: fstat should do a stat on the base file

The behavior of stat and fstat should be the same.

metze

16 years agos3:streams_xattr: recheck fsp->fsp_name after a rename
Stefan Metzmacher [Mon, 1 Dec 2008 22:25:39 +0000 (14:25 -0800)] 
s3:streams_xattr: recheck fsp->fsp_name after a rename

metze

16 years agos3:smbd: give the correct error when trying to replace a stream
Stefan Metzmacher [Mon, 1 Dec 2008 22:23:53 +0000 (14:23 -0800)] 
s3:smbd: give the correct error when trying to replace a stream

metze

16 years agos3:vfs: fix FCHMOD_ACL macros
Stefan Metzmacher [Mon, 1 Dec 2008 22:22:10 +0000 (14:22 -0800)] 
s3:vfs: fix FCHMOD_ACL macros

metze