samba.git
14 years agos3: Simplify pdb_set_plaintext_passwd: pwhistory==NULL can not happen anymore
Volker Lendecke [Mon, 14 Dec 2009 18:18:09 +0000 (19:18 +0100)]
s3: Simplify pdb_set_plaintext_passwd: pwhistory==NULL can not happen anymore

14 years agos3: Simplify pdb_set_plaintext_passwd: pwHistLen==0 was checked above
Volker Lendecke [Mon, 14 Dec 2009 18:16:58 +0000 (19:16 +0100)]
s3: Simplify pdb_set_plaintext_passwd: pwHistLen==0 was checked above

14 years agos3: Add a paranoia check to pdb_set_plaintext_passwd()
Volker Lendecke [Mon, 14 Dec 2009 18:12:50 +0000 (19:12 +0100)]
s3: Add a paranoia check to pdb_set_plaintext_passwd()

14 years agos3: Simplify pdb_set_plaintext_passwd() by removing a redundant condition
Volker Lendecke [Mon, 14 Dec 2009 17:50:38 +0000 (18:50 +0100)]
s3: Simplify pdb_set_plaintext_passwd() by removing a redundant condition

if (current_history_len != pwHistLen) {
     if (current_history_len < pwHistLen) {
     }
}

The second "if" is a bit pointless here

14 years agos3: Simplify pdb_set_plaintext_passwd: memcpy deals fine with 0 bytes
Volker Lendecke [Mon, 14 Dec 2009 17:44:38 +0000 (18:44 +0100)]
s3: Simplify pdb_set_plaintext_passwd: memcpy deals fine with 0 bytes

14 years agos3: Simplify pdb_set_plaintext_passwd by using talloc_zero_array
Volker Lendecke [Mon, 14 Dec 2009 17:43:03 +0000 (18:43 +0100)]
s3: Simplify pdb_set_plaintext_passwd by using talloc_zero_array

14 years agos3: Make use of talloc_array in pdb_set_plaintext_passwd()
Volker Lendecke [Mon, 14 Dec 2009 17:39:19 +0000 (18:39 +0100)]
s3: Make use of talloc_array in pdb_set_plaintext_passwd()

14 years agos3: Simplify pdb_set_plaintext_passwd() a bit
Volker Lendecke [Mon, 14 Dec 2009 17:24:04 +0000 (18:24 +0100)]
s3: Simplify pdb_set_plaintext_passwd() a bit

Remove an indentation by the early return in

+       if (pwHistLen == 0) {
+               /* Set the history length to zero. */
+               pdb_set_pw_history(sampass, NULL, 0, PDB_CHANGED);
+               return true;
+       }

14 years agos3: Simplify pdb_set_plaintext_passwd() slightly
Volker Lendecke [Mon, 14 Dec 2009 17:13:28 +0000 (18:13 +0100)]
s3: Simplify pdb_set_plaintext_passwd() slightly

No functional change, this just removes an indentation level by the early
"return True;" in

+       if ((pdb_get_acct_ctrl(sampass) & ACB_NORMAL) == 0) {
+               /*
+                * No password history for non-user accounts
+                */
+               return true;
+       }

Volker

14 years agos3: Fix a typo
Volker Lendecke [Mon, 14 Dec 2009 16:51:39 +0000 (17:51 +0100)]
s3: Fix a typo

14 years agos3: Avoid a memset(, 0, ) call
Volker Lendecke [Mon, 14 Dec 2009 16:43:56 +0000 (17:43 +0100)]
s3: Avoid a memset(, 0, ) call

14 years agoWHATSNEW: Update changes since 3.5.0rc1.
Karolin Seeger [Mon, 25 Jan 2010 10:28:46 +0000 (11:28 +0100)]
WHATSNEW: Update changes since 3.5.0rc1.

Karolin

14 years agos3: Fix bug 7052: "DFS broken on AIX (maybe others)"
William Jojo [Thu, 21 Jan 2010 13:21:03 +0000 (14:21 +0100)]
s3: Fix bug 7052: "DFS broken on AIX (maybe others)"
(cherry picked from commit c531d00ab4444db19ff6ba4c60ebdcc8319949c6)

14 years agos3:pdb_ldap: Fix large paged search.
Volker Lendecke [Mon, 18 May 2009 14:04:04 +0000 (16:04 +0200)]
s3:pdb_ldap: Fix large paged search.

Fix bug #6981 (Paged Search with DirX LDAP server broken).
(cherry picked from commit 0a3b576c0a4298cbe600ad8943e401e3a0639359)

14 years agos3-docs: Fix typos.
Karolin Seeger [Wed, 20 Jan 2010 12:34:50 +0000 (13:34 +0100)]
s3-docs: Fix typos.

Thanks to the Debian samba package maintainers
<pkg-samba-maint@lists.alioth.debian.org> for providing the patch!

Fix bug #7017 (Typos and spelling errors in manpages).

Karolin
(cherry picked from commit e1e6b19acff6d8ba3b70c3ab474a85de8b6f6a6c)

14 years agos3 net/i18n: Update .po files
Kai Blin [Tue, 19 Jan 2010 13:48:12 +0000 (14:48 +0100)]
s3 net/i18n: Update .po files
(cherry picked from commit add4edcd063591839111d474543ceea847413f6f)

Part 9/9 of a fix for bug #7039 (German translation of net is not complete).

14 years agos3 net: Fix compile warnings
Kai Blin [Tue, 19 Jan 2010 10:43:54 +0000 (11:43 +0100)]
s3 net: Fix compile warnings
(cherry picked from commit 66de52c4f4527ef43cfaf11c55616ec7602cce85)

Part 8/9 of a fix for bug #7039 (German translation of net is not complete).

14 years agos3 net/i18n: update .po files
Kai Blin [Tue, 19 Jan 2010 09:06:26 +0000 (10:06 +0100)]
s3 net/i18n: update .po files
(cherry picked from commit 6d33bb25e1aab72bb3e12a0824a758bacba32672)

Part 7/9 of a fix for bug #7039 (German translation of net is not complete).

14 years agos3 net/i18n: Use only one spelling for "Usage:"
Kai Blin [Tue, 19 Jan 2010 08:23:42 +0000 (09:23 +0100)]
s3 net/i18n: Use only one spelling for "Usage:"
(cherry picked from commit 09bc13728fc76cf784914a4066c793c297e50cff)

Part 6/9 of a fix for bug #7039 (German translation of net is not complete).

14 years agos3 net: Fix compile error with WITH_DNS_UPDATES
Kai Blin [Tue, 19 Jan 2010 08:36:55 +0000 (09:36 +0100)]
s3 net: Fix compile error with WITH_DNS_UPDATES

bd3c922e2bc1a163efc1d8c9cb59578bebb79616 introduced a compile-time error
when building with WITH_DNS_UPDATES.
(cherry picked from commit 28b512f904cee5a79aefd0aca2d839dbe37e5519)

Part 5/9 of a fix for bug #7039 (German translation of net is not complete).

14 years agos3/net: split up some printable stings to ease i18n
Björn Jacke [Mon, 18 Jan 2010 22:39:19 +0000 (23:39 +0100)]
s3/net: split up some printable stings to ease i18n

If we put strings like "Usage:" into separate _() macros and not the whole
"Usage:..." string we can cover much more messages by only one single
translation. The drawback is that the message in the sources looks less pretty.
(cherry picked from commit bd3c922e2bc1a163efc1d8c9cb59578bebb79616)

Part 4/9 of a fix for bug #7039 (German translation of net is not complete).

14 years agoѕ3/i18n/de: fix typo
Björn Jacke [Mon, 18 Jan 2010 21:07:55 +0000 (22:07 +0100)]
ѕ3/i18n/de: fix typo
(cherry picked from commit fb7a4621134b9054f33ccb48d7d8c1e4e4960b9a)

Part 3/9 of a fix for bug #7039 (German translation of net is not complete).

14 years agos3/i18n/de: improve some German translations
Björn Jacke [Mon, 18 Jan 2010 22:25:41 +0000 (23:25 +0100)]
s3/i18n/de: improve some German translations
(cherry picked from commit c3ef7a3d96763719de1df679d50fb8a00d1f7391)

Part 2/9 of a fix for bug #7039 (German translation of net is not complete).

14 years agonet: Add German translation, specially for the command listing
André Hentschel [Thu, 14 Jan 2010 18:49:18 +0000 (19:49 +0100)]
net: Add German translation, specially for the command listing

Signed-off-by: Kai Blin <kai@samba.org>
(cherry picked from commit 46842a68618b4c9faba25580e68a286b97f9337e)

Part 1/9 of a fix for bug #7039 (German translation of net is not complete).

14 years agoWHATSNEW: Update release notes.
Karolin Seeger [Tue, 19 Jan 2010 11:39:49 +0000 (12:39 +0100)]
WHATSNEW: Update release notes.

Karolin

14 years agos3:pdb_ldap: restore Samba 3.0.x behavior and use the first "uid" value.
Stefan Metzmacher [Tue, 5 Jan 2010 12:30:42 +0000 (13:30 +0100)]
s3:pdb_ldap: restore Samba 3.0.x behavior and use the first "uid" value.

See bug #6157 for more details.

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 25806f43ddee7e2653e907eea2c6fcc075960fa1)
(cherry picked from commit ac224452b94865db346ed68dc517f84d40e6303c)

14 years agos3:smbldap: add smbldap_talloc_first_attribute()
Stefan Metzmacher [Tue, 5 Jan 2010 12:30:19 +0000 (13:30 +0100)]
s3:smbldap: add smbldap_talloc_first_attribute()

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit c992127f8a96c37940a6d298c7c6859c47f83d9b)
(cherry picked from commit 915b7552b71904baf6a452bdc1649e76d8286a14)

14 years agos3-docs: Adapt version number in man vfs_scannedonly.
Karolin Seeger [Mon, 18 Jan 2010 10:44:10 +0000 (11:44 +0100)]
s3-docs: Adapt version number in man vfs_scannedonly.

Karolin

14 years agos3-docs: Add man page for vfs_scannedonly.
Olivier Sessink [Mon, 18 Jan 2010 10:40:33 +0000 (11:40 +0100)]
s3-docs: Add man page for vfs_scannedonly.

Fix bug #7028.
(cherry picked from commit 3fb359aa5698e393f37765ab279b5a4ba366f965)

14 years agos3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server
Volker Lendecke [Sat, 16 Jan 2010 12:31:44 +0000 (13:31 +0100)]
s3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server

A user has sent me a sniff where the OpenSolaris CIFS server returns "32" in
totalentries, but the array in ctr only contains 15 entries. Look at the right
delimiter for walking the array.

Fix bug #7046 (libsmbclient crash against OpenSolaris CIFS server).

14 years agoFix bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.
Jeremy Allison [Sat, 16 Jan 2010 01:45:21 +0000 (17:45 -0800)]
Fix bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.

In smbc_free_context libsmbclient just called free() on the string options
so it assumes the callers have malloced them before setting them via smbc_set
calls.

Change to correctly malloc/free string options to the library.
Protect against SMB_STRDUP of null.

Contains 2d41b1ab78639abe4ae030ff482573f464564dd7 and
f85b6ee90b88c7f7b2a92c8a5f3e2ebe59c1087b from master.

Jeremy

14 years agoModification of fix for bug 6876 - Delete of an object whose parent folder does not...
Jeremy Allison [Sun, 17 Jan 2010 01:03:06 +0000 (17:03 -0800)]
Modification of fix for bug 6876 - Delete of an object whose parent folder does not have delete rights fails even if the delete right is set on the object

Suggested by Volker. Reduce the surface area of the
become_root() unbecome_root() code to reduce the chance
of errors.

Jeremy.
(cherry picked from commit 98a495f1e674b7562a3d8b5dfc958ee95d256896)

14 years agoFix bug #6876 - Delete of an object whose parent folder does not have delete rights...
Jeremy Allison [Wed, 13 Jan 2010 00:04:44 +0000 (16:04 -0800)]
Fix bug #6876 - Delete of an object whose parent folder does not have delete rights fails even if the delete right is set on the object.

Final fix for the vfs_acl_xattr and vfs_acl_tdb code.
Ensure we can delete a file even if the underlying POSIX
permissions don't allow it, if the Windows permissions do.

Jeremy.
(cherry picked from commit 47c1d9b39f292772e8d8f7a737ddff6c8bdfdeae)

14 years agoWHATSNEW: Start 3.5.0rc2 release notes.
Karolin Seeger [Fri, 15 Jan 2010 14:56:38 +0000 (15:56 +0100)]
WHATSNEW: Start 3.5.0rc2 release notes.

Karolin

14 years agoVERSION: Raise version number up to 3.5.0rc2.
Karolin Seeger [Fri, 15 Jan 2010 14:30:06 +0000 (15:30 +0100)]
VERSION: Raise version number up to 3.5.0rc2.

Karolin

14 years agos3-libsmbclient: Fix crash bug in SMBC_parse_path().
Günther Deschner [Thu, 14 Jan 2010 18:34:26 +0000 (19:34 +0100)]
s3-libsmbclient: Fix crash bug in SMBC_parse_path().

Patch from Tim Waugh <twaugh@redhat.com>.
This resolves https://bugzilla.redhat.com/show_bug.cgi?id=552658

LIBSMBCLIENT-OPENDIR torture test checks this as well.

Guenther
(cherry picked from commit e635b0074c55e0376495abe940355aa7b04f0b70)

Fix bug #7043 (SIGSEGV in "SMBC_parse_path").

14 years agodocs: fix xml tag in the pdbedit manpage
Michael Adam [Tue, 12 Jan 2010 11:29:14 +0000 (12:29 +0100)]
docs: fix xml tag in the pdbedit manpage

Michael
(cherry picked from commit 3b58b2ac39a91c0c9f074abf079f700c7e886841)

Signed-off-by: Michael Adam <obnox@samba.org>
Fix bug #7041.

14 years agos3-docs: mention -K option in pdbedit manpage.
Günther Deschner [Fri, 8 Jan 2010 09:38:46 +0000 (10:38 +0100)]
s3-docs: mention -K option in pdbedit manpage.

Guenther
(cherry picked from commit 9bdd3d6c1b1aec536d87fb2e2d4e8495b3c88ee6)

Signed-off-by: Michael Adam <obnox@samba.org>
14 years agoFix bug #7036 - net rpc getsid fails in hardened windows environments.
Jeremy Allison [Thu, 14 Jan 2010 23:39:30 +0000 (15:39 -0800)]
Fix bug #7036 - net rpc getsid fails in hardened windows environments.

Fix suggested by Dave.Daugherty@Centrify.com.
(cherry picked from commit 6653cc43233381a941cdd85550f04b087fe880ff)

14 years agos3-lanman: Allow a level2 descriptor for a level1 NetShareGetInfo
Giovanni Bajo [Mon, 11 Jan 2010 21:18:40 +0000 (22:18 +0100)]
s3-lanman: Allow a level2 descriptor for a level1 NetShareGetInfo

Windows seems to allow this

http://lists.samba.org/archive/samba-technical/2009-November/068116.html

has a dump of this.
(cherry picked from commit d75d14f8de0b1fe36028e605c9453631d9cd70bc)

Fix bug #7029 (NetShareEnum: disable sanity check for better compatibility with
Windows).

14 years agoPart 4 of bug #7028 - include scannedonly VFS module
Olivier Sessink [Thu, 14 Jan 2010 20:13:14 +0000 (12:13 -0800)]
Part 4 of bug #7028 - include scannedonly VFS module

Fix some issues with handling names ending in '/'.
(cherry picked from commit 3c42e11ff398d0307a480d49191aae3bf9869cd9)

14 years agoFix two uses of strncat -> strlcat. Ensure proper use of strncpy when setting socket...
Jeremy Allison [Wed, 13 Jan 2010 05:18:36 +0000 (21:18 -0800)]
Fix two uses of strncat -> strlcat. Ensure proper use of strncpy when setting socket name.

Jeremy.
(cherry picked from commit ed457e07b9bdc0acda9dc52307d8bc2118f32f06)

14 years agos3: Lift the version of the scannedonly VFS module (cherry picked from commit 2d4dda0...
Volker Lendecke [Tue, 12 Jan 2010 21:58:51 +0000 (22:58 +0100)]
s3: Lift the version of the scannedonly VFS module (cherry picked from commit 2d4dda0688d5c88fb73ae17db970afe9d0f77f6a)

14 years agoBug #7028 part1
Olivier Sessink [Wed, 13 Jan 2010 22:53:27 +0000 (14:53 -0800)]
Bug #7028 part1

s3: Add the "scannedonly" vfs virus scanner interface module

14 years agoFix bug #7033 - SMBrmdir call always returns true, even on failure to delete a directory.
Jeremy Allison [Wed, 13 Jan 2010 22:36:37 +0000 (14:36 -0800)]
Fix bug #7033 - SMBrmdir call always returns true, even on failure to delete a directory.

There is a codepath missing to propagate back error returns from the rmdir
POSIX call inside close_directory when delete on close is set. This means doing
an rmdir on a Windows command line will always report success, even when the
directory was not deleted. This fix adds that codepath back into Samba.

(This fix contains both ce8dcbe91ba0252140a0e4f84ea4bc746259ddde and
105f876eb447e6839b9b19c2d264c4a168cf0cc9 from master).

Jeremy.

14 years agos3: Fix a winbind segfault in "trusted_domains"
Volker Lendecke [Wed, 13 Jan 2010 11:20:26 +0000 (12:20 +0100)]
s3: Fix a winbind segfault in "trusted_domains"

We have to initialize domain->backend by calling "get_cache" before doing a
query

Thanks to Christian Ambach to find this :-)
(cherry picked from commit 026b23062eeee23dffeb627800b3cb6f55d89ad6)

Fix bug #7037.

14 years agoFix bug #7034 - vfs_cap causes signal 11 (SIGSEGV) (cherry picked from commit ca84795...
SASAJIMA Toshihiro [Wed, 13 Jan 2010 05:43:23 +0000 (21:43 -0800)]
Fix bug #7034 - vfs_cap causes signal 11 (SIGSEGV) (cherry picked from commit ca847952054f5bbde1d40ad4260589b6fcc9721d)

14 years agos3: Fix a segfault in winbindd_dual_ccache_ntlm_auth()
Volker Lendecke [Sat, 9 Jan 2010 19:22:00 +0000 (20:22 +0100)]
s3: Fix a segfault in winbindd_dual_ccache_ntlm_auth()

ntlmssp_update allocates the reply_blob as a child of ntlmssp_state. This means
with ntlmss_end() it will be gone. winbindd_dual_ccache_ntlm_auth used the blob
after the ntlmssp_end().
(cherry picked from commit 43c841b6bd92e987109df81b6b8a2b85f21b0181)

Addresses bug #7027 (winbindd crash in winbindd_dual_ccache_ntlm_auth due to
freed memory reference.)

14 years agoRe-fix bug 5202 - cannot change ACLs on writable file with "dos filemode=yes"
Jeremy Allison [Fri, 8 Jan 2010 18:17:46 +0000 (10:17 -0800)]
Re-fix bug 5202 - cannot change ACLs on writable file with "dos filemode=yes"

This bug re-occurred for 3.3.x and above.

The reason is that to change a NT ACL we now have to open the file requesting
WRITE_DAC and WRITE_OWNER access. The mapping from POSIX "w" to NT permissions
in posix_acls doesn't add these bits when "dos filemode = yes", so even though
the permission or owner change would be allowed by the POSIX ACL code, the
NTCreateX call fails with ACCESS_DENIED now we always check NT permissions
first.

Added in the mapping from "w" to WRITE_DAC and WRITE_OWNER access.

Jeremy.
(cherry picked from commit d7713d11a6dc2d66c820d7496bc45eb5fe527fbf)

14 years agos3: Lock down some srvsvc calls according to what w2k3 seems to do
Volker Lendecke [Thu, 7 Jan 2010 10:47:09 +0000 (11:47 +0100)]
s3: Lock down some srvsvc calls according to what w2k3 seems to do

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Thu, 7 Jan 2010 10:01:17 +0000 (11:01 +0100)]
WHATSNEW: Update changes.

Karolin

14 years agotdb: fix standalone 'make installdocs'
Stefan Metzmacher [Wed, 6 Jan 2010 13:39:43 +0000 (14:39 +0100)]
tdb: fix standalone 'make installdocs'

metze
(cherry picked from commit c01f443ebca5e0b6f65fe8b3ab031da51dce2e89)

14 years agotdb: create symbol links to shared libraries see https://bugzilla.samba.org/show_bug...
Brian Lu [Thu, 17 Dec 2009 06:39:09 +0000 (14:39 +0800)]
tdb: create symbol links to shared libraries see https://bugzilla.samba.org/show_bug.cgi?id=6991 for details

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 0a3a6bb8f910df02cb429fdeacf0ab8d683e0b89)

14 years agotalloc: create symbol links to shared libraries see https://bugzilla.samba.org/show_b...
Brian Lu [Thu, 17 Dec 2009 06:48:59 +0000 (14:48 +0800)]
talloc: create symbol links to shared libraries see https://bugzilla.samba.org/show_bug.cgi?id=6991 for details

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit eff6022d51f578dfc48f1d66dd8ec1e860dfd7b3)

14 years agotevent: create symbol links to shared libraries see https://bugzilla.samba.org/show_b...
Brian Lu [Thu, 17 Dec 2009 06:55:57 +0000 (14:55 +0800)]
tevent: create symbol links to shared libraries see https://bugzilla.samba.org/show_bug.cgi?id=6991 for details

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit f408d58d95f5ac10849742fdcdf7e6160196e8e0)

14 years agotdb: Also build and install tdb manpages from standalone tdb.
Jelmer Vernooij [Sun, 20 Dec 2009 17:01:24 +0000 (18:01 +0100)]
tdb: Also build and install tdb manpages from standalone tdb.
(cherry picked from commit 0110990f01390c80b8db423ba7eed486883219de)

(Version changed to 3.5)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4: Fix result check for getaddrinfo()
Kamen Mazdrashki [Wed, 6 Jan 2010 11:40:33 +0000 (13:40 +0200)]
s4: Fix result check for getaddrinfo()

I think this completes commit 50feca550eed7828198b7c0fc5f0e5ddc863313d.
Now result should be handled correctly both for systems that
support EAI_NODATA but returns EAI_NONAME (as my Ubuntu 9.x)
and systems that doesn't support EAI_NODATA at all.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit a2044b9a61d9c8ca66067b286ad9bc01cf0490b9)

14 years agoWHATSNEW: Update changes since 3.5.0pre2.
Karolin Seeger [Thu, 7 Jan 2010 09:24:28 +0000 (10:24 +0100)]
WHATSNEW: Update changes since 3.5.0pre2.

Karolin

14 years agos4-smbtorture: add test_ChangeID to RPC-SPOOLSS.
Günther Deschner [Wed, 6 Jan 2010 18:34:33 +0000 (19:34 +0100)]
s4-smbtorture: add test_ChangeID to RPC-SPOOLSS.

This tests ChangeID consistency between spoolss_GetPrinterData,
spoolss_GetPrinterDataEx and spoolss_GetPrinter (level 0).

Guenther
(cherry picked from commit 3dbe8603d967d9d1b13290ec0f0556c7323a7692)

14 years agos4-smbtorture: add test_SetPrinter to RPC-SPOOLSS.
Günther Deschner [Wed, 6 Jan 2010 18:33:39 +0000 (19:33 +0100)]
s4-smbtorture: add test_SetPrinter to RPC-SPOOLSS.

Guenther
(cherry picked from commit 7568f49134c548c470e99c51e237ad3e225d6488)

14 years agos4-smbtorture: refactor test_GetPrinter in RPC-SPOOLSS.
Günther Deschner [Wed, 6 Jan 2010 16:51:34 +0000 (17:51 +0100)]
s4-smbtorture: refactor test_GetPrinter in RPC-SPOOLSS.

Guenther
(cherry picked from commit 0457cf915b724e3afd54ab1b5c8b96dcb5b7550a)

14 years agos3-net: use generated krb5.conf in 'net ads testjoin'
Günther Deschner [Wed, 16 Dec 2009 20:22:50 +0000 (21:22 +0100)]
s3-net: use generated krb5.conf in 'net ads testjoin'

Guenther
(cherry picked from commit 475d296065d57f9b38b109203b40ed0b47a2ac7e)

14 years agos3-docs: mention -M option and remove nonexisting -G option in pdbedit manpage.
Günther Deschner [Wed, 23 Dec 2009 09:33:13 +0000 (10:33 +0100)]
s3-docs: mention -M option and remove nonexisting -G option in pdbedit manpage.

Guenther
(cherry picked from commit 3b40ec83705f7ea61f4d4b88438493b6c197f222)

14 years agoSecond part of the fix for bug #7020 - smbd using 2G memory.
Jeremy Allison [Wed, 6 Jan 2010 21:11:00 +0000 (13:11 -0800)]
Second part of the fix for bug #7020 - smbd using 2G memory.

There was a second leak in the processing of the out_data.frag
prs_struct. It needs freeing once the current pdu has been returned
asynchronously.

Jeremy.
(cherry picked from commit d5995eec7e5fd487b57b8805095ffbc74796411a)

14 years agoFix bug #7020 - smbd using 2G memory.
Jeremy Allison [Tue, 5 Jan 2010 22:34:00 +0000 (14:34 -0800)]
Fix bug #7020 - smbd using 2G memory.

When deferring an async pipe writeX and readX transfer
the outstanding request struct onto the conn struct. This
needs freeing after the packet is finally processed.

Jeremy.
(cherry picked from commit f6bd654a6c878111f0f0f4d07adb644fc3bbf224)

14 years agos3: List trusted domains from wcache when domain is offline.
Bo Yang [Wed, 6 Jan 2010 11:13:59 +0000 (19:13 +0800)]
s3: List trusted domains from wcache when domain is offline.

Signed-off-by: Bo Yang <boyang@samba.org>
(cherry picked from commit d06fb8e02706559e91c6d185427409bb093bb896)

14 years agos3: Make winbindd_cache.c aware of domain offline to avoid unnecessary backend query.
Bo Yang [Wed, 6 Jan 2010 07:05:20 +0000 (15:05 +0800)]
s3: Make winbindd_cache.c aware of domain offline to avoid unnecessary backend query.

Signed-off-by: Bo Yang <boyang@samba.org>
(cherry picked from commit 133638c8aea7280d01b5a23150428977e9ff0e11)

14 years agos3: Fix infinite loop in NCACN_IP_TCP asa there is no timeout. Assume lsa_pipe_tcp...
Bo Yang [Wed, 6 Jan 2010 04:13:35 +0000 (12:13 +0800)]
s3: Fix infinite loop in NCACN_IP_TCP asa there is no timeout. Assume lsa_pipe_tcp is ok but network is down, then send request is ok, but select() on writeable fds loops forever since there is no response.

Signed-off-by: Bo Yang <boyang@samba.org>
(cherry picked from commit 36493bf2f6634b84c57107bcb86bcbf3e82e80fc)

14 years agos3 net: Fix up a share type translation and translate some more strings
Kai Blin [Tue, 5 Jan 2010 08:54:04 +0000 (09:54 +0100)]
s3 net: Fix up a share type translation and translate some more strings
(cherry picked from commit da41f23bdad1ea3a1a49110217cfde3efcde5075)

14 years agos3 net: Add a few missing gettext calls.
Kai Blin [Tue, 5 Jan 2010 08:43:34 +0000 (09:43 +0100)]
s3 net: Add a few missing gettext calls.

Many many thanks to Adi Roiban from #ubuntu-translators for helping me find
and fix my problems with the translations.
(cherry picked from commit 9a9d737070bfde62f2d5a35ad25606da578f9f7e)

14 years agonet: Add some German translation
André Hentschel [Mon, 28 Dec 2009 01:58:40 +0000 (02:58 +0100)]
net: Add some German translation

Signed-off-by: Kai Blin <kai@samba.org>
(cherry picked from commit b0dd364cdde107577c74a91f3a65989e97a2c073)

14 years agoVERSION: Raise version number up to 3.5.0rc1.
Karolin Seeger [Mon, 4 Jan 2010 15:36:14 +0000 (16:36 +0100)]
VERSION: Raise version number up to 3.5.0rc1.

Karolin

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Mon, 4 Jan 2010 13:42:46 +0000 (14:42 +0100)]
WHATSNEW: Update changes.

Karolin

14 years agos3: Happy New Year 2010
Stefan Metzmacher [Mon, 4 Jan 2010 07:42:03 +0000 (08:42 +0100)]
s3: Happy New Year 2010

metze
(cherry picked from commit 2ed51fbc4c3ff576db31c0258a91dc6347aae670)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agoPrevent NULL dereference if group has no members
Jim McDonough [Wed, 30 Dec 2009 20:04:55 +0000 (15:04 -0500)]
Prevent NULL dereference if group has no members

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Tue, 29 Dec 2009 10:19:36 +0000 (11:19 +0100)]
WHATSNEW: Update changes.

Karolin

14 years agos3: Check for lp_winbind_trusted_domains_only in wb_gettoken()
Volker Lendecke [Mon, 28 Dec 2009 22:35:25 +0000 (23:35 +0100)]
s3: Check for lp_winbind_trusted_domains_only in wb_gettoken()

This avoids one walk of the domain list

14 years agos3: Move a lp_winbind_trusted_domains_only() check to wb_getgrsid()
Volker Lendecke [Mon, 28 Dec 2009 22:14:43 +0000 (23:14 +0100)]
s3: Move a lp_winbind_trusted_domains_only() check to wb_getgrsid()

winbindd_getgrgid was not protected by this.

14 years agos3: Pass netr_DomainTrustList instead of names and sids through (*trusted_domains)
Volker Lendecke [Mon, 28 Dec 2009 14:51:36 +0000 (15:51 +0100)]
s3: Pass netr_DomainTrustList instead of names and sids through (*trusted_domains)

14 years agos3: Simplify winbindd_ads.c:trusted_domains()
Volker Lendecke [Mon, 28 Dec 2009 14:27:42 +0000 (15:27 +0100)]
s3: Simplify winbindd_ads.c:trusted_domains()

No real code change, this just removes an indentation by turning

if ( NT_STATUS_IS_OK(result) && trusts.count) {

into

if (!NT_STATUS_IS_OK(result)) {
        return result;
}
if (trusts.count == 0) {
        return NT_STATUS_OK;
}

14 years agos3: Remove some unused code
Volker Lendecke [Mon, 28 Dec 2009 13:56:58 +0000 (14:56 +0100)]
s3: Remove some unused code

Watch the #if 0 -- we never stored this in the cache anymore

14 years agos3: Simplify winbindd_list_trusted_domains() slightly
Volker Lendecke [Mon, 28 Dec 2009 12:49:01 +0000 (13:49 +0100)]
s3: Simplify winbindd_list_trusted_domains() slightly

14 years agos3: Simplify "setup_domain_child" slightly
Volker Lendecke [Mon, 28 Dec 2009 09:57:01 +0000 (10:57 +0100)]
s3: Simplify "setup_domain_child" slightly

14 years agos3:winbind Make the normal client exit message a bit more understandable
Volker Lendecke [Sat, 26 Dec 2009 17:00:32 +0000 (18:00 +0100)]
s3:winbind Make the normal client exit message a bit more understandable

14 years agos3: Fix a typo found by Matthias Dieter Wallnöfer <mdw@samba.org> -- thanks :-)
Volker Lendecke [Sat, 26 Dec 2009 14:20:22 +0000 (15:20 +0100)]
s3: Fix a typo found by Matthias Dieter Wallnöfer <mdw@samba.org> -- thanks :-)

14 years agos3: Fix a bogus uninitialized variable warning
Volker Lendecke [Thu, 24 Dec 2009 11:56:09 +0000 (12:56 +0100)]
s3: Fix a bogus uninitialized variable warning

14 years agos3: Replace IS_DOMAIN_OFFLINE by a function
Volker Lendecke [Thu, 24 Dec 2009 11:52:24 +0000 (12:52 +0100)]
s3: Replace IS_DOMAIN_OFFLINE by a function

14 years agos3: Fix some nonempty blank lines
Volker Lendecke [Wed, 23 Dec 2009 14:22:09 +0000 (15:22 +0100)]
s3: Fix some nonempty blank lines

14 years agos3: winbindd_cli_state->getgrent_state is no longer used
Volker Lendecke [Thu, 24 Dec 2009 11:52:00 +0000 (12:52 +0100)]
s3: winbindd_cli_state->getgrent_state is no longer used

14 years agos3: getgrent_state has been replaced by grent_state
Volker Lendecke [Thu, 24 Dec 2009 11:51:09 +0000 (12:51 +0100)]
s3: getgrent_state has been replaced by grent_state

14 years agos3: Remove unused delete_negative_conn_cache()
Volker Lendecke [Thu, 24 Dec 2009 12:51:50 +0000 (13:51 +0100)]
s3: Remove unused delete_negative_conn_cache()

14 years agos3: Remove unused flush_negative_conn_cache()
Volker Lendecke [Thu, 24 Dec 2009 12:50:39 +0000 (13:50 +0100)]
s3: Remove unused flush_negative_conn_cache()

14 years agos3: Remove some unnecessary variables from libsmb/conn_cache.c
Volker Lendecke [Thu, 24 Dec 2009 12:47:35 +0000 (13:47 +0100)]
s3: Remove some unnecessary variables from libsmb/conn_cache.c

14 years agos3: Fix a comment in conn_cache.c
Volker Lendecke [Thu, 24 Dec 2009 12:46:16 +0000 (13:46 +0100)]
s3: Fix a comment in conn_cache.c

14 years agos3: Fix a 64-bit error
Volker Lendecke [Thu, 24 Dec 2009 12:40:24 +0000 (13:40 +0100)]
s3: Fix a 64-bit error

14 years agos3: Remove some pointless SMB_ASSERTs
Volker Lendecke [Thu, 24 Dec 2009 12:36:00 +0000 (13:36 +0100)]
s3: Remove some pointless SMB_ASSERTs

14 years agos3: Remove some pointless casts
Volker Lendecke [Thu, 24 Dec 2009 12:14:18 +0000 (13:14 +0100)]
s3: Remove some pointless casts

14 years agoAttempt to fix one of the last two bugs with the full Windows ACL support.
Jeremy Allison [Thu, 24 Dec 2009 01:19:22 +0000 (17:19 -0800)]
Attempt to fix one of the last two bugs with the full Windows ACL support.

When returning an underlying ACL on a directory, normally on a
POSIX system it has no inheritable entries, which breaks the
Windows ACL when a user does a get/set of a Windows ACL on a
POSIX directory with no existing stored Windows ACL from
the Windows ACL editor. What happens is any new entry added
by the user gets set inheritable, but none of the others
entries are (as returned by default). So any new files then
only inherit the single new ACE entry (the one marked inheritable
by the ACL editor).

Fix this by faking up a default 3 element inheritable ACL that
represents what a user creating a POSIX file or directory will
get by default from the smbd code.

Jeremy.
(cherry picked from commit 6dcbb84d485b8a8ccf0c3a70d9f5f7e951aaf1c6)

14 years agoThe posix acl version of set_nt_acl() could set the stat_ex
Jeremy Allison [Thu, 24 Dec 2009 01:17:48 +0000 (17:17 -0800)]
The posix acl version of set_nt_acl() could set the stat_ex
struct in the fsp->fsp_name pointer incorrectly for a directory.

Fix this. Make map_canon_ace_perms() public.

Jeremy.
(cherry picked from commit 3d85b1ebe5e3484250b6810f1a45c1ba5a4900f7)

14 years agodoc: update mount.cifs man page with nounix option
Suresh Jayaraman [Wed, 23 Dec 2009 16:45:20 +0000 (11:45 -0500)]
doc: update mount.cifs man page with nounix option

Change since last post:
- fix build error due to superfluous </para> tag.
- ensure it builds fine.

Also add a section on INODE NUMBERS that discusses inode numbers more
thoroughly and add reference to it in "nounix" and "noserverino"
options.

Thanks to Jeff Layton for explaining those details.

Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Jeff Layton <jlayton@redhat.com>