samba.git
14 years agos3/util_sock: Make open_udp_socket() IPv6 clean.
Jeremy Allison [Sat, 18 Jul 2009 06:22:51 +0000 (08:22 +0200)]
s3/util_sock: Make open_udp_socket() IPv6 clean.

This addresses bug #6437.
(cherry picked from commit 27ddbcab378892dee0b69e8ba0ef03674e6e7075)

14 years agoFix bug #6431 - local groups from 3.0 setups no longer found. samba-3.4.0
Volker Lendecke [Tue, 30 Jun 2009 18:42:15 +0000 (11:42 -0700)]
Fix bug #6431 - local groups from 3.0 setups no longer found.
Search for groups without group suffix, group suffix is only used for new entries.
(cherry picked from commit 91a8cb851e1919a337310e2c699d8fcf76a55060)
(cherry picked from commit f0d67b6e119d719c2540eadce5849d3200dea2d0)

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Fri, 3 Jul 2009 11:08:06 +0000 (13:08 +0200)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit 4735bf0e744e1015eeb5a9ef6e744011183d9e30)

14 years agoRevert "[s3]pidfile_create: use check is_default_dyn_CONFIGFILE() since we have it."
Michael Adam [Fri, 3 Jul 2009 09:35:11 +0000 (11:35 +0200)]
Revert "[s3]pidfile_create: use check is_default_dyn_CONFIGFILE() since we have it."

This reverts commit 1d3dcd1e420104c23769b691d0b8b7958d5c58a7.

This fixes Bug #6531 (Pid File creation.)

Usually, I would extend is_default_dyn_XYZ() so that it returns true
when dyn_XYZ has not been set yet or when its value is equal to the
compiled in default value XZY. But this would have a change in effect
in popt_common and torture.c: is_default_dyn_CONFIGFILE() is used
there to check whether the config file should be overwritten by the
contents of the environment variable SMB_CONF_PATH. Currently this
is only done when set_dyn_CONFIGFILE() had _not_ previously been called
at all, not even with the same value as the compiled in default.

Michael
(cherry picked from commit 914a14b3a9c9d922d2a5c1aa413945afa11cfd2a)

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

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Fri, 3 Jul 2009 07:47:32 +0000 (09:47 +0200)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit ebe56e6872228fcbd81ead598eb2c5b1738b7f4c)

14 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.
(cherry picked from commit 8446843ec43cd61e548dda7032f26020240d872d)

14 years agoWHATSNEW: Update changes and release date.
Karolin Seeger [Fri, 3 Jul 2009 07:40:10 +0000 (09:40 +0200)]
WHATSNEW: Update changes and release date.

Karolin
(cherry picked from commit 7c0f1fd01ba355f234f411426b00285c824691b2)

14 years agos3:pam_smbpass: fix build error on some Linux distros
Björn Jacke [Wed, 10 Jun 2009 10:31:07 +0000 (12:31 +0200)]
s3:pam_smbpass: fix build error on some Linux distros

This addresses bug #6459.
(cherry picked from commit 06a9678aad549d23583d860ecd57b221b25f15b6)
(cherry picked from commit 250e253f755954ff96c14ed29d6107d344a1c427)

14 years agoWHATSNEW: Update changes since 3.4.0rc1.
Karolin Seeger [Thu, 2 Jul 2009 06:32:05 +0000 (08:32 +0200)]
WHATSNEW: Update changes since 3.4.0rc1.

Karolin
(cherry picked from commit d08f8595b15144513febe089f2ba0c322dba9ea9)

14 years agoFix bug #6520 time stamps - e.g. last mod time is not preserved when "unix extensions...
Jeremy Allison [Wed, 1 Jul 2009 23:58:14 +0000 (16:58 -0700)]
Fix bug #6520 time stamps - e.g. last mod time is not preserved when "unix extensions=yes" are set - and using latest cifs vfs client
Cancel out any pending "sticky" writes or "last write" changes when
doing a UNIX info level set.
Jeremy.
(cherry picked from commit b971860e01a3e616b0dd21990c054c8f8356f513)
(cherry picked from commit 3c8e5d5339ec246bca846aee48ecfba74c7d7c69)

14 years agoWHATSNEW: Update changes since 3.4.0rc1.
Karolin Seeger [Wed, 1 Jul 2009 12:09:42 +0000 (14:09 +0200)]
WHATSNEW: Update changes since 3.4.0rc1.

Karolin
(cherry picked from commit 95c90fa6973676d6599668bbe816bdbbae5d086c)

14 years agolib/util: fix order of includes in tevent_ntstatus.c
Michael Adam [Wed, 1 Jul 2009 08:51:17 +0000 (10:51 +0200)]
lib/util: fix order of includes in tevent_ntstatus.c

replace.h needs to be included first.

Michael
(cherry picked from commit 8d982d91f231abbf003473d09433fca2cfa240ac)

Signed-off-by: Michael Adam <obnox@samba.org>
This addresses bug #6521.
(cherry picked from commit 5c5f72b6c5e7473cfe42d2d54fd34c6b31cbf6b1)

14 years agos3-spoolss: Bug #6512. Fix support for enumerating user forms.
Günther Deschner [Tue, 30 Jun 2009 11:12:01 +0000 (13:12 +0200)]
s3-spoolss: Bug #6512. Fix support for enumerating user forms.

Found while testing Xerox WorkCentre 133 PCL driver, now also tested with
torture test.

Guenther
(cherry picked from commit b85b93dcff89e18bd15d4cef8b8c2dc61bc42cbe)
(cherry picked from commit 14be3fd3daee943d0aaad1029ab629e5d379708b)

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

14 years agos3 docs: Add documentation for 'kerberos method' and 'dedicated keytab file' parameters
Tim Prouty [Tue, 30 Jun 2009 23:59:57 +0000 (16:59 -0700)]
s3 docs: Add documentation for 'kerberos method' and 'dedicated keytab file' parameters
(cherry picked from commit 969106a21fe169282e3b42e51d9e14836d6a41b2)

This fixes bug #6264.
(cherry picked from commit 8135fb06fb18fe42b05f6a938d31905d8ebc903a)

14 years agolib/util: fix building tevent_ntstatus without config.h
Michael Adam [Mon, 29 Jun 2009 13:39:46 +0000 (15:39 +0200)]
lib/util: fix building tevent_ntstatus without config.h

(when called from places with "#define NO_CONFIG_H" set, such as configure)

This fixes bug #6521.

 Michael
(cherry picked from commit e4e855563bcbeb7be54de57d8c1d41d35ddc5e7a)
(cherry picked from commit 6bac56bc6873470958a2369827cbfa3a7c8241d4)

14 years agoWHATSNEW: Update changes since 3.4.0rc1.
Karolin Seeger [Tue, 30 Jun 2009 07:14:23 +0000 (09:14 +0200)]
WHATSNEW: Update changes since 3.4.0rc1.

Karolin
(cherry picked from commit 21c9ca179abc18cb3f898e1885adb293c785508c)

14 years agoDon't require "Modify property" perms to unjoin bug #6481) "net ads leave" stopped...
Jim McDonough [Fri, 19 Jun 2009 17:46:07 +0000 (13:46 -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.
(cherry picked from commit 75eacdd7e0faa72775c4a143193edd594bd99ee7)

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Mon, 29 Jun 2009 13:28:23 +0000 (15:28 +0200)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit e742e2b3968801f15f0127f02dff27c78371b5f7)

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

Guenther
(cherry picked from commit d5c73127b7e6a9ab917c35811fcfdcfe11681086)

14 years agoFix bug 6514: net gives unhelpful "lp_load failed" when it's missing smb.conf
David Markey [Mon, 29 Jun 2009 06:12:03 +0000 (08:12 +0200)]
Fix bug 6514: net gives unhelpful "lp_load failed" when it's missing smb.conf
(cherry picked from commit 55ed0be65f07b46d51a647e556644039d68a002d)
(cherry picked from commit 36791e2d05f05282ac4eaab17541aa857e48d830)

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Sat, 27 Jun 2009 09:47:06 +0000 (11:47 +0200)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit 2fdd917894c3571a101ac6f9cafd63585bcb8d52)

14 years agos3: fix building of pam_smbpass.
Bo Yang [Fri, 29 May 2009 08:10:19 +0000 (16:10 +0800)]
s3: fix building of pam_smbpass.

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

14 years agos3/VERSION: Raise version number up to 3.4.0.
Karolin Seeger [Sat, 27 Jun 2009 09:15:59 +0000 (11:15 +0200)]
s3/VERSION: Raise version number up to 3.4.0.

Karolin
(cherry picked from commit bb59901d6e4f7c03b815ac6afd297b4230031330)

14 years agoWHATSNEW: Update changes since 3.4.0rc1.
Karolin Seeger [Sat, 27 Jun 2009 09:11:04 +0000 (11:11 +0200)]
WHATSNEW: Update changes since 3.4.0rc1.

Karolin
(cherry picked from commit 228d43ce016e56396f83ed4fb77b246c539bba79)

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

14 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
(cherry picked from commit a4bc5bfa95be242fe1c8e0cd520a8f1e3d2a67f5)
(cherry picked from commit 410fa8258169bc9b4a61164cd893746d3e6abfae)

14 years agos3:configure: "test" only takes one "="
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)
(cherry picked from commit 35c8019db31ccb673498b32134944d8acac6ffa9)

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

14 years agoWHATSNEW: Update changes. samba-3.4.0rc1
Karolin Seeger [Fri, 19 Jun 2009 09:02:07 +0000 (11:02 +0200)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit 58e847f998087a33f0c80c2705ac2ce5b2807e75)

14 years agoBug 6488: acl_group_override() call in posix acls references an uninitialized
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.
(cherry picked from commit 2c2894b4646567e3d92b9044a5059021def338f9)

14 years agoWHATSNEW: Update changes since 3.4.0pre2.
Karolin Seeger [Fri, 19 Jun 2009 08:31:53 +0000 (10:31 +0200)]
WHATSNEW: Update changes since 3.4.0pre2.

Karolin
(cherry picked from commit 209452c60930542bf383a9fba8626da73e0e0861)

14 years agoFix bug 4699: Remove pidfile on clean shutdown
Volker Lendecke [Thu, 18 Jun 2009 09:45:57 +0000 (11:45 +0200)]
Fix bug 4699: Remove pidfile on clean shutdown
(cherry picked from commit 5a9ca3db032af5938e9709f3355a1f45b1e08d27)
(cherry picked from commit 9424e91ecdcf2e5dbdd06e9d97693dd193608324)

14 years agoFix bug #6487: Missing DFS call in trans2 mkdir call.
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)

14 years agoWHATSNEW: Update changes since 3.4.0pre2.
Karolin Seeger [Fri, 19 Jun 2009 06:57:02 +0000 (08:57 +0200)]
WHATSNEW: Update changes since 3.4.0pre2.

Karolin
(cherry picked from commit cfd94239b89139b3c3ec4e2815f3e05217f0419a)

14 years agos3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation.
Günther Deschner [Thu, 18 Jun 2009 23:52:11 +0000 (01:52 +0200)]
s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation.

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

Guenther
(cherry picked from commit e77355fec0f3b30cadcefc106c4f7957bf763c6b)

14 years agoRevert "net: Use samba default command line arguments."
Kai Blin [Wed, 10 Jun 2009 11:08:40 +0000 (13:08 +0200)]
Revert "net: Use samba default command line arguments."

This reverts commit c039bc15ba597d955d0ccbf5642388b0a03ba40b and dependent
commits 33c6ba805756739b7b4395bedb66ae00797cbcb1 and
        ce18ba7e24b5578672d2f2ffaab97ef708421067.

While it certainly would be a nice to have feature, this has caused more
hassle than reasonable, e.g. in net commands that need to use the machine
account like net (ads|rpc) testjoin.

This un-fixes bug #6305.
(cherry picked from commit eadbd85b2797683b3a17a1919c4aea28d6519a01)

14 years agoFix bug #6476 - more then 3000 smbd-zombies in memory
Jeremy Allison [Wed, 17 Jun 2009 20:56:21 +0000 (13:56 -0700)]
Fix bug #6476 - more then 3000 smbd-zombies in memory
We weren't reaping children in the [x]inetd case.
Jeremy.
(cherry picked from commit 7d20e8f7f4d3d1a17b3817cea370304f2f437809)
(cherry picked from commit ec18e0f11eda8d25feb14c92cf7d90bda8d79269)

14 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
(cherry picked from commit e912764a5e0c1f05f921667eb56ef58552de454b)
(cherry picked from commit a291e88019771bb2703bf9854483404a6ee8d622)

14 years agos3-net: Fix Bug #6328: support "net sam rights grant/revoke" with multiple rights.
David Markey [Wed, 17 Jun 2009 16:29:20 +0000 (18:29 +0200)]
s3-net: Fix Bug #6328: support "net sam rights grant/revoke" with multiple rights.

David

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

14 years agoWHATSNEW: Update changes since 3.4.0pre2.
Karolin Seeger [Wed, 17 Jun 2009 13:41:32 +0000 (15:41 +0200)]
WHATSNEW: Update changes since 3.4.0pre2.

Karolin
(cherry picked from commit 86adaae8ea12a88e6f7e84de4c645f237730da1c)

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

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

14 years agopackaging/Debian: Remove outdated Debian package sources and instead refer to
Jelmer Vernooij [Fri, 12 Jun 2009 00:55:26 +0000 (02:55 +0200)]
packaging/Debian: Remove outdated Debian package sources and instead refer to
Debian.org and SerNet packages.
(cherry picked from commit ba4a047b360c14587430d9bca6c7bf3a88445d6a)
(cherry picked from commit 6400b0c36df259fe43a93cec9521e21114a02fc9)

14 years agos3/i18n: Add Russian to the list.
Karolin Seeger [Wed, 17 Jun 2009 12:37:28 +0000 (14:37 +0200)]
s3/i18n: Add Russian to the list.

Karolin
(cherry picked from commit c5580cafcb19853e06e06844c7ce36daa8cb4298)
(cherry picked from commit f86948bcbfffea7ad5bee9bdfd8e1ac3bd0ac98d)

14 years agos3/i18n: Add Russian translation for SWAT messages.
Karolin Seeger [Wed, 17 Jun 2009 12:31:29 +0000 (14:31 +0200)]
s3/i18n: Add Russian translation for SWAT messages.

Thanks to Yuri Kozlov <kozlov.y [at] gmail.com>!

This is part of a fix for bug #4755.
(cherry picked from commit e26de2dadcb7b3b9d39e066867e04fe1d5553261)
(cherry picked from commit 8057dbd51d3e4d67042a1751359bc71cea0a0d77)

14 years agos3-netapi: Fix Bug #6305. Correctly prompt for a password when a username was given.
Günther Deschner [Wed, 13 May 2009 21:57:26 +0000 (23:57 +0200)]
s3-netapi: Fix Bug #6305. Correctly prompt for a password when a username was given.

When no callback or wrapping has managed to get a password, prompt in the
netapi connection manager for a password.

Guenther
(cherry picked from commit 33be1f56f778116a5657b257ffb0f1eb7196658a)
(cherry picked from commit 601520bf618555d7ef04f5586956b53a37594bff)

14 years agos3/i18n: Update German SWAT translations.
Karolin Seeger [Wed, 17 Jun 2009 10:15:59 +0000 (12:15 +0200)]
s3/i18n: Update German SWAT translations.

This is part of a fix for bug #4755.
Patch was provided (mainly) by Helge Kreutzmann <debian [at] helgefjell.de>.
Thanks!

Karolin
(cherry picked from commit f0930cef837cb4bdbbc98b01abde41303bef6d88)
(cherry picked from commit 39b97a9826847e4336c35d8a2d02be2d64334e76)

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

14 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)
(cherry picked from commit 04b45fbbec832bb35adebe03583b9b622954a9dc)

14 years agos3/docs: Correct version number.
Karolin Seeger [Mon, 15 Jun 2009 11:29:15 +0000 (13:29 +0200)]
s3/docs: Correct version number.

Karolin
(cherry picked from commit c2010f134b6a888e1dcd17b1f5e2c1b2656419a4)

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

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

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

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

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

14 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>
(cherry picked from commit f92269a6ce220e12b9b80c15ed3fa2e9e6b4a6dc)
(cherry picked from commit e24c2401750212d7212952f574ed9765fb1f2e8e)

14 years agoFix bug #6297 - owner of sticky directory cannot delete files created by
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.
(cherry picked from commit cea3a63a86a733a16c3e91f5a78e972be802eb5c)

14 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
(cherry picked from commit 08bb869d03520479989052b1fd9ef3f788d95589)

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

14 years agoWHATSNEW: Update changes since 3.4.0pre2.
Karolin Seeger [Thu, 11 Jun 2009 07:58:57 +0000 (09:58 +0200)]
WHATSNEW: Update changes since 3.4.0pre2.

Karolin
(cherry picked from commit 524b090b12c51ad2748e2b635144c9d0fa89c350)

14 years agoVERSION: Raise version number up to 3.4.0rc1.
Karolin Seeger [Thu, 11 Jun 2009 07:35:48 +0000 (09:35 +0200)]
VERSION: Raise version number up to 3.4.0rc1.

Karolin
(cherry picked from commit 0f68bd945ff797ffaa3fcc3a5722a4bc17639276)

14 years agos3-net: fix "net ads testjoin".
Günther Deschner [Tue, 9 Jun 2009 13:41:44 +0000 (15:41 +0200)]
s3-net: fix "net ads testjoin".

This always needs to use machine account credentials.
Fixes bug #6456.

Kai, please check.

Guenther

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

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

14 years agos3-passdb: fix uninitialized variable in local_password_change().
Günther Deschner [Fri, 29 May 2009 16:08:02 +0000 (18:08 +0200)]
s3-passdb: fix uninitialized variable in local_password_change().

Guenther
(cherry picked from commit ac1ee43a2a4efa54d3d236aad8b8d21e6aaf632c)

14 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!
(cherry picked from commit 4368df8c839612236951b4f16367ab178c91d42e)

14 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!
(cherry picked from commit 022563dc7efb132293bff4ae9c5e21dcb3e1effc)

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

14 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 c72f75afce0f0ba300ba12ccca61a650a6c1e73b)

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

14 years agos3:torture: fix password timestamp checks on NetBSD
Björn Jacke [Wed, 3 Jun 2009 15:39:50 +0000 (17:39 +0200)]
s3:torture: fix password timestamp checks on NetBSD

The Open Group says:

"The useconds argument [of usleep] must be less than 1,000,000."

NetBSD takes this seriously. usleep of more than 999999 are effectless.
(cherry picked from commit b3491df2f9db2c550845243975ddbf0a2f9658e6)
(cherry picked from commit 50f362e294d5a507d03fd54d1d976f40a935288f)

14 years agos3: correct check for usleep value boundaries
Björn Jacke [Wed, 3 Jun 2009 16:03:36 +0000 (18:03 +0200)]
s3: correct check for usleep value boundaries
(cherry picked from commit 7cdad30b9640cc876e8ca59cd67455039107a5df)
(cherry picked from commit 2e14ccc5c6be9dd7e7b98dc60c89d54ba3772344)

14 years agoMake it possible to change machine account sids
Simo Sorce [Sat, 30 May 2009 14:16:31 +0000 (10:16 -0400)]
Make it possible to change machine account sids

Fixes bug #6081
(cherry picked from commit 9fc13f6a2d02c22f639a1a819e09ebb648faaff7)
(cherry picked from commit 747068ff4688000287ace009f3dc58e12eefa615)

14 years agoConsolidate user create/delete paths in smbpasswd
Simo Sorce [Sat, 16 May 2009 22:10:39 +0000 (18:10 -0400)]
Consolidate user create/delete paths in smbpasswd

This patch changes the way smbpasswd behaves when adding/deleting users.
smbpasswd now calls pdb_create_user/pdb_delete_user, this means that if
add/delete user scripts are configured then they are used to create or
delete unix users as well. If the scripts are not defined the behavioris
unchanged.
This also allow to use smbpasswd -a/-x with ldapsam:editposix to allow
automatic creation/deletion of users.

Part 2/2 for bug #6333.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 64d1b5c4e1efd734176c1ea6e5e564e626128b4f)
(cherry picked from commit 7086d3164cb897adb23e753294ca78bdfe01d4a5)

14 years agos3:pdbedit: fix "format not a string literal and no format arguments" warnings
Michael Adam [Fri, 29 May 2009 21:48:26 +0000 (23:48 +0200)]
s3:pdbedit: fix "format not a string literal and no format arguments" warnings

Michael
(cherry picked from commit 2b68fb7cb4ab5b76028c54ef163badd2952fe0c0)
(cherry picked from commit 138b037c437ad27466646beb33e1922b6d18ef8c)

14 years agoConsolidate create/delete account paths in pdbedit
Simo Sorce [Sun, 17 May 2009 00:36:28 +0000 (20:36 -0400)]
Consolidate create/delete account paths in pdbedit

Use common paths like for smbpasswd, so that all utilities
behave the same way. As for smbpasswd this changes the behavior
of pdbedit to create/delete unix users is the add/delete user
scripts are provided, or ldapsam:editposix is configured.

Part 1/2 for bug #6333.

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

14 years agoRemove a silly check
Volker Lendecke [Sun, 5 Apr 2009 15:01:57 +0000 (17:01 +0200)]
Remove a silly check

This does not increase security, and if later error messages suck, we have to
fix those.
(cherry picked from commit e5c7df34f2d461b0f348fc1b40275a97d918ed9e)
(cherry picked from commit 291a3e79ba26b1c0e00bf929337d6251c8929e05)

14 years agos3/WHATSNEW: Update changes since 3.4.0pre1. samba-3.4.0pre2
Karolin Seeger [Tue, 2 Jun 2009 07:28:49 +0000 (09:28 +0200)]
s3/WHATSNEW: Update changes since 3.4.0pre1.

Karolin
(cherry picked from commit 36b8bbb0328bbcccdc6e9fe99ae4933c916885da)

14 years agos3/getdcname: Fix 'net' crash.
Kumar Thangavelu [Fri, 29 May 2009 09:27:38 +0000 (11:27 +0200)]
s3/getdcname: Fix 'net' crash.

'net' command crashed when attempting to join a
domain. This occurred in a very specific case where
the DC had multiple IPs and one of the IPs was invalid.

Signed-off-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 795692bd9546b91647ea96cc43ebb5c8efc0aaf2)
(cherry picked from commit 1b401a1b5374d037757954bb023287fa57b1c9b9)

14 years agonss_wrapper: fix nss_wrapper build for solaris.
Günther Deschner [Thu, 28 May 2009 09:51:46 +0000 (11:51 +0200)]
nss_wrapper: fix nss_wrapper build for solaris.

Guenther
(cherry picked from commit 136b2a3eb21eda28e7a18547751ee20f097e7492)
(cherry picked from commit 0677a068dce0bd1cc76fc3ea13322e57b1d1c3af)

14 years agonss_wrapper: remove re-structuring leftovers (unused variables).
Günther Deschner [Thu, 28 May 2009 08:53:53 +0000 (10:53 +0200)]
nss_wrapper: remove re-structuring leftovers (unused variables).

Guenther
(cherry picked from commit 37e4c92b383397a2c77db7e5d8adf2fa4a24d398)
(cherry picked from commit db2fa7179db37d5cb6475006b88ff648636ac602)

14 years agos3-selftest: use nss_wrapper.pl as "add user to group" and "delete user from group...
Günther Deschner [Thu, 28 May 2009 08:40:22 +0000 (10:40 +0200)]
s3-selftest: use nss_wrapper.pl as "add user to group" and "delete user from group" script.

Guenther
(cherry picked from commit 7a5475f098c6a20f867adc081ca455e6c393755b)
(cherry picked from commit 1a129e79baac7c7ebbc63c9e077ede4b123cf390)

14 years agonss_wrapper: support member add and delete for groups in nss_wrapper.pl.
Günther Deschner [Thu, 28 May 2009 08:39:37 +0000 (10:39 +0200)]
nss_wrapper: support member add and delete for groups in nss_wrapper.pl.

Guenther
(cherry picked from commit ebf8df35c9583619a012e85964f2ad5187a199fe)
(cherry picked from commit 0f93abf8222672e5f7c09fd0b55337de82e9569f)

14 years agonss_wrapper: split out passwd and group paths in nss_wrapper.pl.
Günther Deschner [Wed, 27 May 2009 20:35:14 +0000 (22:35 +0200)]
nss_wrapper: split out passwd and group paths in nss_wrapper.pl.

Guenther
(cherry picked from commit 7bb9e08d7e75be88a9788563f053794554f680a8)
(cherry picked from commit 8bda8295ffc6fa9a9776f821b11075b6bac7a80d)

14 years agonss_wrapper: restructure nwrap calls.
Günther Deschner [Wed, 27 May 2009 16:38:10 +0000 (18:38 +0200)]
nss_wrapper: restructure nwrap calls.

Guenther
(cherry picked from commit ec9a0917055d731aa95e2fea2045445f9945b74d)
(cherry picked from commit bf255ec2a81f2f44a9ef0379beaec0a51bbfb000)

14 years agos3/WHATSNEW: Mention new passdb backend default.
Karolin Seeger [Tue, 2 Jun 2009 06:21:04 +0000 (08:21 +0200)]
s3/WHATSNEW: Mention new passdb backend default.

Karolin
(cherry picked from commit b1f7b6ebb9ea1ac53a83eca734e271e0a7137d0b)

14 years agoFix bug #6419 - smbclient -L 127.0.0.1" displays "netbios name" instead of "workgroup"
Jeremy Allison [Mon, 1 Jun 2009 21:36:34 +0000 (14:36 -0700)]
Fix bug #6419 - smbclient -L 127.0.0.1" displays "netbios name" instead of "workgroup"
Unify the handling of the sessionsetup parsing so we don't get different
results when parsing a guest reply than an ntlmssp reply.
Jeremy.
(cherry picked from commit 736c4dddef28d53b55e58a6f62784f068e88dc01)

14 years agos3: update manpage as to the new passdb backend default
Björn Jacke [Wed, 27 May 2009 10:01:21 +0000 (12:01 +0200)]
s3: update manpage as to the new passdb backend default
(cherry picked from commit 83613fd2fa6d4c6e7d9eb9bdb60aac31a37bbcaf)

14 years agos3: make passdb backend defaults to tdbsam
Björn Jacke [Mon, 25 May 2009 12:55:04 +0000 (14:55 +0200)]
s3: make passdb backend defaults to tdbsam
(cherry picked from commit f15af8bf2def12eedd967b6e0e411f690be2f804)

14 years agoFix bug #6421 - POSIX read-only open fails on read-only shares.
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.
(cherry picked from commit d49ae9c87d182f32702a0b6a1cc2a2038f31d81d)

14 years agoSimplify the dropbox patch
Jeremy Allison [Sat, 30 May 2009 09:30:16 +0000 (11:30 +0200)]
Simplify the dropbox patch
(cherry picked from commit 0d32230c17dbfa5e790d2023ba655f109938ef28)

14 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
(cherry picked from commit 78aecba62195822f3edb6134548657cf7ba9037c)

14 years agos3-netlogon: Fix _netr_LogonSamLogon{Ex} with validation level != 3.
Günther Deschner [Fri, 29 May 2009 11:15:27 +0000 (13:15 +0200)]
s3-netlogon: Fix _netr_LogonSamLogon{Ex} with validation level != 3.

Guenther
(cherry picked from commit 90b38906541de554e3964d96ed83a7c71b5ea05c)
(cherry picked from commit a8868d7fbf51e4706a7d2ee44a9066a8e1efcb4a)

14 years agos3-netlogon: return proper error code for unsupported validation class.
Günther Deschner [Fri, 29 May 2009 10:42:15 +0000 (12:42 +0200)]
s3-netlogon: return proper error code for unsupported validation class.

Guenther
(cherry picked from commit 65f86a644a8171a99c63b6cb32e01e22897174f6)
(cherry picked from commit 745f8d37fffe9d2ac2938101b08ff39ebf50c94c)

14 years agos3-rpc_server: increase max number of open policy handles per pipe to 2048.
Günther Deschner [Fri, 29 May 2009 10:41:41 +0000 (12:41 +0200)]
s3-rpc_server: increase max number of open policy handles per pipe to 2048.

Guenther
(cherry picked from commit 9bd8b0a15773d3d5c0649bfb49bb16acfb4bb5f1)
(cherry picked from commit aebc22c407c60588eabae324eb9cc06e73538dd4)

15 years agoWHATSNEW: Update changes since 3.4.0pre1.
Karolin Seeger [Fri, 29 May 2009 12:42:03 +0000 (14:42 +0200)]
WHATSNEW: Update changes since 3.4.0pre1.

Karolin
(cherry picked from commit 7021008d5ed401d60b3b2d5f7fe6c78d63c3495b)

15 years agos3/VERSION: Raise version number up to 3.4.0pre2.
Karolin Seeger [Fri, 29 May 2009 08:57:48 +0000 (10:57 +0200)]
s3/VERSION: Raise version number up to 3.4.0pre2.

Karolin
(cherry picked from commit 51610de47bb709739ba84075395f5409be5ebc5c)

15 years agos3/docs: Correct version number.
Karolin Seeger [Wed, 27 May 2009 16:13:09 +0000 (18:13 +0200)]
s3/docs: Correct version number.

Karolin
(cherry picked from commit 136b885461b730cf226999b07d2198de8441ebc9)

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

15 years agoFix uninitialized variable use caught by valgrind.
Jeremy Allison [Thu, 28 May 2009 20:33:06 +0000 (13:33 -0700)]
Fix uninitialized variable use caught by valgrind.
Jeremy.
(cherry picked from commit 62d767d57fafd869ec956cbcc84e8c866c6d665b)