]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
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
(cherry picked from commit 9e8aa924f34c1db89151e83f3b561c043da0c994)

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

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

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

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

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
(cherry picked from commit 2dfeb2d5970f52e4948e22a2a4e4f47479a550dc)

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
(cherry picked from commit 60222a78c00ad9d1d09789024184c430bff0f68b)

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
(cherry picked from commit 650077c22b2e67815c9a2fd8a1cc56986c0aaced)

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
(cherry picked from commit 704b0d35707483a8fbf89da55a2d161375e56b3a)

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

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

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
(cherry picked from commit 332456f09bfea29e5a6558b5bd3b8c585892a3f5)

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
(cherry picked from commit 4260aadc2e00b6856d5cc2365ab751f3458472d5)

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

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
(cherry picked from commit 2edf2cef9cb43a65ce8ee8e8a782d248856030dd)

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

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

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

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

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
(cherry picked from commit 1cbbda7adcd6a5558fa259261c527aff6fc82477)

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

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
(cherry picked from commit 299190ee53bc024abb832dfd6a832c4a756b99ee)

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
(cherry picked from commit 6f466b2aeca8b3052dd8cf59ec1560bb23fe9c93)

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

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

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
(cherry picked from commit 90786ee2012e038b3ea5f5600903e7c208c6083b)

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

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

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
(cherry picked from commit 85a2c0607e25b8a3ca91c50f71f4d649d29bd0e3)

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
(cherry picked from commit 584249dfffe5ed9efd67bfc598413d5d19eb80cf)

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
(cherry picked from commit 9b0f3359fc7cb27c5e4726b87ae4035e1908736a)

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

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
(cherry picked from commit 11a4ccc2b0f54324bbed2360fa48055fa43fee6d)

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

16 years agoVERSION: Raise version number.
Karolin Seeger [Thu, 11 Dec 2008 14:08:54 +0000 (15:08 +0100)] 
VERSION: Raise version number.

Karolin

16 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 master.

Guenther
(cherry picked from commit aa0ef2f97d98e7ca80636a4dc8093d2034d0dbf1)

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.
(cherry picked from commit 11bd02bc8e1484a953632d3293db716da2647c04)

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.
(cherry picked from commit 6a4b0683e05ecc0bf57a1601c741582576f31b23)

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.
(cherry picked from commit c39c35f3e67a726c6464c1497e46fe7a2eb3dc77)

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 :).
(cherry picked from commit 69a2b8ea06bf65109ed8a44df38e62bcbac7c4a9)

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

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)
(cherry picked from commit 8dd3a7bfde16e85a9ee509cf6bcfc788062705a5)

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)
(cherry picked from commit 866efa63a26f75bbf17cd4bebf639594e2feafba)

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.
(cherry picked from commit e9cad95d8728ac81ca13b5dea16167ceb4e4cf50)

16 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 76467c3b4e89cbeea4cb352ea4cb0b97fab17295)

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.
(cherry picked from commit 5eadcdfd93023157e582e04cbdadb9f55ed090bb)

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.
(cherry picked from commit 40747f209313ad6430bc35c1d82ffb5f516af621)

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

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.
(cherry picked from commit 8b49bf06e252b3c37ba910f8b887f48232eb1a9b)

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

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.
(cherry picked from commit dda44029e98d581e358146443d66d3e243163f15)

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

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

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

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

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
(cherry picked from commit 23f493795ce506f9dae5468edcd6c49de91c57a6)

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
(cherry picked from commit 53e8594714a5aa6dc5fb1379f0dc5c84b517a851)

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

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

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

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.
(cherry picked from commit 56a7b902765b5b4bf76d95c4e6e66ad89920a7bf)

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

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"
(cherry picked from commit 63dbbdb33bcab7b762f308a135bb91b8dfc97757)

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

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
(cherry picked from commit 911ba0ef15e8ed6d06e205c410ccf07ff33db929)

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
(cherry picked from commit 2f8049ec62c6490c6f82fa417aea296667ad99d3)

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

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

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

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
(cherry picked from commit 09eca68633c1fcd5ac9c9d1c7123bc816df39b6e)

16 years agos3:streams_depot: add an option to disable the xattr checks
Stefan Metzmacher [Mon, 1 Dec 2008 22:20:36 +0000 (14:20 -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 6972c77fd5b4a103e850e72312f9183b8e73189b)

16 years agos3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the default...
Stefan Metzmacher [Mon, 1 Dec 2008 22:11:54 +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 1cc55ef88321927e87d5ce0c6b1edd98d2e6f936)

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

metze
(cherry picked from commit 2e401bf868ba04285e58945a2dd5bf10605fc6d9)

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

metze
(cherry picked from commit 507f5853bc98a240307f429c369bf920e3f2f4a4)

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

metze
(cherry picked from commit fe13b58addab1a685cd31c8f9c0341472f338071)

16 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:39 +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 1008d353f2e4248901ae06ba3b8bd5b1251c5550)

16 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:40 +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 47b270c3f83a86c3a6f4c3ae92a04c308ded9290)

16 years agos3-samr: fix various potential memleaks in samr_SetUserInfo.
Günther Deschner [Mon, 1 Dec 2008 21:20:41 +0000 (22:20 +0100)] 
s3-samr: fix various potential memleaks in samr_SetUserInfo.

Was there any reason why we did all these individual TALLOC_FREEs ?

Guenther
(cherry picked from commit cc2da9736c8d766a27444acc84513fb0fa62a777)

16 years agos3-samr: fix return code for invalid password sets in SetUserInfo.
Günther Deschner [Thu, 27 Nov 2008 00:25:46 +0000 (01:25 +0100)] 
s3-samr: fix return code for invalid password sets in SetUserInfo.

Guenther
(cherry picked from commit ba1308e928b14edd722478e6f7564eddc2271d02)

16 years agos3-samr: never allow to alter pwdlastset directly.
Günther Deschner [Thu, 27 Nov 2008 16:29:30 +0000 (17:29 +0100)] 
s3-samr: never allow to alter pwdlastset directly.

Guenther
(cherry picked from commit d288734d862e8d35fe1cb905f8d697d3d73b42ad)

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

metze
(cherry picked from commit 7d70eac1b343641aefcbaeb6639d1b101c448cc0)

16 years agos3:smbd: construct the correct newname for stream renames
Stefan Metzmacher [Mon, 1 Dec 2008 21:31:28 +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 a92cfb4802fb42969a5e82d27d7ca4dcd966a5a3)

16 years agos3:smbd: wildcard characters are allowed in stream names
Stefan Metzmacher [Mon, 1 Dec 2008 21:27:08 +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 a47e8e7438133ca3bc1f1b577ccd9d0fde8baea0)

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

metze
(cherry picked from commit 6f8e7146cd51c81963f9e2830a4ed7e37eefdf1f)

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

metze
(cherry picked from commit 7435fe9d147fd495aa2dd9cc97f6fd0c1e93bddc)

16 years agoSet PRESENT flag when returning NULL [SD]ACL like Windows does.
Steven Danneman [Mon, 1 Dec 2008 19:12:59 +0000 (11:12 -0800)] 
Set PRESENT flag when returning NULL [SD]ACL like Windows does.

This could also be handled inside each ACL VFS module, by setting the PRESENT
flag when a NULL [SD]ACL is created.
(cherry picked from commit efaac8049e43279266b5ea35dab8a866a96205b4)

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

16 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 87191fdbf929767dad7715acbff8a414b8091544)

16 years agowinbindd/nss_info: remove unused variable from nss_init()
Michael Adam [Mon, 1 Dec 2008 03:22:33 +0000 (04:22 +0100)] 
winbindd/nss_info: remove unused variable from nss_init()

Michael
(cherry picked from commit 479537fa1d0ffff8d7489c7e96cb416d7c1554aa)

16 years agowinbindd/nss_info: make nss_domain_list_add_domain() static
Michael Adam [Mon, 1 Dec 2008 03:22:02 +0000 (04:22 +0100)] 
winbindd/nss_info: make nss_domain_list_add_domain() static

Michael
(cherry picked from commit 606e28f35538ff42e6c0845a7e9d2415a75ccaf5)

16 years agowinbindd/nss_info: fix default backend handling for ad backends.
Michael Adam [Mon, 1 Dec 2008 01:01:44 +0000 (02:01 +0100)] 
winbindd/nss_info: fix default backend handling for ad backends.

This fixes "winbind nss info = rfc2307" (or sfu or sfu20).
Originally, only explicitly configured domains (like "rfc2307:domain")
worked with the ad module, since the domain name was not passed
backe to the module. This is fixed by recording the first backend
listed without domain in the "winbind nss info" parameter as the
default backend, and creating new nss_domain entries (using this default
backend) on the fly as requests for domains which are not explicitly
configured are encountered.

Michael
(cherry picked from commit 348983fd92fa6ab448d490c70c0abb4f7b604b1d)

16 years agowinbindd/nss_info: whitespace cleanup.
Michael Adam [Sun, 30 Nov 2008 23:56:50 +0000 (00:56 +0100)] 
winbindd/nss_info: whitespace cleanup.

Remove trailing spaces and fix tab / space mixup.

Michael
(cherry picked from commit 715335caca2bbdc31c4a65ecf7c3bf602cd73781)

16 years agowinbindd_cache: add debugging to get_nss_info_cached()
Michael Adam [Sun, 30 Nov 2008 22:00:19 +0000 (23:00 +0100)] 
winbindd_cache: add debugging to get_nss_info_cached()

Michael
(cherry picked from commit 31531c906c336dd07b5ff217f9c1c6bedfeae40c)

16 years agowinbindd/nss_info: add entry debug message to nss_get_info()
Michael Adam [Sun, 30 Nov 2008 21:57:41 +0000 (22:57 +0100)] 
winbindd/nss_info: add entry debug message to nss_get_info()

Michael
(cherry picked from commit 60a469ef3fff16a8585a6c62785777563f4ec587)

16 years agowinbindd/nss_info: add debugging to nss_init()
Michael Adam [Sun, 30 Nov 2008 21:54:42 +0000 (22:54 +0100)] 
winbindd/nss_info: add debugging to nss_init()

Michael
(cherry picked from commit 9c1d9c31849585dbd33367db3e0708fda7b0b9f0)

16 years agowinbindd/idmap_ad: add entry debug message to nss_ad_get_info()
Michael Adam [Sun, 30 Nov 2008 21:50:26 +0000 (22:50 +0100)] 
winbindd/idmap_ad: add entry debug message to nss_ad_get_info()

Michael
(cherry picked from commit 8d00acb552f8f67f0b28ce7eeb8bccb0e6dcd850)

16 years agowinbindd/idmap_ad: add support for trusted domains to idmap_ad (bug #3661)
Michael Adam [Wed, 26 Nov 2008 22:09:49 +0000 (23:09 +0100)] 
winbindd/idmap_ad: add support for trusted domains to idmap_ad (bug #3661)

This initial fix does at least work for explicitly configured domains.

The patch has a few disadvantages:

1. It does work only for explicitly configured domains, not with
   the default backend (idmap backend = ad), since it relies on the
   domain name being passed in via the idmap_domain. One workaround
   for this would be to create clones of the default idmap_domain
   for domains not explicitly configured.

2. It calls find_domain_from_name_noinit() from idmap_ad_cached_connection.
   The problem here is that only the NetBIOS domain name (workgroup
   name) is passed in via the idmap_domain struct, and the module
   has to establish a connection to the domain based on that information.
   find_domain_from_name_noinit() has the disadvantage that it uses the state
   of the domain list at fork time (unless used from the main winbindd).
   But this should be ok as long as the primary domain was reachable at
   start time.

For nss_info, the situation is similar - This will only work for domains
explicitly configured in smb.conf as follows:
"winbind nss info = rfc2307:dom1 sfu:dom2 rfc2307:dom3 template:dom4"
Setting the default nss info to one of the ad backends (rfc2307, sfu, sfu20)
will fail since the domain name is not passed in with the nss_domain_entry.

Michael
(cherry picked from commit 9423214217558036c4c88d48efead41df48d2492)

16 years agowinbindd/idmap_ad: refactor core of nss_{sfu|sfu20|rfc2307}_init to common function.
Michael Adam [Wed, 26 Nov 2008 21:23:34 +0000 (22:23 +0100)] 
winbindd/idmap_ad: refactor core of nss_{sfu|sfu20|rfc2307}_init to common function.

Michael
(cherry picked from commit 1ffceacbc1696bcee6a5f0dc414487b305ba2b4c)

16 years agowinbindd/idmap_ad: rename ctx to mem_ctx in nss_ad_get_info()
Michael Adam [Wed, 26 Nov 2008 14:16:22 +0000 (15:16 +0100)] 
winbindd/idmap_ad: rename ctx to mem_ctx in nss_ad_get_info()

in preparation to using the idmap_ad_context there

Michael
(cherry picked from commit 9c23d62f07867f4d94d822f0190c6479ffb7df24)

16 years agowinbindd/idmap: add diagnostic entry debug msg to idmap_backends_sid_to_unixid
Michael Adam [Fri, 28 Nov 2008 09:40:42 +0000 (10:40 +0100)] 
winbindd/idmap: add diagnostic entry debug msg to idmap_backends_sid_to_unixid

Michael
(cherry picked from commit ac878b8bdf15ad10eedb342cc5e71962b96f0b4b)