]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
15 years agos3: Don't overwrite password in pam_winbind, subsequent pam modules might use the...
Bo Yang [Wed, 16 Sep 2009 15:58:35 +0000 (23:58 +0800)] 
s3: Don't overwrite password in pam_winbind, subsequent pam modules might use the old password and new password.

Signed-off-by: Bo Yang <boyang@samba.org>
Fix bug #6735.

15 years agos3:libsmb: Correctly chew keepalive packets
Volker Lendecke [Wed, 9 Sep 2009 10:24:08 +0000 (12:24 +0200)] 
s3:libsmb: Correctly chew keepalive packets

Thanks a *lot* to Günther to send me the relevant traces!

Volker

Signed-off-by: Günther Deschner <gd@samba.org>
Fixes bug #6646 (Winbind authentication issue on 3.2.13/14 and 3.4.0 (was:
[Samba] Crazied NTLM_AUTH on samba 3.4.0)).

15 years agos3-winbindd: Fix Bug #6700: Use dns domain name when needing to guess server principal.
Günther Deschner [Wed, 9 Sep 2009 00:29:58 +0000 (02:29 +0200)] 
s3-winbindd: Fix Bug #6700: Use dns domain name when needing to guess server principal.

Patch from Robert LeBlanc <robert@leblancnet.us>.

Thanks!

Guenther

15 years agos3-schannel: Fix Bug #6697. Interdomain trusts with Windows 2008 R2 DCs.
Günther Deschner [Tue, 8 Sep 2009 09:57:52 +0000 (11:57 +0200)] 
s3-schannel: Fix Bug #6697. Interdomain trusts with Windows 2008 R2 DCs.

The Schannel verifier (aka NL_AUTH_SIGNATURE) structure (32 byte) sent from a
W2k8r2 DC is passed in a buffer with the size of a NL_AUTH_SHA2_SIGNATURE (56
byte). We should just ignore the remaining 12 zeroed bytes and proceed.

Guenther

15 years agoCheck we read off the compelte event from inotify
Simo Sorce [Sat, 5 Sep 2009 14:18:12 +0000 (10:18 -0400)] 
Check we read off the compelte event from inotify

The kernel may return a short read, so we must use read_data() to make sure we
read off the full buffer. If somethign bad happens we also need to kill the
inotify watch because the filedescriptor will return out of sync structures if
we read only part of the data.

Fixes bug #6693.

15 years agos3:libwbclient: Fix bug 6349, initialize domain info struct
Volker Lendecke [Sun, 30 Aug 2009 09:39:41 +0000 (11:39 +0200)] 
s3:libwbclient: Fix bug 6349, initialize domain info struct

15 years agowbclient: Fix Bug #6680: always activate handling of large (> 256 byte) ntlmv2 blobs...
Günther Deschner [Tue, 1 Sep 2009 09:58:05 +0000 (11:58 +0200)] 
wbclient: Fix Bug #6680: always activate handling of large (> 256 byte) ntlmv2 blobs in wbcAuthenticateUserEx().

Guenther

15 years agoFix bug 5886
Volker Lendecke [Tue, 14 Jul 2009 21:12:59 +0000 (23:12 +0200)] 
Fix bug 5886

Ok, that's a very long-standing one. I finally got around to install a recent
OpenLDAP and test the different variants of setting a NULL password etc.

Thanks all for your patience!

Volker

15 years agos3:netlogon: replace cred_hash3 by des_crypt112_16
Stefan Metzmacher [Thu, 27 Aug 2009 11:16:15 +0000 (13:16 +0200)] 
s3:netlogon: replace cred_hash3 by des_crypt112_16

This makes sure we don't truncate the session key to 8 bytes
Fixes bug #6664.

metze

15 years agoFix unqualified "net join"
Volker Lendecke [Wed, 29 Jul 2009 08:30:52 +0000 (04:30 -0400)] 
Fix unqualified "net join"

Kai, please check!

Fixes bug #6585.

Thanks,

Volker
(cherry picked from commit d8543da9dad3286cd330b98374405edb9f976e77)
(cherry picked from commit bf7d1758a77a462d9b30cc2549a960736884ee32)

15 years agos3-ldap: Fix Bug #5879. Update LDAP schema for Netscape DS 5.
Günther Deschner [Thu, 6 Aug 2009 15:17:26 +0000 (17:17 +0200)] 
s3-ldap: Fix Bug #5879. Update LDAP schema for Netscape DS 5.

Patch from TAKEDA Yasuma <yasuma@osstech.co.jp>.

Guenther
(cherry picked from commit 9fa042bb9f71057fc869e37d4cc180e8a772b1bb)

16 years agos3:winbindd: raise the timeout for lsa_Lookup*() calls from 10 to 35 seconds.
Stefan Metzmacher [Tue, 11 Aug 2009 09:17:14 +0000 (11:17 +0200)] 
s3:winbindd: raise the timeout for lsa_Lookup*() calls from 10 to 35 seconds.

metze
(cherry picked from commit 1e1445bc7672b17a1d689fa0f0732b05b6e04da5)

Fixes bug #6627.

16 years agos3:passdb: fix bug #6509: use gid (not uid) cache in fetch_gid_from_cache().
Michael Adam [Fri, 26 Jun 2009 12:09:10 +0000 (14:09 +0200)] 
s3:passdb: fix bug #6509: use gid (not uid) cache in fetch_gid_from_cache().

With the previous code, the cache can never have been hit at all.

Michael

16 years agos3: Unable to browse DFS when using kerberos in libsmbclient
Bo Yang [Fri, 7 Aug 2009 06:58:36 +0000 (14:58 +0800)] 
s3: Unable to browse DFS when using kerberos in libsmbclient

Signed-off-by: Bo Yang <boyang@samba.org>
Fixes bug #6615.

16 years agos3/smbldap: Fix typo in debug message.
Karolin Seeger [Thu, 6 Aug 2009 08:06:29 +0000 (10:06 +0200)] 
s3/smbldap: Fix typo in debug message.

Karolin
(cherry picked from commit 54dffbea663ecf4542d6c5e30da6e346d5d60424)

16 years agoFix SAMR server for winbindd access. Ensure we allow MAX_ACCESS to be mapped to what...
Jeremy Allison [Mon, 18 May 2009 21:26:37 +0000 (14:26 -0700)] 
Fix SAMR server for winbindd access. Ensure we allow MAX_ACCESS to be mapped to what we're giving Everyone. Jeremy.

Fixes bug #6504.

16 years agoIncrease the max_grp value to 128 (AIX NGROUPS_MAX value) instead of 32 to allow...
Yannick Bergeron [Thu, 30 Jul 2009 23:31:24 +0000 (19:31 -0400)] 
Increase the max_grp value to 128 (AIX NGROUPS_MAX value) instead of 32 to allow AIX to call sys_getgrouplist only once
(cherry picked from commit c3e12444f57e24dcd6c9259537ed0489db4658e9)
(cherry picked from commit 2666b3e27444ffcad3afc21e276f189ac238433f)

16 years agos3/docs: Fix typos.
Karolin Seeger [Mon, 3 Aug 2009 08:19:45 +0000 (10:19 +0200)] 
s3/docs: Fix typos.

Thanks to OPC oota <t-oota@dh.jp.nec.com> for reporting!

Karolin
(cherry picked from commit 7ee7ec3fdba2ef6a6cc3e1f96a5d2154290cdb18)
(cherry picked from commit c94d3183a8e4c7e03c0dd2771cb7b9f4665198ce)

16 years agoWHATSNEW: Remove major enhancements.
Karolin Seeger [Tue, 28 Jul 2009 08:26:59 +0000 (10:26 +0200)] 
WHATSNEW: Remove major enhancements.

There are not that much bugs that have been fixed for that release and it's a
bit difficult to determine major ones...

Karolin

16 years agoWHATSNEW: Start WHATSNEW for 3.3.7.
Karolin Seeger [Mon, 27 Jul 2009 14:21:16 +0000 (16:21 +0200)] 
WHATSNEW: Start WHATSNEW for 3.3.7.

Karolin

16 years agoVERSION: Raise version number up to 3.3.7.
Karolin Seeger [Mon, 27 Jul 2009 13:56:02 +0000 (15:56 +0200)] 
VERSION: Raise version number up to 3.3.7.

Karolin

16 years agodocs: fix typos in the net man page.
Michael Adam [Mon, 27 Jul 2009 12:09:39 +0000 (14:09 +0200)] 
docs: fix typos in the net man page.

Noted by Oota Toshiya <t-oota@dh.jp.nec.com> .

Michael

16 years agohandling upn
Bo Yang [Sat, 18 Jul 2009 06:23:24 +0000 (14:23 +0800)] 
handling upn

lookupname failed, cannot find domain when attempt
to change password.

This addresses bug #6560.

Signed-off-by: Bo Yang <boyang@samba.org>
16 years agos3:util: let parent_dirname() correctly return toplevel filenames
Stefan Metzmacher [Tue, 30 Jun 2009 14:03:11 +0000 (16:03 +0200)] 
s3:util: let parent_dirname() correctly return toplevel filenames

metze
(cherry picked from commit a14efbadd53ac9678d75e6029f947d63cfa0c4e5)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
This addresses bug #6526.

16 years agoFix bug #6520 time stamps.
Jeremy Allison [Thu, 2 Jul 2009 06:37:59 +0000 (08:37 +0200)] 
Fix bug #6520 time stamps.

E.g. last mod time is not preserved when "unix extensions=yes" are set - and u
Cancel out any pending "sticky" writes or "last write" changes when
doing a UNIX info level set.

Jeremy.

16 years agos3/docs: Fix typo.
Matt Kraai [Wed, 1 Jul 2009 06:18:11 +0000 (08:18 +0200)] 
s3/docs: Fix typo.

This fixes bug #6519.
(cherry picked from commit 4fb1f8e8fe46b3e77c06612ac3fc3d67cf650a11)
(cherry picked from commit 39bfcc5d50892ad0c387f0ca3932e961e77fdc39)

16 years agoDon't require "Modify property" perms to unjoin (bug #6481) "net ads leave" stopped...
Jim McDonough [Mon, 29 Jun 2009 13:42:35 +0000 (09:42 -0400)] 
Don't require "Modify property" perms to unjoin (bug #6481) "net ads leave" stopped working when "modify properties" permissions were not granted (meaning you had to be allowed to disable the account that you were about to delete).

Libnetapi should not delete machine accounts, as this does not
happen on win32.  The WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag
really means "disable" (both in practice and docs).

However, to keep the functionality in "net ads leave", we
will still try to do the delete.  If this fails, we try
to do the disable.

Additionally, it is possible in windows to not disable or
delete the account, but just tell the local machine that it
is no longer in the account.  libnet can now do this as well.

Don't use ads realm name for non-ads case.  #6481

Also check that the connection to ads worked.

16 years agos3-test: add RPC-SAMR-MACHINE-AUTH to list of tests to run against s3.
Günther Deschner [Mon, 29 Jun 2009 13:27:13 +0000 (15:27 +0200)] 
s3-test: add RPC-SAMR-MACHINE-AUTH to list of tests to run against s3.

Guenther

16 years agoVERSION: Raise version number up to 3.3.6.
Karolin Seeger [Tue, 23 Jun 2009 09:35:13 +0000 (11:35 +0200)] 
VERSION: Raise version number up to 3.3.6.

Karolin
(cherry picked from commit b09440c77b93ff6088c2fd474d6b24c081054812)

16 years agoWHATSNEW: Update changes since 3.3.5.
Karolin Seeger [Tue, 23 Jun 2009 09:33:44 +0000 (11:33 +0200)] 
WHATSNEW: Update changes since 3.3.5.

Karolin
(cherry picked from commit a71fdf8189154cd8949016be725c8319671ba587)

16 years agos3/lanman: Workaround for KB932762.
Volker Lendecke [Tue, 16 Jun 2009 09:51:11 +0000 (11:51 +0200)] 
s3/lanman: Workaround for KB932762.

This addresses bug #6498.
(cherry picked from commit a702dea5a86f22e0b7857b67447152a06b3bbea2)

16 years agos3:configure: "test" only takes one "=" (cherry picked from commit ddd37c2b235eb03ddb...
Björn Jacke [Sat, 4 Apr 2009 09:21:01 +0000 (11:21 +0200)] 
s3:configure: "test" only takes one "=" (cherry picked from commit ddd37c2b235eb03ddb438ebb2cdd14dd67f867f3)

This fixes bug #6497.

16 years agos3/docs: Fix typo.
Karolin Seeger [Fri, 19 Jun 2009 13:23:22 +0000 (15:23 +0200)] 
s3/docs: Fix typo.

This fixes bug #6412.
Thanks to Carsten Dumke <carsten [at] cdumke.de> for reporting!

Karolin
(cherry picked from commit 4ad43a21344b43f1c9fe459165098bcab1695711)
(cherry picked from commit 84750d556d0a42b5d8b134308311e2cb9a533b58)

16 years agos3-net: Fix bug 6340: don't segfault when cleartext trustdom pwd could not be retrieved.
Günther Deschner [Wed, 13 May 2009 13:17:46 +0000 (15:17 +0200)] 
s3-net: Fix bug 6340: don't segfault when cleartext trustdom pwd could not be retrieved.

Guenther

16 years agoBug 6488: acl_group_override() call in posix acls references an uninitialized variable.
Jeremy Allison [Fri, 19 Jun 2009 09:00:41 +0000 (11:00 +0200)] 
Bug 6488: acl_group_override() call in posix acls references an uninitialized variable.

16 years agoFix bug #6487: Missing DFS call in trans2 mkdir call. (cherry picked from commit...
Jeremy Allison [Fri, 19 Jun 2009 08:10:13 +0000 (10:10 +0200)] 
Fix bug #6487: Missing DFS call in trans2 mkdir call. (cherry picked from commit 1a0005e1c508cf3b170d1c7e43b94a47b2820506)

16 years agos3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation.
Günther Deschner [Tue, 5 May 2009 10:54:21 +0000 (12:54 +0200)] 
s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation.

Based on patch from Blindauer Emmanuel <samba@mooby.net>.

Guenther

16 years agos3-lsa: Fix _lsa_LookupNames2() server implementation which always returned a NULL...
Günther Deschner [Mon, 11 May 2009 16:27:40 +0000 (18:27 +0200)] 
s3-lsa: Fix _lsa_LookupNames2() server implementation which always returned a NULL sid_array since 3.2.0.

Found by torture test.

This makes it possible to search for users while adding them to groups via
windows usermanager.

Fixes bug #6484.

Guenther

16 years agoFix bug #6476 - more then 3000 smbd-zombies in memory
Jeremy Allison [Thu, 18 Jun 2009 09:53:52 +0000 (11:53 +0200)] 
Fix bug #6476 - more then 3000 smbd-zombies in memory

We weren't reaping children in the [x]inetd case.

Jeremy.

16 years agos3/docs: Add documentation for 'net sam rights'.
Karolin Seeger [Thu, 18 Jun 2009 07:32:10 +0000 (09:32 +0200)] 
s3/docs: Add documentation for 'net sam rights'.

This is part of a fix for bug #6328.

Karolin

16 years agoRevert "s3/packaging: source -> source3"
Karolin Seeger [Wed, 17 Jun 2009 13:21:24 +0000 (15:21 +0200)] 
Revert "s3/packaging: source -> source3"

This reverts commit 646d465780fd0afea2454cf2e1c732c39a93491e.

Pushed by accident...

16 years agos3/packaging: pam_winbind has been moved to section 8.
Karolin Seeger [Wed, 17 Jun 2009 13:19:20 +0000 (15:19 +0200)] 
s3/packaging: pam_winbind has been moved to section 8.

Karolin
(cherry picked from commit 13494c0f8f9459c51b520a7cf60790e9e2f475b4)

16 years agos3/packaging: source -> source3
Karolin Seeger [Wed, 17 Jun 2009 13:18:16 +0000 (15:18 +0200)] 
s3/packaging: source -> source3

Karolin
(cherry picked from commit 6098be34ba62b96908e6dfe7a9d63519cee6a5af)

16 years agos3-netapi: Fix Bug #6451: net/libnetapi user rename using wrong access bits.
Günther Deschner [Tue, 16 Jun 2009 13:00:20 +0000 (15:00 +0200)] 
s3-netapi: Fix Bug #6451: net/libnetapi user rename using wrong access bits.

Guenther
(cherry picked from commit 29b8e08b83eeb0ab7d33bf46981cdbad8c35dc9b)

16 years agoFix bug #6421 - POSIX read-only open fails on read-only shares. The change to smbd...
Jeremy Allison [Sat, 30 May 2009 20:28:03 +0000 (13:28 -0700)] 
Fix bug #6421 - POSIX read-only open fails on read-only shares. The change to smbd/trans2.c opens up SETFILEINFO calls to POSIX_OPEN only. The change to first smbd/open.c closes 2 holes that would have been exposed by allowing POSIX_OPENS on readonly shares, and their ability to set arbitrary flags permutations. The O_CREAT -> O_CREAT|O_EXCL change removes an illegal combination (O_EXCL without O_CREAT) that previously was being passed down to the open syscall. Jeremy.

16 years agos3/libsmb: Fix typo in error message.
Karolin Seeger [Wed, 17 Jun 2009 08:23:21 +0000 (10:23 +0200)] 
s3/libsmb: Fix typo in error message.

Thanks to Herb Lewis <hlewis [at] panasas.com> for noticing!

Karolin
(cherry picked from commit 095f66b0ed74d4b5c7561ca05bbfdf33f60d0600)

16 years agos3/docs: Fix typo.
Karolin Seeger [Tue, 16 Jun 2009 09:49:54 +0000 (11:49 +0200)] 
s3/docs: Fix typo.

Karolin

16 years agoWHATSNEW: Fix typo.
Karolin Seeger [Mon, 15 Jun 2009 13:08:43 +0000 (15:08 +0200)] 
WHATSNEW: Fix typo.

Karolin

16 years agoWHATSNEW: Update changes since 3.3.4.
Karolin Seeger [Mon, 15 Jun 2009 12:31:04 +0000 (14:31 +0200)] 
WHATSNEW: Update changes since 3.3.4.

Karolin

16 years agoFix the section of the pam_winbind manpage.
Andreas Schneider [Mon, 15 Jun 2009 10:22:58 +0000 (12:22 +0200)] 
Fix the section of the pam_winbind manpage.

Signed-off-by: Andreas Schneider <mail@cynapses.org>
16 years agoMove pam_winbind to the right manpage section (8).
Andreas Schneider [Mon, 15 Jun 2009 10:21:07 +0000 (12:21 +0200)] 
Move pam_winbind to the right manpage section (8).

Signed-off-by: Andreas Schneider <mail@cynapses.org>
(cherry picked from commit 59ab1574e41993d24733affbca07d3f7da245fc7)
(cherry picked from commit d547aab1511c72e1cab034e2945f6ad63bda6659)

16 years agoDcoument the PAM data exports in the pam_winbind manpage.
Andreas Schneider [Mon, 15 Jun 2009 10:16:49 +0000 (12:16 +0200)] 
Dcoument the PAM data exports in the pam_winbind manpage.

Signed-off-by: Andreas Schneider <mail@cynapses.org>
(cherry picked from commit 1809ff4b2339bd3066532abccea0944da45edf64)
(cherry picked from commit 5d2dfba6d1699c6e417cc21233a1cc871f3c0ad1)

16 years agoDocument the try_first_pass option in the pam_winbind manpage.
Andreas Schneider [Mon, 15 Jun 2009 10:16:15 +0000 (12:16 +0200)] 
Document the try_first_pass option in the pam_winbind manpage.

Signed-off-by: Andreas Schneider <mail@cynapses.org>
(cherry picked from commit 779eea49de3f53040fe792de4b74b73a0c51ecb3)
(cherry picked from commit 24d6f697844bc85a03c047e5470abcfdd53735a2)

16 years agoAdd a synopsis section to the pam_winbind manpage.
Andreas Schneider [Mon, 15 Jun 2009 10:15:26 +0000 (12:15 +0200)] 
Add a synopsis section to the pam_winbind manpage.

Signed-off-by: Andreas Schneider <mail@cynapses.org>
(cherry picked from commit 24f9f32fedb92f881658db856db15173e57af0bd)
(cherry picked from commit 55df96313c5b966f41b0b5c426cf6a420cafa855)

16 years agoRevert the extra SAMR and LSA checks.
Jeremy Allison [Mon, 15 Jun 2009 08:43:27 +0000 (10:43 +0200)] 
Revert the extra SAMR and LSA checks.

These were added between 3.2.4 and 3.2.5 that have caused users problems.
This fixes among others bug #6089 and #6112.

16 years agos3/libsmb: Fix debug message.
Karolin Seeger [Mon, 15 Jun 2009 06:33:22 +0000 (08:33 +0200)] 
s3/libsmb: Fix debug message.

This fixes bug #6472.

Karolin

Signed-off-by: Volker Lendecke <vl@samba.org>
Was commit f92269a6 in master.

16 years agoFix bug #6297 - owner of sticky directory cannot delete files created by others....
Jeremy Allison [Fri, 12 Jun 2009 13:41:20 +0000 (15:41 +0200)] 
Fix bug #6297 - owner of sticky directory cannot delete files created by others. The reason we couldn't delete was we were erroring out early if requestor was not the owner of the file we wanted to delete, instead of checking if the requestor owned the directory as well. If either of these is true, we must go on and check the ACL. Karolin, this is a must for 3.4.0 and also 3.3.next. I'll update the bug report with patches for 3.4.0 and 3.3.next and ask vl to review. Jeremy.

16 years agoWHATSNEW: Attach older 3.3 release notes.
Karolin Seeger [Fri, 12 Jun 2009 08:15:51 +0000 (10:15 +0200)] 
WHATSNEW: Attach older 3.3 release notes.

Karolin

16 years agos3-groupdb: fix enum_aliasmem in ldb branch.
Günther Deschner [Sun, 7 Jun 2009 09:23:09 +0000 (11:23 +0200)] 
s3-groupdb: fix enum_aliasmem in ldb branch.

It is totally valid to have an alias with no members.
This fixes bug #6465.

Tridge, please check.

Found by RPC-SAMR torture test.

Guenther

16 years agos3-docs: Fix Bug #4280. Shutdown scripts are called as root for privileged users.
Günther Deschner [Thu, 11 Jun 2009 22:46:38 +0000 (00:46 +0200)] 
s3-docs: Fix Bug #4280. Shutdown scripts are called as root for privileged users.

GUenther
(cherry picked from commit 3938d1e5fa1996f64e92d33d6893bab620d16b23)
(cherry picked from commit 0491f038403036814acf6eacc7bb742345bbe27b)

16 years agoVERSION: Raise version number up to 3.3.5.
Karolin Seeger [Wed, 10 Jun 2009 15:25:07 +0000 (17:25 +0200)] 
VERSION: Raise version number up to 3.3.5.

Karolin

16 years agoWHATSNEW: Update changes since 3.3.4.
Karolin Seeger [Wed, 10 Jun 2009 15:16:42 +0000 (17:16 +0200)] 
WHATSNEW: Update changes since 3.3.4.

Karolin

16 years agos3/docs: Fix typos.
Karolin Seeger [Wed, 10 Jun 2009 06:39:35 +0000 (08:39 +0200)] 
s3/docs: Fix typos.

Fix typos reported by OPC oota <t-oota [at] dh.jp.nec.com>.
Thanks!

Karolin
(cherry picked from commit ad0d8032068fc9b920e205d3f5f923174101d777)
(cherry picked from commit b7d54f443ade79d3f2b71aa138fd5254754bb750)

16 years agoFurther fix for 6449
Volker Lendecke [Mon, 8 Jun 2009 08:05:11 +0000 (10:05 +0200)] 
Further fix for 6449

Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!

16 years agoFix bug 6449
Volker Lendecke [Mon, 8 Jun 2009 07:45:21 +0000 (09:45 +0200)] 
Fix bug 6449

Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!

16 years agoFix bug 6441 -- fix the compile with --enable-dnssd
Volker Lendecke [Sat, 6 Jun 2009 19:43:53 +0000 (21:43 +0200)] 
Fix bug 6441 -- fix the compile with --enable-dnssd

The server side of dnssd has been replaced with native avahi support. The code
is only left in in case some OS/X fan wants to revive it, and the client-side
has not been converted yet.

Fix the build of the server side by removing the #ifdef

16 years agos3/docs: Fix example.
Karolin Seeger [Sat, 6 Jun 2009 13:56:47 +0000 (15:56 +0200)] 
s3/docs: Fix example.

The 'ldap suffix' is not added automatically to the 'ldap admin dn'.
This fixes bug #5584.
Thanks to Stefan Bauer <stefan.bauer [at] plzk.de> for reporting!

Karolin
(cherry picked from commit 0fee798552038b730b0107540d6cfeb475803555)
(cherry picked from commit 629e7aa91a33a5428676d8f6eeac19ea9fec14d6)

16 years agoFix bug 6157
Volker Lendecke [Thu, 12 Mar 2009 16:23:17 +0000 (17:23 +0100)] 
Fix bug 6157

This patch picks the alphabetically smallest one of the multi-value attribute
"uid". This fixes a regression against 3.0 and also becomes deterministic.

16 years agos3/passdb: Fix debug message: 'net setmaxrid' does not exist.
Karolin Seeger [Sat, 6 Jun 2009 13:10:08 +0000 (15:10 +0200)] 
s3/passdb: Fix debug message: 'net setmaxrid' does not exist.

This is aiming bug #6351.

Karolin
(cherry picked from commit c94d1cd7b1dc3ff99ae5a1eb9058ed6015fb9749)

16 years agos3-samr: Fix Bug #6372, usermanager only displaying 1024 groups and aliases.
Günther Deschner [Mon, 25 May 2009 12:05:18 +0000 (14:05 +0200)] 
s3-samr: Fix Bug #6372, usermanager only displaying 1024 groups and aliases.

This is now also verified with the RPC-SAMR-LARGE-DC test.

Guenther
(cherry picked from commit fca7dce1a908570e463ddcbd663955fcafd1d843)

16 years agos3/docs: Fix typo.
Karolin Seeger [Fri, 5 Jun 2009 13:35:05 +0000 (15:35 +0200)] 
s3/docs: Fix typo.

Karolin
(cherry picked from commit 613c8acbdd93210b40ec6fa48cbbf297a061b3cc)
(cherry picked from commit c84f1c7ac9da7e26f28cb233efe45614f0cedea3)

16 years agoSimplify the dropbox patch
Jeremy Allison [Sat, 30 May 2009 09:30:16 +0000 (11:30 +0200)] 
Simplify the dropbox patch

16 years agoRe-Add the "dropbox" functionality with -wx rights on a directory
Volker Lendecke [Wed, 13 May 2009 13:46:35 +0000 (15:46 +0200)] 
Re-Add the "dropbox" functionality with -wx rights on a directory

16 years agos3/docs: Fix typo.
Karolin Seeger [Fri, 29 May 2009 07:49:49 +0000 (09:49 +0200)] 
s3/docs: Fix typo.

This fixes bug #4341.
Thanks to Michael Cartmell <michael.cartmell [at] thomson.com> for reporting!

Karolin
(cherry picked from commit 2228cc6a0f942b774bef7fb0b99009897fa4dff4)
(cherry picked from commit e1b1f14e0260395a8d452ea0a129bcc9bb3f98cc)

16 years agos3:idmap_tdb: filter out of range mappings in default idmap config
Michael Adam [Wed, 27 May 2009 17:12:28 +0000 (19:12 +0200)] 
s3:idmap_tdb: filter out of range mappings in default idmap config

This fixes bug #6415

Michael
(cherry picked from commit 3d3f39838261ddc401053dadcc5bd8e6317a3a8e)

16 years agos3:idmap_ldap: filter out of range mappings in default idmap config
Michael Adam [Wed, 27 May 2009 17:25:44 +0000 (19:25 +0200)] 
s3:idmap_ldap: filter out of range mappings in default idmap config

This fixes bug #6417

Michael
(cherry picked from commit e381c13b023f2b512b3f6aec133db9f323bc8132)

16 years agos3:idmap_tdb2: filter out of range mappings in default idmap config
Michael Adam [Wed, 27 May 2009 17:24:03 +0000 (19:24 +0200)] 
s3:idmap_tdb2: filter out of range mappings in default idmap config

This fixes bug #6416

Michael
(cherry picked from commit e12670a1053edf57af137026bd3fdb9fc7dfb0b2)

16 years agos3: zero an uninitialized array
Marc VanHeyningen [Tue, 5 May 2009 22:07:40 +0000 (22:07 +0000)] 
s3: zero an uninitialized array

Invalid pointers were being dereferenced in lookup_sids causing
occasional seg faults.

Signed-off-by: Tim Prouty <tprouty@samba.org>
16 years agos3/docs: Correct version number.
Karolin Seeger [Wed, 27 May 2009 16:10:49 +0000 (18:10 +0200)] 
s3/docs: Correct version number.

Karolin

16 years agoFix a race condition in winbind leading to a panic
Volker Lendecke [Sun, 24 May 2009 16:57:13 +0000 (18:57 +0200)] 
Fix a race condition in winbind leading to a panic

In winbind, we do multiple events in one select round. This needs fixing, but
as long as we're still using it, for efficiency reasons we need to do that.

What can happen is the following: We have outgoing data pending for a client,
thus

state->fd_event.flags == EVENT_FD_WRITE

Now a new client comes in, we go through the list of clients to find an idle
one. The detection for idle clients in remove_idle_client does not take the
pending data into account. We close the socket that has pending outgoing data,
the accept(2) one syscall later gives us the same socket.

In new_connection(), we do a setup_async_read, setting up a read fde. The
select from before however had found the socket (that we had already closed!!)
to be writable. In rw_callback we only want to see a readable flag, and we
panic in the SMB_ASSERT(flags == EVENT_FD_READ).

Found using

bin/smbtorture //127.0.0.1/tmp -U% -N 500 -o 2 local-wbclient

Volker

(commit 68c5c6df in master)

16 years agos3/docs: Fix typos.
Karolin Seeger [Mon, 25 May 2009 08:50:23 +0000 (10:50 +0200)] 
s3/docs: Fix typos.

Thanks to Oota Toshiya <t-oota at dh.jp.nec.com> for reporting!

Karolin
(cherry picked from commit f3df38362cc15211d9fca8229a0f9d9fc9c8e481)

16 years agoFix bug 6382: Case insensitive access to DFS links broken
Volker Lendecke [Wed, 20 May 2009 15:45:47 +0000 (17:45 +0200)] 
Fix bug 6382: Case insensitive access to DFS links broken

16 years agos3/docs: Fix shutdown script example.
Karolin Seeger [Tue, 19 May 2009 11:42:16 +0000 (13:42 +0200)] 
s3/docs: Fix shutdown script example.

This fixes bug #5897. Thanks to TAKAHASHI Motonobu
<monyo [at] samba.gr.jp> for reporting and providing the example!

Karolin
(cherry picked from commit f741b90ee8f74077871a0b5d1df55c0dd34a313f)

16 years agos3-auth: use full 16byte session key in make_user_info_netlogon_interactive().
Jeremy Allison [Thu, 7 May 2009 19:53:31 +0000 (12:53 -0700)] 
s3-auth: use full 16byte session key in make_user_info_netlogon_interactive().

Patch from Jeremy.

With this patch, I was able to join Windows 7 RC to a Samba3 DC, and login into a
Samba 3 Domain.

There are still two registry settings required:

HKLM\System\CCS\Services\LanmanWorkstation\Parameters
DWORD  DomainCompatibilityMode = 1
DWORD  DNSNameResolutionRequired = 0

Do *not* modify the other netlogon registry parameters that were passed around,
they weaken security.

Guenther / Jeremy.

16 years agos3-credentials: protect netlogon_creds_server_step() against NULL creds.
Guenther Deschner [Thu, 7 May 2009 19:53:00 +0000 (12:53 -0700)] 
s3-credentials: protect netlogon_creds_server_step() against NULL creds.

Found by SCHANNEL torture tests.

Guenther

16 years agoAfter getting confirmation from Guenther, add 3 changes we'll ultimately need to...
Jeremy Allison [Thu, 7 May 2009 19:52:35 +0000 (12:52 -0700)] 
After getting confirmation from Guenther, add 3 changes we'll ultimately need to fix bug #6099 Samba returns incurrate capabilities list. 1). Add a comment to point out that r->in.negotiate_flags is an aliased pointer to r->out.negotiate_flags. 2). Ensure we return NETLOGON_NEG_STRONG_KEYS in our flags return if the client requested it. 3). Clean up the error exits so we always return the same way. Signed off by Guenther. Jeremy.

16 years agos3-netlogon: Fix NETLOGON credential chain. Fixes Bug #6099 (Windows 7 joining Samba3...
Guenther Deschner [Thu, 7 May 2009 19:52:10 +0000 (12:52 -0700)] 
s3-netlogon: Fix NETLOGON credential chain. Fixes Bug #6099 (Windows 7 joining Samba3) and probably many, many more.

Jeremy, with 9a5d5cc1db0ee60486f932e34cd7961b90c70a56 you alter the in negotiate
flags (which are a pointer to the out negotiate flags assigned in the generated
netlogon server code). So, while you wanted to just set the *out* negflags, you
did in fact reset the *in* negflags, effectively eliminating the
NETLOGON_NEG_STRONG_KEYS bit (formerly known as NETLOGON_NEG_128BIT) which then
caused creds_server_init() to generate 64bit creds instead of 128bit, causing
the whole chain to break. *Please* check.

Guenther

16 years agoFix bug 6361: Make --rcfile work in smbget
Volker Lendecke [Fri, 15 May 2009 19:02:08 +0000 (21:02 +0200)] 
Fix bug 6361: Make --rcfile work in smbget

Thanks to j scott <gl@arlut.utexas.edu> for reporting!

16 years agoDo not use the file system GET_REAL_FILENAME for mangled names
Volker Lendecke [Wed, 15 Apr 2009 11:01:09 +0000 (13:01 +0200)] 
Do not use the file system GET_REAL_FILENAME for mangled names

16 years agoRevert "Do not use the file system GET_REAL_FILENAME for mangled names"
Karolin Seeger [Fri, 15 May 2009 13:25:30 +0000 (15:25 +0200)] 
Revert "Do not use the file system GET_REAL_FILENAME for mangled names"

This reverts commit 5a5dcd125fe236ddd93a6e56ae361fc84e306185.

16 years agos3/ldap: also handle DirX return codes
Björn Jacke [Thu, 7 May 2009 15:50:34 +0000 (17:50 +0200)] 
s3/ldap: also handle DirX return codes

this is a backport of f238809d236443b8968e1b4b197a55935c7c7e85 from master

16 years agos3:loadparm: handle registry config source in file_list - fixes bug #6320
Michael Adam [Wed, 6 May 2009 00:08:33 +0000 (02:08 +0200)] 
s3:loadparm: handle registry config source in file_list - fixes bug #6320

I.e. does not require smbd restart after changing share default options
in the global registry section with "include = registry".

Michael

This was commit 4842e45d59 in master.

16 years agos3:smbd: fix posix acls when setting an ACL without explicit ACE for the owner (bug...
Stefan Metzmacher [Fri, 8 May 2009 12:33:49 +0000 (14:33 +0200)] 
s3:smbd: fix posix acls when setting an ACL without explicit ACE for the owner (bug#2346)

The problem of bug #2346 remains for users exported by
winbindd, because create_token_from_username() just fakes
the token when the user is not in the local sam domain. This causes
user_in_group_sid() to give totally wrong results.
In uid_entry_in_group() we need to check if we already
have the full unix token in the current_user struct.
If so we should use the current_user unix token,
instead of doing a very complex user_in_group_sid()
which doesn't give reliable results anyway.

metze
(cherry picked from commit b79eff843be392f3065e912edca1434081d93c44)

16 years agoFix bug #6330 - DFS doesn't work on AIX. Jeremy.
Jeremy Allison [Fri, 8 May 2009 18:31:34 +0000 (11:31 -0700)] 
Fix bug #6330 - DFS doesn't work on AIX. Jeremy.

This was commit 3d6f4a7af in master.

16 years agos3/packaging: Fix build on RHEL when ccache is not available.
Karolin Seeger [Wed, 13 May 2009 08:07:56 +0000 (10:07 +0200)] 
s3/packaging: Fix build on RHEL when ccache is not available.

This fixes bug #5832.
Patch was provided by D.L. Meyer <dlmeyer [at] uiuc.edu>.

Thanks for reporting and providing the patch!

Karolin
(cherry picked from commit 42e0cb8c0a1b8470ac8e9ad1c5a741e299debb8f)

16 years agoFix Coverity ID 897: REVERSE_INULL
Volker Lendecke [Wed, 6 May 2009 10:00:49 +0000 (12:00 +0200)] 
Fix Coverity ID 897: REVERSE_INULL

16 years agoFix bug #6291 - force user stop working. A previous fix broke the invariant that...
Jeremy Allison [Tue, 28 Apr 2009 18:07:51 +0000 (11:07 -0700)] 
Fix bug #6291 - force user stop working. A previous fix broke the invariant that *uid is always initialized on return from create_token_from_username(). Restore it. Jeremy.

16 years agos3-netapi: Fix Bug #6309: support remote unjoining of Windows 2003 or greater.
Günther Deschner [Thu, 30 Apr 2009 21:37:26 +0000 (23:37 +0200)] 
s3-netapi: Fix Bug #6309: support remote unjoining of Windows 2003 or greater.

Found by David Markey <admin@dmarkey.com>. Thanks!

Guenther
(cherry picked from commit ab4b8c9c0438bc5afca17e3ebf05dde6f98bc0aa)

16 years agoFix bug 6336: "net groupmap set" segfaults
Volker Lendecke [Thu, 7 May 2009 08:09:32 +0000 (10:09 +0200)] 
Fix bug 6336: "net groupmap set" segfaults

16 years agoFix bug #6315 smbd crashes doing vfs_full_audit on IPC$ close event. The underlying...
Jeremy Allison [Mon, 4 May 2009 15:31:40 +0000 (08:31 -0700)] 
Fix bug #6315 smbd crashes doing vfs_full_audit on IPC$ close event. The underlying problem is that once SMBulogoff is called, all server_info contexts associated with the vuid should become invalid, even if that's the context being currently used by the connection struct (tid). When the SMBtdis comes in it doesn't need a valid vuid value, but the code called inside vfs_full_audit always assumes that there is one (and hence a valid conn->server_info pointer) available.

This is actually a bug inside the vfs_full_audit and other code inside Samba,
which should only indirect conn->server_info on calls which require AS_USER to
be set in our process table. I could fix all these issues, but there's no
guarentee that someone might not add more code that fails this assumption, as
it's a hard assumption to break (it's usually true).

So what I've done is to ensure that on SMBulogoff the previously used
conn->server_info struct is kept around to be used for print debugging purposes
(it won't be used to change to an invalid user context, as such calls need
AS_USER set). This isn't strictly correct, as there's no association with the
(now invalid) context being freed and the call that causes conn->server_info to
be indirected, but it's good enough for most cases.

The hard part was to ensure that once a valid context is used again (via new
sessionsetupX calls, or new calls on a still valid vuid on this tid) that we
don't leak memory by simply replacing the stored conn->server_info pointer. We
would never actually leak the memory (as all conn->server_info pointers are
talloc children of conn), but with the previous patch a malicious client could
cause many server_info structs to be talloced by the right combination of SMB
calls. This new patch introduces free_conn_server_info_if_unused(), which
protects against the above.
Jeremy.

This was commit e46a88ce35e1aba9d9a344773bc97a9f3f2bd616 in master.