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

metze
(cherry picked from commit 1e1445bc7672b17a1d689fa0f0732b05b6e04da5)

Fixes bug #6627.

14 years agos3: Unable to browse DFS when using kerberos in libsmbclient
Bo Yang [Fri, 7 Aug 2009 05:55:31 +0000 (13:55 +0800)]
s3: Unable to browse DFS when using kerberos in libsmbclient

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

14 years agoThe solaris linker seems to require an extra mention of dependent libs
Volker Lendecke [Fri, 26 Jun 2009 19:52:34 +0000 (21:52 +0200)]
The solaris linker seems to require an extra mention of dependent libs
(cherry picked from commit 04e4d03868ea67f323bf008eb7b9af740a0467ac)

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

Karolin
(cherry picked from commit 54dffbea663ecf4542d6c5e30da6e346d5d60424)

14 years agoFix a valgrind error in chain_reply
Volker Lendecke [Mon, 27 Jul 2009 12:47:41 +0000 (14:47 +0200)]
Fix a valgrind error in chain_reply

construct_reply() references the request after chain_reply has freed it.
(cherry picked from commit 5135ebd6f099518f0a0b5796e8057210be824740)

Addresses bug #6611.

14 years agos3-spoolss: fix crash bug in spoolss_addprinterex_level_2.
Günther Deschner [Mon, 3 Aug 2009 21:41:08 +0000 (23:41 +0200)]
s3-spoolss: fix crash bug in spoolss_addprinterex_level_2.

Fixes bug #6607.

Guenther
(cherry picked from commit 75030ff2b16a3ddb79367d970590da2375f7e3dc)

14 years agos3:net: Fix Bug #6222. Default to DRSUAPI replication for net rpc vampire keytab
Stefan Metzmacher [Mon, 13 Jul 2009 11:24:19 +0000 (13:24 +0200)]
s3:net: Fix Bug #6222. Default to DRSUAPI replication for net rpc vampire keytab

metze

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

14 years agos3-spoolss: Fix Bug #6568: _spoolss_GetPrintProcessorDirectory() implementation.
Günther Deschner [Tue, 4 Aug 2009 10:21:49 +0000 (12:21 +0200)]
s3-spoolss: Fix Bug #6568: _spoolss_GetPrintProcessorDirectory() implementation.

We should always return a local path so that users are not forced to setup a
[prnproc$] share on the server. This restores pre-3.4.0 spoolss behaviour.

Guenther
(cherry picked from commit 74454cc731f202361f1dce47fa850810bfeb36c8)

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

14 years agos3: check in .po files for pam_winbind.
Bo Yang [Mon, 3 Aug 2009 00:16:21 +0000 (08:16 +0800)]
s3: check in .po files for pam_winbind.

Signed-off-by: Bo Yang <boyang@samba.org>
14 years agos3/docs: Fix typos.
Karolin Seeger [Mon, 3 Aug 2009 08:19:45 +0000 (10:19 +0200)]
s3/docs: Fix typos.

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

Karolin
(cherry picked from commit 7ee7ec3fdba2ef6a6cc3e1f96a5d2154290cdb18)

14 years agos3/cldap: Improve debug messages.
Jeremy Allison [Thu, 30 Jul 2009 06:55:01 +0000 (08:55 +0200)]
s3/cldap: Improve debug messages.

This patch was made to debug bug #6437.

14 years agorelease-scripts: Remove RFCs in source4/.
Karolin Seeger [Tue, 28 Jul 2009 11:22:35 +0000 (13:22 +0200)]
release-scripts: Remove RFCs in source4/.

Remove RFCs as they are non-free content (with a strict interpretation of
the DFSG). Addresse Debian bug #538034.

Karolin
(cherry picked from commit 571f20cd4db48c8d510e10b7188678d585abb2d1)

14 years agoFix bug #6506 - SMBD server doesn't set EAs when a file is overwritten in NT_TRANSACT...
Jeremy Allison [Thu, 25 Jun 2009 19:57:15 +0000 (12:57 -0700)]
Fix bug #6506 - SMBD server doesn't set EAs when a file is overwritten in NT_TRANSACT_CREATE.
Reported and verified by Long Li <longli@microsoft.com>
Jeremy.
(cherry picked from commit 9c48f5bf2dcc12e6eb6170ab3a2af5ca119cf008)

14 years agodocs: fix typos in the net man page.
Michael Adam [Mon, 27 Jul 2009 11:33:38 +0000 (13:33 +0200)]
docs: fix typos in the net man page.

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

Michael
(cherry picked from commit 34c535c9a8d08a480e156aaa9e4b843ffaab0636)

14 years agos3: To correctly handle upn
Bo Yang [Thu, 23 Jul 2009 02:23:21 +0000 (10:23 +0800)]
s3: To correctly handle upn

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

This addresses bug #6560.

Signed-off-by: Bo Yang <boyang@samba.org>
14 years agoFix bug #6564 - SetPrinter fails (panics) as non root. Missing become_root()/unbecome...
Jeremy Allison [Sat, 18 Jul 2009 00:33:28 +0000 (17:33 -0700)]
Fix bug #6564 - SetPrinter fails (panics) as non root. Missing become_root()/unbecome_root() around reload_services. Jeremy.

14 years agoFix bug #6551 - win98 clients cannot connect after server upgrade to samba-3.4.0...
Jeremy Allison [Wed, 15 Jul 2009 21:00:41 +0000 (14:00 -0700)]
Fix bug #6551 - win98 clients cannot connect after server upgrade to samba-3.4.0. The values of vuid and tid were not being correctly updated in the struct smb_request when passed to chain_reply inside sessionsetupX and tconX. Jeremy.

14 years agos3:smbd: cancel all locks that are made before the first failure
Stefan Metzmacher [Tue, 7 Jul 2009 13:16:21 +0000 (15:16 +0200)]
s3:smbd: cancel all locks that are made before the first failure

We never reached the cleanup code and directly returned the error.
This addresses bug #6538 (Fail to back out lockingX calls on error).

metze

14 years agoFix build with external talloc.
Jelmer Vernooij [Sat, 18 Jul 2009 06:30:17 +0000 (08:30 +0200)]
Fix build with external talloc.

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.

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

Karolin

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>
14 years agoFix bug #6431 - local groups from 3.0 setups no longer found.
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)

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

Karolin

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.

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

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)

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

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)

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

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.

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)

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)

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.

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)

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

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.

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

Karolin

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

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)

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

Karolin

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

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

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)

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)

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)

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)

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

Karolin

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.

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

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)

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.

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

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

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.

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)

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)

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

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)

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)

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)

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)

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)

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)

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)

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

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

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)

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)

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)

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)

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.

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

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)

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

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

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

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

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!

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!

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)

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)

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

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

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

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

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

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

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

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

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

Karolin

15 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

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