]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
16 years agoRevert the extra SAMR and LSA checks.
Jeremy Allison [Fri, 12 Jun 2009 08:27:07 +0000 (10:27 +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-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)
(cherry picked from commit d4b57dab0beada704fcbeae86ae5b5dd257030a0)

16 years agoWHATSNEW: Add bug numbers.
Karolin Seeger [Wed, 10 Jun 2009 15:18:25 +0000 (17:18 +0200)] 
WHATSNEW: Add bug numbers.

Karolin

16 years agoWHATSNEW: Update changes since 3.2.11.
Karolin Seeger [Wed, 10 Jun 2009 10:57:43 +0000 (12:57 +0200)] 
WHATSNEW: Update changes since 3.2.11.

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

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

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

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

16 years agoWHATSNEW: Add changes since 3.2.11.
Karolin Seeger [Tue, 2 Jun 2009 12:00:50 +0000 (14:00 +0200)] 
WHATSNEW: Add changes since 3.2.11.

Karolin

16 years agoVERSION: Raise version number up to 3.2.12.
Karolin Seeger [Tue, 2 Jun 2009 10:39:11 +0000 (12:39 +0200)] 
VERSION: Raise version number up to 3.2.12.

Karolin

16 years agoWHATSNEW: Start WHATSNEW for 3.2.12.
Karolin Seeger [Tue, 2 Jun 2009 10:38:27 +0000 (12:38 +0200)] 
WHATSNEW: Start WHATSNEW for 3.2.12.

Karolin

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

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

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

16 years agos3/groupmapping: Groupdb mapping fix (bug #6386).
Jeremy Allison [Sat, 23 May 2009 19:04:54 +0000 (21:04 +0200)] 
s3/groupmapping: Groupdb mapping fix (bug #6386).

16 years agoInsure we always return NULL on error.
Simo Sorce [Fri, 22 May 2009 01:32:17 +0000 (21:32 -0400)] 
Insure we always return NULL on error.

It is not technically an ldb bug, but apparently some callers try to access
res before checking the ldb_search() return code.
So make their attempt very evident (a NULL dereference will make it cristal
clear where the bug is).

16 years agoMake test for open modes more robust against other bits.
Jeremy Allison [Wed, 25 Feb 2009 21:00:21 +0000 (13:00 -0800)] 
Make test for open modes more robust against other bits.
Jeremy.
(cherry picked from commit 8d178837f259757340a09a688ed194e3e4a92c36)
(cherry picked from commit 6631ca4a51d4b13d2edd2dc899f7b76c233825b5)

16 years agoFix bug in processing of open modes in POSIX open.
Jeremy Allison [Wed, 25 Feb 2009 20:54:58 +0000 (12:54 -0800)] 
Fix bug in processing of open modes in POSIX open.
Was missing case of "If file exists open. If file doesn't exist error."
Damn damn damn. CIFSFS client will have to have fallback cases
for this error for a long time.
Jeremy.
(cherry picked from commit b652082648c49b525d2b2ce619b575ee75bc242e)
(cherry picked from commit 12cf12f10c1c6adad568daf6c16144a99b0f822e)

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

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 [Mon, 11 May 2009 18:17:56 +0000 (11:17 -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 agoJeremy, with 9a5d5cc1db0ee60486f932e34cd7961b90c70a56 you alter the in negotiate...
Guenther Deschner [Mon, 11 May 2009 18:13:47 +0000 (11:13 -0700)] 
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 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
(cherry picked from commit 1b040289f14bb22d3b6ab07a452236549d6c9bf6)

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

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

16 years agoFix bug 5798: "CFLAGS info lost in configure"
Volker Lendecke [Thu, 2 Oct 2008 00:17:04 +0000 (02:17 +0200)] 
Fix bug 5798: "CFLAGS info lost in configure"

picked from 9097a67de

Volker
(cherry picked from commit 9ffb1e6f0ded2647efe567912873a1a63e2ffed1)

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

16 years agos3/docs: Remove unnecessary .sp.
Karolin Seeger [Wed, 6 May 2009 14:06:59 +0000 (16:06 +0200)] 
s3/docs: Remove unnecessary .sp.

Karolin
(cherry picked from commit 4a4dc776b2f0ca813abcf4f47f0d5721f75f3e6a)
(cherry picked from commit 6a617a9677da9df8f70cf2039245cfb5ce3d94c3)
(cherry picked from commit 8c5771422bf25dba0638c3419ac14f0841b94293)

16 years agos3-docs: Fix Bug #6331. Document "net dom join/net dom unjoin".
Günther Deschner [Wed, 6 May 2009 13:43:23 +0000 (15:43 +0200)] 
s3-docs: Fix Bug #6331. Document "net dom join/net dom unjoin".

Guenther
(cherry picked from commit e398f1e91575909d2a90fab1e6f00804815a0b2f)
(cherry picked from commit e19dddb2b438b75dcd995aaa763fcbe55d7de5cc)

16 years agos3/packaging: Add keyutils-devel to build requires.
Karolin Seeger [Mon, 4 May 2009 13:54:34 +0000 (15:54 +0200)] 
s3/packaging: Add keyutils-devel to build requires.

This should fiy bug #5853. Thanks to D.L. Meyer <dlmeyer [at] uiuc.edu>
for reporting.

Karolin
(cherry picked from commit d8de7e3193143ec50d86adc704123ca240a8f549)
(cherry picked from commit c89c2db8c51bd3cede2e2e8fb58214971eda4129)

16 years agos3/docs: Fix typo.
Karolin Seeger [Mon, 4 May 2009 13:17:30 +0000 (15:17 +0200)] 
s3/docs: Fix typo.

Karolin
(cherry picked from commit c2eb0d87a2436614741119ebd14fda05b42a2ddd)
(cherry picked from commit 98c238a54dbe3e64262252a9fb38b382c53c1bcf)

16 years ago3.2 samr bug 6301: fix samr_ConnectVersion enum which is 32bit not 16bit.
Günther Deschner [Tue, 28 Apr 2009 23:55:09 +0000 (01:55 +0200)] 
3.2 samr bug 6301: fix samr_ConnectVersion enum which is 32bit not 16bit.

Port of 67ca76c288eb095ae to 3.2

Signed-off-by: Volker Lendecke <vl@samba.org>
16 years agos3/docs: Fix typos.
Karolin Seeger [Sun, 3 May 2009 07:55:46 +0000 (09:55 +0200)] 
s3/docs: Fix typos.

That fixes bug #4247. Thanks to David McNeill <davemc [at] mcpond.co.nz>
for reporting!

Karolin
(cherry picked from commit eaf949947c2eb03363c4b6f588f87b70110d6ff7)
(cherry picked from commit cea79d1fbf44b0d5bff5aa12962fb3d3cb61c367)
(cherry picked from commit 226620d0ed221da983b4f662fcef14906588f1bd)

16 years agos3/docs: Fix typo.
Karolin Seeger [Sun, 3 May 2009 07:35:55 +0000 (09:35 +0200)] 
s3/docs: Fix typo.

This fixes bug #4245. Thanks to David McNeill <davemc [at] mcpond.co.nz>
for reporting!

Karolin
(cherry picked from commit 579c91581f5b6d5341a12923fe6cde377223caff)
(cherry picked from commit 49caab4044e47236594c6688f202aed555b9da61)
(cherry picked from commit 139f95c85f96e7ccba024283608f9ee5990f6676)

16 years agos3/docs: Fix serveral typos.
Karolin Seeger [Wed, 29 Apr 2009 12:12:01 +0000 (14:12 +0200)] 
s3/docs: Fix serveral typos.

This fixes bug #4315.
Thanks to Felipe Augusto van de Wiel <faw [at] cathedrallabs [dot] org>!

Karolin
(cherry picked from commit 3422b9c546cdd262bd747e1e737c2b6479b4d21e)
(cherry picked from commit 3da62734fffa99cde1084beeb69e94a7bc623dde)
(cherry picked from commit b487a48c876fcaf88ec3fb4b05bacdd9b0bd8cd0)

16 years agos3-selftest: test wbinfo --allocate-uid/gid.
Günther Deschner [Wed, 22 Apr 2009 21:48:24 +0000 (23:48 +0200)] 
s3-selftest: test wbinfo --allocate-uid/gid.

Guenther
(cherry picked from commit c3843c40b5c426910a184dcef3b17283e6e224e9)

16 years agoFix profile acls in some corner cases
Simo Sorce [Wed, 22 Apr 2009 13:12:58 +0000 (09:12 -0400)] 
Fix profile acls in some corner cases

Always add back the real original owner of the directory in the ACE List after
we steal its ACE for the Administrators group.

16 years agoAvoid duplicate aces
Simo Sorce [Wed, 22 Apr 2009 10:15:21 +0000 (06:15 -0400)] 
Avoid duplicate aces

When adding arbitrary aces to an nt_ace_list we need to make sure we
are not actually adding a duplicate.
add_or_replace_ace() takes care of doing the right thing.

16 years agoAdd comment explaining the previous fix.
Jeremy Allison [Wed, 22 Apr 2009 10:04:22 +0000 (03:04 -0700)] 
Add comment explaining the previous fix.
Jeremy.

16 years agoFix bug #6279 - winbindd crash. Cope with LDAP libraries returning LDAP_SUCCESS but...
Jeremy Allison [Wed, 22 Apr 2009 09:24:27 +0000 (02:24 -0700)] 
Fix bug #6279 - winbindd crash. Cope with LDAP libraries returning LDAP_SUCCESS but not returning a result.
Jeremy

16 years agos3:docs: document the --request-timeout option of net
Stefan Metzmacher [Fri, 3 Apr 2009 10:21:17 +0000 (12:21 +0200)] 
s3:docs: document the --request-timeout option of net

metze
(cherry picked from commit cdbbc81bad5d53397bf80898cf68d8867cf64cba)
(cherry picked from commit 1d1e859c4e08fed1775a170ccff459f3a18e13ba)
(cherry picked from commit 8775968526046f040a2e6ba8697d719b5e3bced8)

16 years agos3:net: add --request-timeout option
Stefan Metzmacher [Thu, 26 Mar 2009 19:32:55 +0000 (20:32 +0100)] 
s3:net: add --request-timeout option

metze
(cherry picked from commit 257809558bfab3e45703cf8be76357596392a3ea)
(cherry picked from commit e20b8706401d1a4eee0fe494825deef6ab23ab23)
(cherry picked from commit d80e02de5714aaa650bef91767ce0775bd2392f5)

16 years agos3:net_rpc: don't shutdown a cli_state passed from the caller
Stefan Metzmacher [Thu, 26 Mar 2009 19:29:24 +0000 (20:29 +0100)] 
s3:net_rpc: don't shutdown a cli_state passed from the caller

This fixes a crash bug if we timeout in net rpc trustdom list.

metze

(cherry picked from commit c0dfe0cf80ee50f395912b7d6aec0d87febd34c0)
(cherry picked from commit d87563604ca7b1c18c5a84d76726c2a99dc454f8)
(cherry picked from commit cba4214b963983730bedc792e391b5435889597a)

16 years agos3:registry: Prevent creation of keys containing the '/' character.
Michael Adam [Fri, 17 Apr 2009 09:40:17 +0000 (11:40 +0200)] 
s3:registry: Prevent creation of keys containing the '/' character.

Even though "net conf setparm abc/def comment xyz" does not
create a broken registry we do not want such keys to be created.
Since we get problems accessing these with "net registry" since
the registry code treats the '/' sign as a separator as a lower
level.

This makes e.g. "net conf setparm abc/def comment xyz" fail with
WERR_INVALID_PARAM, which is much more desirable than a broken
registry.tdb.

Michael

16 years agoWHATSNEW: Rewording.
Karolin Seeger [Fri, 17 Apr 2009 09:57:41 +0000 (11:57 +0200)] 
WHATSNEW: Rewording.

Karolin

16 years agoVERSION: Raise version number upt to 3.2.11.
Karolin Seeger [Fri, 17 Apr 2009 09:52:02 +0000 (11:52 +0200)] 
VERSION: Raise version number upt to 3.2.11.

Karolin

16 years agoWHATSNEW: Update changes since 3.2.10.
Karolin Seeger [Fri, 17 Apr 2009 08:42:31 +0000 (10:42 +0200)] 
WHATSNEW: Update changes since 3.2.10.

Karolin

16 years agoMerge branch 'v3-2-test' of /home/jmcd/samba/git.samba.org/samba-master into 32-test
Jim McDonough [Fri, 17 Apr 2009 07:23:50 +0000 (09:23 +0200)] 
Merge branch 'v3-2-test' of /home/jmcd/samba/git.samba.org/samba-master into 32-test

16 years agoWhen doing a cli_ulogoff don't invalidate the cnum, invalidate the vuid.
Jeremy Allison [Thu, 16 Apr 2009 22:14:37 +0000 (15:14 -0700)] 
When doing a cli_ulogoff don't invalidate the cnum, invalidate the vuid.
Jeremy.

16 years agoDon't look up local user for remote changes, even when root.
Jim McDonough [Thu, 16 Apr 2009 14:42:59 +0000 (16:42 +0200)] 
Don't look up local user for remote changes, even when root.

16 years agos3-lsa: Fix Bug #6263. Unexpected LookupSids reply crashes XP pre-SP3.
Günther Deschner [Wed, 15 Apr 2009 23:42:35 +0000 (01:42 +0200)] 
s3-lsa: Fix Bug #6263. Unexpected LookupSids reply crashes XP pre-SP3.

LookupSids needs to bounce back string sids in case of NT_STATUS_NONE_MAPPED.

Guenther
(cherry picked from commit 597be402e40ff880b595ae49a8600b932365cbcb)

16 years agoFix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+
Jeremy Allison [Wed, 15 Apr 2009 21:09:32 +0000 (14:09 -0700)] 
Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+
What a difference a name makes... :-). Just because something is missnamed
SA_RIGHT_SAM_OPEN_DOMAIN, when it should actually be SA_RIGHT_SAM_LOOKUP_DOMAIN,
don't automatically use it for a security check in _samr_OpenDomain().
Jeremy.

16 years agopackaging(RHEL): add cifs.upcall binary and manpage to client package
Michael Adam [Mon, 8 Sep 2008 13:51:57 +0000 (15:51 +0200)] 
packaging(RHEL): add cifs.upcall binary and manpage to client package

Michael
(cherry picked from commit f1b80bcb58b8aa5c586835dc201ce674b3417835)
(cherry picked from commit b4c58d49902d62f25aa0c9289d1857aa2636c028)

16 years agos3-loadparm: Fix resume command typo for "printing = vlp".
Guenther Deschner [Mon, 13 Apr 2009 16:44:54 +0000 (09:44 -0700)] 
s3-loadparm: Fix resume command typo for "printing = vlp".

16 years agoFix a memleak in an unlikely error path in change_notify_create()
Volker Lendecke [Sat, 11 Apr 2009 20:54:06 +0000 (13:54 -0700)] 
Fix a memleak in an unlikely error path in change_notify_create()

16 years agoFix bug #6254 - PUT/GET produces an error in IPv6 to a smb-server(3.3)
Jeremy Allison [Fri, 10 Apr 2009 05:46:31 +0000 (22:46 -0700)] 
Fix bug #6254 - PUT/GET produces an error in IPv6 to a smb-server(3.3)
has parameter "msdfs root = yes"
This was broken by the refactoring around create_file().
MSDFS pathname processing must be done FIRST.
MSDFS pathnames containing IPv6 addresses can
be confused with NTFS stream names (they contain
":" characters.
Jeremy.

16 years agos3/popt.h: Fix typo.
Karolin Seeger [Tue, 7 Apr 2009 18:01:27 +0000 (20:01 +0200)] 
s3/popt.h: Fix typo.

This used to be commit 8da2fa36 in master.

Karolin
(cherry picked from commit 3df28fce45ce552df2c0815597fc1808ea08b363)

16 years agos3/loadparm: Fiy typos.
Karolin Seeger [Tue, 7 Apr 2009 18:00:47 +0000 (20:00 +0200)] 
s3/loadparm: Fiy typos.

This used to be commit 44588095 in master.

Karolin
(cherry picked from commit 7648c51afaf844e576935dadc0d66a94e2cad28b)

16 years agos3/gpo_ldap: Fix typo.
Karolin Seeger [Tue, 7 Apr 2009 17:58:47 +0000 (19:58 +0200)] 
s3/gpo_ldap: Fix typo.

This used to be commit a103222e in master.

Karolin
(cherry picked from commit a33677c8a80925965a4023785fc3a221d2ed9585)

16 years agos3/smbconf_reg: Fix typo.
Karolin Seeger [Tue, 7 Apr 2009 17:58:14 +0000 (19:58 +0200)] 
s3/smbconf_reg: Fix typo.

This used to be commit 6343cab3 in master.

Karolin
(cherry picked from commit 56e877662dd6da64b348803c24e85f60ee6b3d85)

16 years agos3-examples: Fix Bug #6205. Correct sample smb.conf share configuration.
Günther Deschner [Mon, 6 Apr 2009 10:45:46 +0000 (12:45 +0200)] 
s3-examples: Fix Bug #6205. Correct sample smb.conf share configuration.

Thanks to Jeffrey Riaboy <dakusan@castledragmire.com>.

Guenther
(cherry picked from commit 2b1fe2c98f4e0013dee4cbae62dc36cdd4085c7d)

16 years agoFix smbd crash for close_on_completion
Volker Lendecke [Sat, 28 Mar 2009 18:58:45 +0000 (19:58 +0100)] 
Fix smbd crash for close_on_completion

handle_trans() can talloc_free "conn" if the client requests
close_on_completion. "state" is a talloc_child of conn, so it will be gone when
we later free state->data et al.

16 years agoAllow pdbedit to change a user rid/sid. Based on a fix from Alexander
Jeremy Allison [Thu, 2 Apr 2009 03:14:35 +0000 (20:14 -0700)] 
Allow pdbedit to change a user rid/sid. Based on a fix from Alexander
Zagrebin <alexz@visp.ru>.
Jeremy.

16 years agoWHATSNEW: Rewording.
Karolin Seeger [Wed, 1 Apr 2009 11:42:32 +0000 (13:42 +0200)] 
WHATSNEW: Rewording.

Karolin

16 years agoVERSION: Raise version number up to 3.2.10.
Karolin Seeger [Wed, 1 Apr 2009 11:32:07 +0000 (13:32 +0200)] 
VERSION: Raise version number up to 3.2.10.

Karolin

16 years agoWHATSNEW: Prepare WHATSNEW for 3.2.10.
Karolin Seeger [Wed, 1 Apr 2009 11:31:23 +0000 (13:31 +0200)] 
WHATSNEW: Prepare WHATSNEW for 3.2.10.

A release a day... ;-)

Karolin

16 years agos3: fix the fix for bug #6195 - dont let smbd child processes panic
Michael Adam [Wed, 1 Apr 2009 10:23:07 +0000 (12:23 +0200)] 
s3: fix the fix for bug #6195 - dont let smbd child processes panic

This patch makes sure the original and temporary TDBs are closed
_before_ the rename. Originally, the open TDB was renamed, and so
the name passdb.tdb.tmp stayed around in the db context. Hence
upon client connect, the smbd children died because reinit_after_fork()
calling tdb_reopen_all() would try to reopen passdb.tdb.tmp which
existed no longer...

Michael

16 years agoTidy up some convert_string_internal error cases, found by Andrew Bartlett.
Jeremy Allison [Wed, 1 Apr 2009 01:29:30 +0000 (18:29 -0700)] 
Tidy up some convert_string_internal error cases, found by Andrew Bartlett.
Jeremy.

16 years agoWHATSNEW: Fix announcement.
Karolin Seeger [Tue, 31 Mar 2009 14:12:30 +0000 (16:12 +0200)] 
WHATSNEW: Fix announcement.

Karolin

16 years agoVERSION: Raise version number up to 3.2.9.
Karolin Seeger [Tue, 31 Mar 2009 08:44:20 +0000 (10:44 +0200)] 
VERSION: Raise version number up to 3.2.9.

Karolin

16 years agoWHATSNEW: Update changes.
Karolin Seeger [Tue, 31 Mar 2009 08:43:47 +0000 (10:43 +0200)] 
WHATSNEW: Update changes.

Karolin

16 years agoEnsure files starting with multiple dots are hidden
Jeremy Allison [Mon, 30 Mar 2009 22:09:10 +0000 (15:09 -0700)] 
Ensure files starting with multiple dots are hidden
if "hide dot files" is set. Thanks to Barry Kelly <bkelly.ie@gmail.com>
for pointing this one out.
Jeremy.

16 years agoWHATSNEW: Update changes.
Karolin Seeger [Mon, 30 Mar 2009 10:43:17 +0000 (12:43 +0200)] 
WHATSNEW: Update changes.

Karolin

16 years agoFix the problem of 3.0.x passdb databases being version
Jeremy Allison [Sat, 28 Mar 2009 04:26:56 +0000 (21:26 -0700)] 
Fix the problem of 3.0.x passdb databases being version
3 but using a different hash calculation than 3.2.x passwd
databases (also version 3). Introduces a minor version
number.
Jeremy.

16 years ago[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errno
Derrell Lipman [Fri, 27 Mar 2009 21:10:04 +0000 (17:10 -0400)] 
[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errno

Fixed.

It turns out there were a number of places where cli_resolve_path() was called
and the error path upon that function failing did not set errno. There were a
couple of places the failure handling code did set errno to ENOENT, so I made
them all consistent, although I think better errno choices for this condition
exist, e.g.  EHOSTUNREACH.

Derrell

16 years agoFix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly...
Jeremy Allison [Fri, 27 Mar 2009 19:09:51 +0000 (12:09 -0700)] 
Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly. For the clustering case.
Clustered setups should have only ever used
the unsigned version of TDB_DATA in the
first place so they can't be in this mess :-).
Just do the normal upgrade in the clustered case.
Jeremy.

16 years agoWHATSNEW: Update changes since 3.2.8.
Karolin Seeger [Fri, 27 Mar 2009 13:04:38 +0000 (14:04 +0100)] 
WHATSNEW: Update changes since 3.2.8.

Karolin

16 years agoTry and fix the build farm RAW-STREAMS errors. Ordering of
Jeremy Allison [Thu, 26 Mar 2009 22:33:39 +0000 (15:33 -0700)] 
Try and fix the build farm RAW-STREAMS errors. Ordering of
modules shouldn't matter, so as vfs_streams_depot doesn't
implement get/setxattrs then call into the full VFS stack
at the top.
Jeremy

16 years agoFix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs to run...
Jeremy Allison [Thu, 26 Mar 2009 19:13:28 +0000 (12:13 -0700)] 
Fix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs to run elections
Fix logic bug that causes nmbd to wait 5 minutes before
looking for a master browser. This one is *old* :-). Thanks
for Simo for bugging me on this.
Jeremy.

16 years agos3: parse_packet can return NULL which is then dereferenced in match_mailslot_name
Tim Prouty [Thu, 26 Mar 2009 18:28:37 +0000 (11:28 -0700)] 
s3: parse_packet can return NULL which is then dereferenced in match_mailslot_name

16 years agoFix a scary "fill_share_mode_lock failed" message
Volker Lendecke [Thu, 26 Mar 2009 11:24:50 +0000 (12:24 +0100)] 
Fix a scary "fill_share_mode_lock failed" message

To me "fill_share_mode_lock failed" is a "can't happen" alert. There is
however a perfectly valid case in get_file_infos() when the file is not open.

Change the corresponding debug message to level 10 and explain more.

16 years agos3-net: Fix Bug #6102. NetQueryDisplayInformation could return wrong information.
Günther Deschner [Thu, 26 Mar 2009 09:41:11 +0000 (10:41 +0100)] 
s3-net: Fix Bug #6102. NetQueryDisplayInformation could return wrong information.

Guenther

16 years agos3-net: Fix Bug #6193: avoid messing with sync_context in fetch_database_to_ldif().
Günther Deschner [Wed, 25 Mar 2009 16:06:57 +0000 (17:06 +0100)] 
s3-net: Fix Bug #6193: avoid messing with sync_context in fetch_database_to_ldif().

We absolutely need to avoid messing with the sync_context as that breaks the
stream of replication data coming from the DC (only replicates ~350 instead of
~4000 groups).

Guenther

16 years agowinbind_pam: fix gcc 4.4 compile warning
Volker Lendecke [Tue, 24 Mar 2009 22:34:13 +0000 (15:34 -0700)] 
winbind_pam: fix gcc 4.4 compile warning

16 years agoFix two memleaks in the encryption code
Volker Lendecke [Tue, 24 Mar 2009 22:29:35 +0000 (15:29 -0700)] 
Fix two memleaks in the encryption code

ntlmssp_seal_packet creates its own signature data blob, which we then
have to free.

Jeremy, please check and merge appropriately (Yes, I'm asking you to do the
janitor work, I want you to *look* at this :-))

Volker

16 years agos3:smbd: if we allow trans2 on the IPC$ share, then we have to allow transs2 too.
Stefan Metzmacher [Tue, 24 Mar 2009 18:50:49 +0000 (11:50 -0700)] 
s3:smbd: if we allow trans2 on the IPC$ share, then we have to allow transs2 too.

Otherwise we'll confuse the client signing engine, when we reply an error to each transs2.

metze

16 years agoFix bug 6097
Volker Lendecke [Tue, 24 Mar 2009 10:07:16 +0000 (11:07 +0100)] 
Fix bug 6097

A client sent a SID with authority 0 and 0 sub-authorities. W2k3 replies with
NT_STATUS_INVALID_SID, even if other SIDs in the list are valid.

Thanks to Pavel <wylda@volny.cz> for the bug report!

16 years agos3:dsgetdcname: use parentheses in if condition to make negation clear
Björn Jacke [Mon, 23 Mar 2009 11:26:03 +0000 (12:26 +0100)] 
s3:dsgetdcname: use parentheses in if condition to make negation clear

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 87b428e424e2e3cca975ecd0efed327e72950a1d)

16 years agos3-krb5: Fix Coverity #762 (REVERSE_INULL).
Günther Deschner [Fri, 20 Mar 2009 10:11:04 +0000 (11:11 +0100)] 
s3-krb5: Fix Coverity #762 (REVERSE_INULL).

Guenther
(cherry picked from commit 97190ae184dff6450b1390c854f7426e2ee3f980)
(cherry picked from commit 0f7757e94bfa35d22a7349d78578685c0dba22d7)

16 years agos3-krb5: Fix Coverity #722 (RESOURCE_LEAK).
Günther Deschner [Thu, 19 Mar 2009 15:42:54 +0000 (16:42 +0100)] 
s3-krb5: Fix Coverity #722 (RESOURCE_LEAK).

Guenther
(cherry picked from commit 1524abd8bf12d82e1fb0063585fc9a465fc7bf9c)
(cherry picked from commit 3517388b5d5439ffe3f9629aaf826fa1dfbb4ba7)

16 years agos3:libsmb: fix smb signing for fragmented trans/trans2/nttrans requests
Stefan Metzmacher [Wed, 18 Mar 2009 06:56:51 +0000 (07:56 +0100)] 
s3:libsmb: fix smb signing for fragmented trans/trans2/nttrans requests

Before we send the secondary requests we need to remove the
old mid=>seqnum mapping and reset cli->mid and make the new
mid=>seqnum mapping "persistent".

The bug we had in cli_send_trans was this:
The first cli_send_smb() incremented cli->mid
and the secondary requests used the incremented mid,
but as cli->outbuf still had the correct mid,
we send the correct mid to the server. The real problem
was that the cli_send_smb() function stored the seqnum
under the wrong mid.

cli_send_nttrans() was totally broken and now follows the
same logic as cli_send_trans().

The good thing is that in practice the problem is unlikely to happen,
because max_xmit is large enough to avoid secondary requests.

metze
(cherry picked from commit 880fbc4e8cd67de73c4bcda94489eb1e1422a04b)
(cherry picked from commit 70466990b4b7c68ae95dbbcf741cd3f41f2dd0b3)
(cherry picked from commit d01cca5e3ddb925696d49a1ea728013ec1032372)

16 years agofix build on old Heimdal based systems
Björn Jacke [Mon, 16 Mar 2009 00:51:09 +0000 (01:51 +0100)] 
fix build on old Heimdal based systems

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 011ad7245d53a716c4c766f5ef8d317bb3a53d0f)

16 years agoAllow DFS client paths to work when POSIX pathnames have been
Jeremy Allison [Thu, 19 Mar 2009 03:54:13 +0000 (20:54 -0700)] 
Allow DFS client paths to work when POSIX pathnames have been
selected (we need to path in pathname /that/look/like/this).
Jeremy.

16 years agoFix bug #6196 - Unable to serve files with colons to Linux CIFS/VFS client
Jeremy Allison [Thu, 19 Mar 2009 02:58:01 +0000 (19:58 -0700)] 
Fix bug #6196 - Unable to serve files with colons to Linux CIFS/VFS client
Looks like the pathname parsing for POSIX paths got
broken when the code for doing Windows streams parsing got added.
Jeremy.

16 years agoFix bug 6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly.
Jeremy Allison [Wed, 18 Mar 2009 21:31:01 +0000 (14:31 -0700)] 
Fix bug 6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly.
This is a really nasty one to fix as in order to successfully update the
passdb.tdb we must do the equivalent of a tdbbackup to move to the new hash
values before we do the upgrade.
Jeremy.