jra/samba/.git
15 years agoWHATSNEW: Prepare WHATSNEW for 3.2.7. origin/v3-2-stable release-3-2-7
Karolin Seeger [Fri, 19 Dec 2008 13:57:33 +0000 (14:57 +0100)]
WHATSNEW: Prepare WHATSNEW for 3.2.7.

Karolin

15 years agoVERSION: Raise version number up to 3.2.7.
Karolin Seeger [Fri, 19 Dec 2008 13:45:36 +0000 (14:45 +0100)]
VERSION: Raise version number up to 3.2.7.

Karolin

15 years agosmbd: prevent access to root filesystem when connecting with empty service name
Michael Adam [Thu, 18 Dec 2008 17:01:55 +0000 (18:01 +0100)]
smbd: prevent access to root filesystem when connecting with empty service name

This only applies to a setup with "registry shares = yes"

Michael

15 years agoRevert "Samba3-HOWTO: Fix usage of 'net idmap restore'."
Karolin Seeger [Fri, 19 Dec 2008 07:29:03 +0000 (08:29 +0100)]
Revert "Samba3-HOWTO: Fix usage of 'net idmap restore'."

This reverts commit e4ae4becbe5ea1454d15f0fb2d6cd4fe7e8edfd7.

15 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)
(cherry picked from commit 5744177740120524740db884564142df19358ae7)
(cherry picked from commit 7584fe4e8bcbaf73f509d6981a70ff9dde92db1c)
(cherry picked from commit fda3f00246c3ecb664d2bf387ecd0e28dec16e34)

15 years agos3-libnetjoin: Fix bug #5749. Re-set acctflags while joining. fix from metze. release-3-2-6
Günther Deschner [Fri, 28 Nov 2008 23:12:26 +0000 (00:12 +0100)]
s3-libnetjoin: Fix bug #5749. Re-set acctflags while joining. fix from metze.

Guenther
(cherry picked from commit bc3a277455dd4557e796ddc0bef0f52a11f889e7)
(cherry picked from commit a6a8025d48e63a8bcb1fb03efa8ab85e415f8a38)

15 years agos3-libnetjoin: remove unused md4_trust_password, found by metze.
Günther Deschner [Fri, 28 Nov 2008 23:10:18 +0000 (00:10 +0100)]
s3-libnetjoin: remove unused md4_trust_password, found by metze.

Guenther
(cherry picked from commit f479fdc29813c3452fd22c4a2780f0bc5066e664)
(cherry picked from commit a4164a55b5b20ae347a22810405c738f868d8493)

15 years agos3-samr: add init_samr_user_info25 and init_samr_user_info26.
Günther Deschner [Fri, 28 Nov 2008 10:15:29 +0000 (11:15 +0100)]
s3-samr: add init_samr_user_info25 and init_samr_user_info26.

Guenther
(cherry picked from commit b51eaa4a4da0dfc46919e9a544b3d26569a1495c)

15 years agos3-samr: fix init_samr_user_info{23,24} callers.
Günther Deschner [Mon, 24 Nov 2008 17:49:37 +0000 (18:49 +0100)]
s3-samr: fix init_samr_user_info{23,24} callers.

Guenther
(cherry picked from commit 948a2e5d38b5d69e3c65e81d0b0fd750410bc066)

15 years agorpc_client: use init_samr_CryptPassword(Ex) in client tools.
Günther Deschner [Wed, 30 Jul 2008 17:52:56 +0000 (19:52 +0200)]
rpc_client: use init_samr_CryptPassword(Ex) in client tools.

Guenther
(cherry picked from commit 97f7f9f21f17e8414de15953cf4eaa9959dc6f75)
(cherry picked from commit 458e85603673e04577fc493528c870c3d5ec6b54)

15 years agorpc_client: add init_samr_CryptPasswordEx and init_samr_CryptPassword.
Günther Deschner [Fri, 18 Jul 2008 18:42:55 +0000 (20:42 +0200)]
rpc_client: add init_samr_CryptPasswordEx and init_samr_CryptPassword.

Guenther
(cherry picked from commit 599155842583781736933ef340e37fd5c87f88ca)

15 years agos3: merge german pam_winbind message translations from master.
Günther Deschner [Tue, 18 Nov 2008 16:06:53 +0000 (17:06 +0100)]
s3: merge german pam_winbind message translations from 

Guenther
(cherry picked from commit aa0ef2f97d98e7ca80636a4dc8093d2034d0dbf1)
(cherry picked from commit 1ac0175bb13ce34fbb2deaa880a4021625b259be)

15 years agos3-build: re-run make samba3-idl.
Günther Deschner [Mon, 24 Nov 2008 15:32:18 +0000 (16:32 +0100)]
s3-build: re-run make samba3-idl.

Guenther
(cherry picked from commit c28e83417dc67083b06fb060f5382ceb082bbdcd)
(cherry picked from commit bfd02c2d2391a5c4faea4f7c1c1fb22d527218a3)

15 years agosamr: fix samr_UserInfo24 and samr_UserInfo26.
Günther Deschner [Mon, 24 Nov 2008 15:31:49 +0000 (16:31 +0100)]
samr: fix samr_UserInfo24 and samr_UserInfo26.

Guenther
(cherry picked from commit 0315308cbc724bbf54b7767b4af307217833f541)
(cherry picked from commit 16a4f8f7dc59c6b586259b2d5daf1b23d25b2d7f)

15 years agoWHATSNEW: Update changes.
Karolin Seeger [Wed, 10 Dec 2008 08:28:49 +0000 (09:28 +0100)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit 760de2d48940ed88aca1fa459e4af455b541940c)

15 years agoFix bug #5688 LPQ process is orphaned if socket address parameter is invalid
SATOH Fumiyasu [Tue, 9 Dec 2008 22:26:39 +0000 (14:26 -0800)]
Fix bug #5688 LPQ process is orphaned if socket address parameter is invalid
Karolin please pull for 3-2-stable.
Jeremy
(cherry picked from commit 5dfccee083490eea8230a5965cb52b01ddf5041e)

15 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)

15 years agobuild-docs: Use 'git clean' instead of 'git-clean'.
Karolin Seeger [Wed, 19 Nov 2008 12:16:38 +0000 (13:16 +0100)]
build-docs: Use 'git clean' instead of 'git-clean'.

Karolin
(cherry picked from commit 12e72140b944f844e7f44f21a087ab4a4ecc51a7)
(cherry picked from commit ab02316ced8b0dc0d577960d1bab02d239313ef5)

15 years agoWHATSNEW: Update changes.
Karolin Seeger [Tue, 9 Dec 2008 16:39:03 +0000 (17:39 +0100)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit f73ecfaa7942bf01720f330b99cce3305ea6859c)

15 years agoWHATSNEW: Fix entry.
Karolin Seeger [Tue, 9 Dec 2008 16:35:49 +0000 (17:35 +0100)]
WHATSNEW: Fix entry.

Karolin
(cherry picked from commit d700767e11f413c9386876e73462f701cf7e447f)

15 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)

15 years agoVERSION: Raise version number up to 3.2.6.
Karolin Seeger [Tue, 9 Dec 2008 16:18:35 +0000 (17:18 +0100)]
VERSION: Raise version number up to 3.2.6.

Karolin
(cherry picked from commit fc4819ab176552f1ca0d78ddc91a62666c1fdf71)

15 years agoWHATSNEW: Update changes for 3.2.6.
Karolin Seeger [Tue, 9 Dec 2008 16:17:50 +0000 (17:17 +0100)]
WHATSNEW: Update changes for 3.2.6.

Karolin
(cherry picked from commit c13ffd858ab873771f073a36c4d7e3159e71cc93)

15 years agoFix bug #5953 - smbclient crashes: cli_list_new segmentation fault.
Jeremy Allison [Mon, 8 Dec 2008 22:02:59 +0000 (14:02 -0800)]
Fix bug #5953 - smbclient crashes: cli_list_new segmentation fault.
Karolin: must be in 3.2-stable. Thanks,
Jeremy.
(cherry picked from commit 00af69227dbdd6dfd3776b5cb52f479c9c85b697)

15 years agoFix logging to syslog
Dan Sledz [Sat, 6 Dec 2008 01:29:38 +0000 (17:29 -0800)]
Fix logging to syslog
(cherry picked from commit 66c08857fbf78a24e7770e1d1bf8938bb938b271)

15 years agoFix bug #5928 - Option --version in testparm does not work.
Tomasz Krasuski [Sat, 6 Dec 2008 00:30:55 +0000 (16:30 -0800)]
Fix bug #5928 - Option --version in testparm does not work.
(cherry picked from commit 635373512634a05d65b009e4ec3669a227b2b94d)

15 years agoFix bug #5944 - nmbd does not boot if socket adress = "" is defined in smb.conf
Yasuma Takeda [Fri, 5 Dec 2008 21:38:06 +0000 (13:38 -0800)]
Fix bug #5944 - nmbd does not boot if socket adress = "" is defined in smb.conf
(cherry picked from commit 0e3d643712ed315bacc91db56985358e20ce9913)

15 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:21:19 +0000 (13:21 -0800)]
Fix for crash bug freeing a non-malloc'ed buffer if the client sends a non-encrypted packet with the crypto state set.
(cherry picked from commit c2012ac787c05361c7fa9589bec4f7e5c6482a28)

15 years agoFix bug #5937 - filenames with "*" char hide other files
Jeremy Allison [Thu, 4 Dec 2008 23:33:27 +0000 (15:33 -0800)]
Fix bug #5937 - filenames with "*" char hide other files
Jeremy.
(cherry picked from commit 601c7eabfdb3d2725849669dda58de6db22d9b8f)

15 years agoFix bug #5929 - vfs_prealloc does not build with option --with-cluster-support and...
Henning Henkel [Thu, 4 Dec 2008 21:43:59 +0000 (13:43 -0800)]
Fix bug #5929 - vfs_prealloc does not build with option --with-cluster-support and GPFS
(cherry picked from commit a1e4637922a565278cceac7b2fe95f82ad049f4a)

15 years agoFix bug #1254 - write list not working under share-level security
Jeremy Allison [Thu, 4 Dec 2008 18:23:06 +0000 (10:23 -0800)]
Fix bug #1254 - write list not working under share-level security
Jeremy.
(cherry picked from commit d2b7d9d29feab263bf736a88e5819203cbc8a165)

15 years agowinbindd: fix more horrible brace mis-indentations in winbindd_group
Michael Adam [Thu, 4 Dec 2008 14:01:46 +0000 (15:01 +0100)]
winbindd: fix more horrible brace mis-indentations in winbindd_group

Sorry, but I can't bear this.

And while my vim is smart enough to cope with this,
it confuses _me_, and I have seen an emacs confused as well.
(Which comes as no surprise, almost human as it is...)

Michael
(cherry picked from commit addbddf90a4935f7fda8ed4acbf5a4574d7fc92b)

15 years agowinbindd: fix more misindentations of top level braces in winbindd_group
Michael Adam [Thu, 4 Dec 2008 13:30:52 +0000 (14:30 +0100)]
winbindd: fix more misindentations of top level braces in winbindd_group

Michael
(cherry picked from commit 21dedb62d866bb0a2ae808c8d5a411c7f0fb8604)

15 years agowinbindd: fix horrible mis-indentation of toplvl braces in getgrsid_sid2gid_recv
Michael Adam [Thu, 4 Dec 2008 13:29:01 +0000 (14:29 +0100)]
winbindd: fix horrible mis-indentation of toplvl braces in getgrsid_sid2gid_recv

to make code more readable

Michael
(cherry picked from commit 2deb1272ef7d3edd910988e696f5556bcfcdbe1f)

15 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
(cherry picked from commit 284b3e50435d4450008031e00b7290a1970a0cc4)

15 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
(cherry picked from commit b8e94c56a68cb3525682e24de6078608a1146240)

15 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)
(cherry picked from commit e1e76f19cf9c72abe4086965846b2d438cfbdd00)
(cherry picked from commit 05fbd5f87cb39cffe0acc5c3132e13f2d471edf2)

15 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
(cherry picked from commit 10dd8a54ea7ea2cf86de5e20a62912298e0c4acc)

15 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)
(cherry picked from commit 37a92ed0eb2c8cf7f3eac1d90ba5300cbce45186)
(cherry picked from commit f84cbb18a018d4c28fb98f00a38a7b7df48768c0)

15 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)
(cherry picked from commit 70c581586ea02fbff4c5dde0ec002b22d472dfc5)
(cherry picked from commit 1ba197a3054c6d997ceca6f124039d3cabf00289)

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

The streams_xattr module only passes sometimes on my laptop.

metze
(cherry picked from commit 23473f3f000309ae8fa1481b4ccc97e5ee0adca1)

15 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:13 +0000 (14:28 -0800)]
s3:smbd: close the low level fd of the base_fsp, if the file was created

metze
(cherry picked from commit 34bd33631ba561cc9fb8fccf533cc3ae21cb670e)

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

The behavior of stat and fstat should be the same.

metze
(cherry picked from commit 84e8fcd6703d57678c1ac7e5df67c03a626c0e6f)

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

metze
(cherry picked from commit 67788371cef51009295d1f85daf7f0328225f1f9)

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

metze
(cherry picked from commit c8b021ee740e67973b1d37eceadf7bab6c413cdd)

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

metze
(cherry picked from commit 144cccebe51d726507a299880ea9a21540f44e44)

15 years agos3:streams_depot: add an option to disable the xattr checks
Stefan Metzmacher [Mon, 1 Dec 2008 22:19:55 +0000 (14:19 -0800)]
s3:streams_depot: add an option to disable the xattr checks

streams_depot:check_valid=no is useful when the filesystem
has no xattr support and files are only published via samba.

metze
(cherry picked from commit f68f2b1f841daabebc7178e7d90891cfe4be6cf4)

15 years agos3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the default...
Stefan Metzmacher [Mon, 1 Dec 2008 22:11:17 +0000 (14:11 -0800)]
s3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the default value

metze
(cherry picked from commit f609404489a37b80e2f7f10d0de7633766d159a9)

15 years agos3:streams_depot: add support for stream renames
Stefan Metzmacher [Mon, 1 Dec 2008 22:09:45 +0000 (14:09 -0800)]
s3:streams_depot: add support for stream renames

metze
(cherry picked from commit 2babe18de37e1cf283a0a29e2df0b0f74744cea2)

15 years agos3:streams_depot: map 'file::$DATA' to just 'file'
Stefan Metzmacher [Mon, 1 Dec 2008 21:58:14 +0000 (13:58 -0800)]
s3:streams_depot: map 'file::$DATA' to just 'file'

metze
(cherry picked from commit 254ab3e074d51ad390aacd5a64e8c9e4f752dd7d)

15 years agos3:streams_xattr: add support for renaming streams
Stefan Metzmacher [Mon, 1 Dec 2008 21:54:19 +0000 (13:54 -0800)]
s3:streams_xattr: add support for renaming streams

metze
(cherry picked from commit 8a60128ff7960f2f19055f8e320d1d58fd87c84f)

15 years agos3:smbd: only try and fallback to open a directory if it's not a stream open
Stefan Metzmacher [Mon, 1 Dec 2008 21:51:59 +0000 (13:51 -0800)]
s3:smbd: only try and fallback to open a directory if it's not a stream open

metze
(cherry picked from commit b095db2f9db084798a8e6d2bc44a6215f4038658)

15 years agos3:smbd: write times should be set on the base file instead of the stream name
Stefan Metzmacher [Mon, 1 Dec 2008 21:44:43 +0000 (13:44 -0800)]
s3:smbd: write times should be set on the base file instead of the stream name

metze
(cherry picked from commit 8cb8ab81678e8fee570f228c3851c384abf54054)

15 years agos3:smbd: return DELETE_PENDING on path based operations on streams, when the main...
Stefan Metzmacher [Mon, 1 Dec 2008 21:34:38 +0000 (13:34 -0800)]
s3:smbd: return DELETE_PENDING on path based operations on streams, when the main file was deleted.

metze
(cherry picked from commit 0ed6d1f02a82c6f5e32a4941f153b601a5256921)

15 years agos3:smbd: construct the correct newname for stream renames
Stefan Metzmacher [Mon, 1 Dec 2008 21:31:06 +0000 (13:31 -0800)]
s3:smbd: construct the correct newname for stream renames

The Windows Explorer creates temporary streams and renames
them later via SFILEINFO_RENAME_INFO. The newname comes
in as ":Stream:$DATA".

metze
(cherry picked from commit 9859f7bcd5a36bab4b86f7c1f7efe6e21614a18e)

15 years agos3:smbd: wildcard characters are allowed in stream names
Stefan Metzmacher [Mon, 1 Dec 2008 21:27:30 +0000 (13:27 -0800)]
s3:smbd: wildcard characters are allowed in stream names

We only check the filename of the basefile now.

metze
(cherry picked from commit 1ad249d10bc4a9ed61c1f712e6ccc35e6ec7ba06)

15 years agos3:smbd: correctly verify stream names to pass RAW-STREAMS
Stefan Metzmacher [Mon, 1 Dec 2008 21:20:56 +0000 (13:20 -0800)]
s3:smbd: correctly verify stream names to pass RAW-STREAMS

metze
(cherry picked from commit 3a5d85ca7ca54f7ab5e742c6026b528fcc94bae5)

15 years agos3:smbd: '|' isn't allowed in windows filenames
Stefan Metzmacher [Mon, 1 Dec 2008 20:59:25 +0000 (12:59 -0800)]
s3:smbd: '|' isn't allowed in windows filenames

metze
(cherry picked from commit 7d86c371f4613287e5e7461db37ee5db86c2a5aa)

15 years agoFix a debug message, append the correct \n
Volker Lendecke [Mon, 1 Dec 2008 16:35:19 +0000 (17:35 +0100)]
Fix a debug message, append the correct \n
(cherry picked from commit 263c1ca96bd68dced4577a2504073e1140fa26a1)
(cherry picked from commit 0f2e2451a5d7eac917d8a874032c2366dd8aaa12)

15 years agovfs_tsmsm: fix potential segfault (freeing uninitialized buffer)
Michael Adam [Mon, 1 Dec 2008 05:17:43 +0000 (06:17 +0100)]
vfs_tsmsm: fix potential segfault (freeing uninitialized buffer)

Michael
(cherry picked from commit 75646900fc9327a1ff3353be4a4e52a429055a91)

15 years agoFix circular dependency error with autoconf 2.6.3.
Andreas Schneider [Wed, 26 Nov 2008 21:19:03 +0000 (13:19 -0800)]
Fix circular dependency error with autoconf 2.6.3.

Signed-off-by: Andreas Schneider <anschneider@suse.de>
(cherry picked from commit ca172884bb9f64980d46d3e2cecd6189075cc983)

15 years agoFix bug #5914 - Build failure: redefinition of struct name_list
Jeremy Allison [Tue, 25 Nov 2008 23:55:46 +0000 (15:55 -0800)]
Fix bug #5914 - Build failure: redefinition of struct name_list
Jeremy.
(cherry picked from commit 57e2769b34f3e156af734304e0c342a8cd1821e2)

15 years agos3-samr: fix _samr_LookupNames return code.
Günther Deschner [Tue, 25 Nov 2008 11:19:35 +0000 (12:19 +0100)]
s3-samr: fix _samr_LookupNames return code.

Guenther
(cherry picked from commit dc7c2d63b3ce142959aa863f000fa9140de99eb0)
(cherry picked from commit e03d5d41184374f89d780725468227d546288be3)

15 years agozfsacl: return is not a function.
Michael Adam [Tue, 25 Nov 2008 14:23:31 +0000 (15:23 +0100)]
zfsacl: return is not a function.

Michael
(cherry picked from commit 6017b3095b0eb0e5b855d5bf693c99645ff229b1)

15 years agozfsacl: Prevent calling POSIX ACL vfs methods on zfs share.
Nils Goroll [Mon, 17 Nov 2008 00:06:28 +0000 (01:06 +0100)]
zfsacl: Prevent calling POSIX ACL vfs methods on zfs share.

This is a proposed fix for Bugs #5135 and #5446.

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 4b64ef5ea9554992eddba85a203cbe9397f8e839)

15 years ago[PATCH] Allow SYSLOG_FACILITY to be modified with a new configure option called ...
Dan Sledz [Mon, 17 Nov 2008 01:40:03 +0000 (17:40 -0800)]
[PATCH] Allow SYSLOG_FACILITY to be modified with a new configure option called --with-syslog-facility
(cherry picked from commit 372967099ed032832cbc5aa107eeb92949b3c139)

15 years agoFix bug #5873 - ACL inheritance cannot be broken. This regresses #4308, but that...
Jeremy Allison [Mon, 24 Nov 2008 23:29:17 +0000 (15:29 -0800)]
Fix bug #5873 - ACL inheritance cannot be broken. This regresses #4308, but that will have to
be fixed another way.
Jeremy.
(cherry picked from commit dbc9acf637397766fa663358424af5342c628d5e)

15 years agoSearch for gpfs functions in both libgpfs_gpl.so an libgpfs.so
Mathias Dietz [Wed, 12 Nov 2008 13:32:45 +0000 (14:32 +0100)]
Search for gpfs functions in both libgpfs_gpl.so an libgpfs.so

As of GPFS 3.2.1 PTF8 libgpfs will be available as GPL, so we don't need the
special libgpfs_gpl lib anymore. For backwards compatibility with pre-PTF8 GPFS
installations, still look there.
(cherry picked from commit 61468186cece7370576a2d13992f9a523067e4be)

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 93dd57627795b92b3d3f723a105271aead395dd1)

15 years agolibads/ldap.c: return an error instead of crashing when no realm is given
Stefan Metzmacher [Mon, 24 Nov 2008 14:07:56 +0000 (15:07 +0100)]
libads/ldap.c: return an error instead of crashing when no realm is given

The bug was triggered by "net ads info -S 127.8.7.6" (where 127.8.7.6 doesn't exist)
and "disable netbios = yes".

metze

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit e2a60d2e1fd7455f08e73f8d1c513ca240c0f0af)
(cherry picked from commit 8fc213fcd4c5a6ddaa0d44965bcd0ca1afbbbc84)

15 years agoRevert c76e4791d3ae4f180fba209c29bd3774c00858cf - "Fix the logic bug that caused...
Jeremy Allison [Sat, 22 Nov 2008 06:44:23 +0000 (22:44 -0800)]
Revert c76e4791d3ae4f180fba209c29bd3774c00858cf - "Fix the logic bug that caused us to run into kernel oplocks on an open for a stream inside a file with stream_xattr module. On opening the base_fsp we must break existing oplocks." as it broke make test.
Jeremy.
(cherry picked from commit 4c82a8dd2f6fae1ea1722108c7f64e6a1286df15)

15 years agoFix the logic bug that caused us to run into kernel oplocks on an open for a stream...
Jeremy Allison [Sat, 22 Nov 2008 02:19:13 +0000 (18:19 -0800)]
Fix the logic bug that caused us to run into kernel oplocks on an open for a stream inside a file with stream_xattr module. On opening the base_fsp we must break existing oplocks.
Jeremy.
(cherry picked from commit c76e4791d3ae4f180fba209c29bd3774c00858cf)

15 years ago[PATCH] FreeBSD configure check for backtrace_symbols
Dan Sledz [Sat, 15 Nov 2008 02:41:17 +0000 (18:41 -0800)]
[PATCH] FreeBSD configure check for backtrace_symbols

On FreeBSD backtrace_symbols is defined in libexecinfo.so.1.  Look for it
there as well.
(cherry picked from commit 22b21f63d9ebd6181d9ff577ec27e33982db85db)

15 years agoUse fxattr calls whenever possible (trying to work around the strange Linux kernel...
Jeremy Allison [Sat, 22 Nov 2008 00:04:31 +0000 (16:04 -0800)]
Use fxattr calls whenever possible (trying to work around the strange Linux kernel oplock bug).
Jeremy.
(cherry picked from commit 89d6bd5bc5398fbec6fbfb797ea6f10ad036c205)

15 years agowinbindd_group: don't list the domain twice when expanding internal aliases
Michael Adam [Sun, 21 Sep 2008 00:07:43 +0000 (02:07 +0200)]
winbindd_group: don't list the domain twice when expanding internal aliases

Before this, "getent group builtin\\administrators" expanded
domain group members in the form DOMAIN\domain\user.

Michael
(cherry picked from commit a0e36cdd05cc9f5354dd9e834077919b8ce64262)

15 years agowinbindd_group: sanely handle NULL domain in add_member().
Michael Adam [Sun, 21 Sep 2008 00:06:44 +0000 (02:06 +0200)]
winbindd_group: sanely handle NULL domain in add_member().

Michael
(cherry picked from commit 0943858d0297291a73c040a1412b1708b340dac7)

15 years agowinbindd_ads: honour "winbind use default domain" in lookup_groupmem().
Michael Adam [Mon, 22 Sep 2008 08:39:37 +0000 (10:39 +0200)]
winbindd_ads: honour "winbind use default domain" in lookup_groupmem().

This fixes the output of "getent group" when "winbind use default domain = yes"
with security = ads.

Michael
(cherry picked from commit e720a1533ba8063478a68ca94b39364a77529f41)

15 years agowinbindd_rpc: add domain prefix to username in lookup_groupmem().
Michael Adam [Sat, 20 Sep 2008 23:20:32 +0000 (01:20 +0200)]
winbindd_rpc: add domain prefix to username in lookup_groupmem().

This makes the output of "getent group" of a domain group show the
domain prefix with "security = domain".

Michael
(cherry picked from commit 5eacc680d2615a1d8a2b4d51a6d08fa7e09e080e)

15 years agowinbindd_util: add fill_domain_username_talloc().
Michael Adam [Mon, 22 Sep 2008 08:37:11 +0000 (10:37 +0200)]
winbindd_util: add fill_domain_username_talloc().

A talloc version of fill_domain_username().

Michael
(cherry picked from commit 3ad23ec3bd98aa55fa29c5c1cac60116b5fc00d2)

15 years agowinbindd: fix a comment typo
Michael Adam [Mon, 22 Sep 2008 12:51:51 +0000 (14:51 +0200)]
winbindd: fix a comment typo

Michael
(cherry picked from commit d3e3c2c50ee404de25b46a06bd71f90a7214e69c)

15 years agowinbind_util: fix an implicit cast compile warning.
Michael Adam [Mon, 22 Sep 2008 08:34:57 +0000 (10:34 +0200)]
winbind_util: fix an implicit cast compile warning.

Michael
(cherry picked from commit 38020bdeb9115fe41038723a2ffaedb75df8e564)

15 years agowinbindd: make all winbind rpc-methods static.
Michael Adam [Fri, 21 Nov 2008 22:28:08 +0000 (23:28 +0100)]
winbindd: make all winbind rpc-methods static.

Now that the methods are no longer needed in winbindd_ads,
we can make them static again.

Michael
(cherry picked from commit fc82807659cf4ab23df8ae7b98edfc715b54f591)

15 years agowinbindd_ads: use the reconnect methods instead of the rpc methods directly
Michael Adam [Fri, 21 Nov 2008 01:24:06 +0000 (02:24 +0100)]
winbindd_ads: use the reconnect methods instead of the rpc methods directly

Some of the ads methods just point to the rpc methods.
This makes winbindd_ads use the reconnect methods instead of
calling the rpc methods directly in order to prevent
negative cache entries for e.g. name_to_sid, when the dc
has closed the connection without sending a reset.

Michael
(cherry picked from commit afd1cba6c18cb56ec13659cec7c86b32de2fda39)

15 years agowinbindd_ads: prevent negative GM/ cache entries due to broken connections
Michael Adam [Thu, 20 Nov 2008 22:26:35 +0000 (23:26 +0100)]
winbindd_ads: prevent negative GM/ cache entries due to broken connections

The ads lookup_groupmem() function calls lda_lookupsids to resolve sids
to names. This is tried only once. So in case the connection was broken,
e.g. closed by the server (without a reset packet), there will be an empty
GM/ cache entry for the requested group which will prevent proper working
of access checks among other checks for the expiry period.

This patch works around this problem by retrying once if the lsa_lookupsids
call fails, re-establishing the dc-connection, as we already do in many other
places (e.g. the winbindd retry methods for the rpc layer).

Michael
(cherry picked from commit 9d5af844c53ff2b25904c96d28546271a249debb)

15 years agoSecond part of the fix for bug #5903 - vfs_streams_xattr breaks contents of the file
Jeremy Allison [Fri, 21 Nov 2008 20:32:11 +0000 (12:32 -0800)]
Second part of the fix for bug #5903 - vfs_streams_xattr breaks contents of the file
Jeremy.
(cherry picked from commit d4481329438d27a23ded85f01f5cf06725221d0e)

15 years agoEnsure we always reply in reply_printopen().
Jeremy Allison [Fri, 21 Nov 2008 19:06:33 +0000 (11:06 -0800)]
Ensure we always reply in reply_printopen().
Jeremy.
(cherry picked from commit e2f699a5d1a2415ce37c052bf24bbecf0d41bae7)

15 years agoFirst part of fix for bug #5903 - vfs_streams_xattr breaks contents of the file.
Jeremy Allison [Fri, 21 Nov 2008 18:46:31 +0000 (10:46 -0800)]
First part of fix for bug #5903 - vfs_streams_xattr breaks contents of the file.
Restructures parts of open code so that fsp must be allocated before calling
open_file_ntcreate(_internal). Also fix up file ref-counting inside files.c.
Jeremy.
(cherry picked from commit 1f36db34d7483614e1a4d6d5f3437205bcb20541)

15 years agoFix bug #5909 - MS-DFS does not work on Vista, if link name includes multibyte character.
Yasuma Takeda [Thu, 20 Nov 2008 19:36:51 +0000 (11:36 -0800)]
Fix bug #5909 - MS-DFS does not work on Vista, if link name includes multibyte character.
(cherry picked from commit cae1717f58c89faaf68502c72124ecd1728d3374)

15 years agoSecond part of fix for bug #5891 - smbd crashed when viewing the eventlog exported...
Jeremy Allison [Thu, 20 Nov 2008 18:55:23 +0000 (10:55 -0800)]
Second part of fix for bug #5891 - smbd crashed when viewing the eventlog exported by "eventlog list". Don't leak memory on error paths.
Jeremy.
(cherry picked from commit b4f01de83a6f65e065117e917fdb208ce6d58c01)

15 years agoeventlog: don't crash in sync_eventlog_params().
Michael Adam [Thu, 20 Nov 2008 15:31:44 +0000 (16:31 +0100)]
eventlog: don't crash in sync_eventlog_params().

When freeing the talloc ctx at the end of the routine,
it must be a talloc ctx created inside. talloc_tos() needs
to be valid after the function finishes, since callers
(may) have data attached to it.

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 113c5d28edabdd17a2507e68aad612aa21c758f3)
(cherry picked from commit 3677b2edd42765e50335cdba1651eebc3518e2ae)

15 years agoThis code mixes up int and uint32 when pulling out of a TDB. This is very bad. Fixing...
Jeremy Allison [Thu, 20 Nov 2008 00:48:53 +0000 (16:48 -0800)]
This code mixes up int and uint32 when pulling out of a TDB. This is very bad. Fixing... May fix bug #5891, not sure.
Jeremy.
(cherry picked from commit 3c92c4f3140d7817a66c6b8d601dd30e5d15c88d)

15 years agoFix error in commit for bugfix "Fix bug #5904 - libnss_wins causes SIGABRT while...
Jeremy Allison [Wed, 19 Nov 2008 19:31:05 +0000 (11:31 -0800)]
Fix error in commit for bugfix "Fix bug #5904 - libnss_wins causes SIGABRT while servicing getaddrinfo() request."
Jeremy.
(cherry picked from commit e4b4e9cafbb7dcda761b396a71be9ba4965956bc)

15 years agoFix bug #5904 - libnss_wins causes SIGABRT while servicing getaddrinfo() request.
Jeremy Allison [Wed, 19 Nov 2008 19:23:11 +0000 (11:23 -0800)]
Fix bug #5904 - libnss_wins causes SIGABRT while servicing getaddrinfo() request.
Jeremy.
(cherry picked from commit 89d234574b1a2f12b2d9d21c4286648d0da436c3)

15 years agoFix extended DN parse error when AD object does not have a SID.
Steven Danneman [Sat, 15 Nov 2008 21:07:15 +0000 (13:07 -0800)]
Fix extended DN parse error when AD object does not have a SID.

Some AD objects, like Exchange Public Folders, can be members of Security
Groups but do not have a SID attribute.  This patch adds more granular return
errors to ads_get_sid_from_extended_dn().  Callers can now determine if a parse
error occured because of bad input, or the DN was valid but contained no SID.

I updated all callers to ignore SIDless objects when appropriate.

Also did some cleanup to the out paths of lookup_usergroups_memberof()
(cherry picked from commit 48959de11bdeea7f114d8019349b37ada1df5aef)

15 years agoWhitespace and >80 column cleanups.
Steven Danneman [Sat, 15 Nov 2008 03:16:12 +0000 (19:16 -0800)]
Whitespace and >80 column cleanups.
(cherry picked from commit 8a9df932bfcae6bb9bd60914e9c74d13b3dfcd30)

15 years agoFix Bug #5898. ("net rpc shutdown" fails).
Günther Deschner [Tue, 18 Nov 2008 22:10:22 +0000 (23:10 +0100)]
Fix Bug #5898. ("net rpc shutdown" fails).

Guenther
(cherry picked from commit 40712b9ab1e915d405db45e2f18c72a9957158a9)

15 years agoFix bug #5908 - Samba 3.0.32 - internal change notify on share directory fails"
Dina Fine [Tue, 18 Nov 2008 20:44:19 +0000 (12:44 -0800)]
Fix bug #5908 - Samba 3.0.32 - internal change notify on share directory fails"
(cherry picked from commit a3c79bd8d09262257cf8c025753332fb639fc09e)

15 years agolibsmb: Fix up pointer passed to cli_send_trans in cli_link_internal
Kai Blin [Tue, 18 Nov 2008 15:31:34 +0000 (16:31 +0100)]
libsmb: Fix up pointer passed to cli_send_trans in cli_link_internal

Seems like this one fell victim to the pstring removal. The other callers seem
to be fine, even though removing the casts would make the code less confusing.
(cherry picked from commit aa26b0aa3d913b09ead97c2c0bbfade0dddcd251)

15 years agoRe-structure Volker's patch to "Fix trans2findfirst for the large directory optimizat...
Jeremy Allison [Tue, 18 Nov 2008 18:58:48 +0000 (10:58 -0800)]
Re-structure Volker's patch to "Fix trans2findfirst for the large directory optimization". Makes the change clearer.
Jeremy.
(cherry picked from commit 71878cb566aa9edeb85ac134a1ad60cfbc2927fe)

15 years agoFix trans2findfirst for the large directory optimization
Volker Lendecke [Tue, 18 Nov 2008 16:03:38 +0000 (17:03 +0100)]
Fix trans2findfirst for the large directory optimization

With

case sensitive = yes
preserve case = no
short preserve case = no
default case = upper

a "dir FOO.txt" would not find "FOO.TXT" because FOO.txt ends up unconverted in
the mask for mask_match.

Jeremy, please check!

Volker
(cherry picked from commit 0dbcc308e30b121268cdfcdd70c50c4ed38ab433)
(cherry picked from commit 96764065e2e2eaa13cb71bc9ea2d75800da7db4f)

15 years agoFix bug #5906 when running winbindd on a Samba PDC. Winbindd crash on 'getent group'.
Davide Sfriso [Mon, 17 Nov 2008 23:40:43 +0000 (15:40 -0800)]
Fix bug #5906 when running winbindd on a Samba PDC. Winbindd crash on 'getent group'.
(cherry picked from commit 742ac5c45674446546b9e8ee22320a39d700b195)