Jelmer Vernooij [Wed, 26 Sep 2012 23:02:40 +0000 (16:02 -0700)]
smb.conf(5): Extend 'server min protocol' description.
Conflicts:
docs-xml/smbdotconf/protocol/serverminprotocol.xml
Jelmer Vernooij [Wed, 26 Sep 2012 20:20:42 +0000 (13:20 -0700)]
smb.conf(5): Consistent spelling of parameter names.
This includes spacing and casing.
Conflicts:
source4/scripting/python/samba/tests/docs.py
Jelmer Vernooij [Wed, 26 Sep 2012 20:07:54 +0000 (13:07 -0700)]
smb.conf(5): Add basic documentation for 'rpc bigendian'.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Wed Sep 26 23:51:34 CEST 2012 on sn-devel-104
Jelmer Vernooij [Wed, 26 Sep 2012 19:59:32 +0000 (12:59 -0700)]
smb.conf(5): Add basic documentation for 'kpasswd port'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:58:02 +0000 (12:58 -0700)]
smb.conf(5): Add basic documentation for 'dgram port'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:55:15 +0000 (12:55 -0700)]
smb.conf(5): Add basic documentation for 'unicode'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:51:41 +0000 (12:51 -0700)]
smb.conf(5): Add basic documentation for 'web port'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:50:34 +0000 (12:50 -0700)]
smb.conf(5): Add basic documentation for 'nbt port'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:46:37 +0000 (12:46 -0700)]
smb.conf(5): Add basic documentation for 'krb5 port'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:41:20 +0000 (12:41 -0700)]
smb.conf(5): 'write ok' is a reverse synonym for 'read only'.
Jelmer Vernooij [Wed, 26 Sep 2012 16:36:28 +0000 (18:36 +0200)]
smb.conf(5): Distinguish parametric options.
Jelmer Vernooij [Wed, 26 Sep 2012 00:37:01 +0000 (02:37 +0200)]
find_missing_doc: Convert to python.
Jelmer Vernooij [Wed, 26 Sep 2012 00:05:39 +0000 (02:05 +0200)]
find_missing_manpages: convert to python
Jelmer Vernooij [Tue, 25 Sep 2012 23:24:04 +0000 (01:24 +0200)]
find_missing_manpages: Ignore make variables.
Jelmer Vernooij [Wed, 26 Sep 2012 00:59:35 +0000 (02:59 +0200)]
smb.conf(5): Remove documentation for removed 'lock spin count' parameter.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Wed Sep 26 09:41:09 CEST 2012 on sn-devel-104
Jelmer Vernooij [Tue, 25 Sep 2012 23:28:17 +0000 (01:28 +0200)]
Remove unused neatquotes script.
Jelmer Vernooij [Tue, 25 Sep 2012 23:31:26 +0000 (01:31 +0200)]
smb.conf.5: Document 'cldap port'.
Jelmer Vernooij [Tue, 25 Sep 2012 23:31:37 +0000 (01:31 +0200)]
undocumented: Drop extension from helper scripts.
Björn Baumbach [Tue, 2 Oct 2012 09:37:11 +0000 (11:37 +0200)]
s3-docs: add delete_lost option to vfs_streams_depot.8
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Oct 3 18:10:14 CEST 2012 on sn-devel-104
Andrew Bartlett [Tue, 25 Sep 2012 01:05:37 +0000 (11:05 +1000)]
docs: Change TOSHARG-VFS to avoid suggesting VFS modules are Linux/IRIX only
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Sep 25 08:27:15 CEST 2012 on sn-devel-104
Andrew Bartlett [Tue, 25 Sep 2012 01:05:01 +0000 (11:05 +1000)]
docs: Remove mention of auth methods in TOSHARG-Passdb
This is not connected to the passdb system, and we should not encourage setting of auth methods
in any case.
Andrew Bartlett
Andrew Bartlett [Tue, 25 Sep 2012 01:04:14 +0000 (11:04 +1000)]
docs: Fix typo in TOSHARG-Passdb
Andrew Bartlett [Sat, 22 Sep 2012 17:09:32 +0000 (03:09 +1000)]
docs: Update TOSHARG-Install
- winbindd runs as many processes now
- open_oplock_ipc errors do not happen any more, we do not use UDP messaging any more.
Andrew Bartlett
Andrew Bartlett [Mon, 17 Sep 2012 18:56:28 +0000 (11:56 -0700)]
docs: Remove another reference to security=share
Andrew Bartlett [Mon, 17 Sep 2012 18:56:08 +0000 (11:56 -0700)]
docs: Remove references to specific windows versions, instead mention Home/Professional/Server
The flavours of windows seem to last longer than the individual products.
Andrew Bartlett
Andrew Bartlett [Mon, 17 Sep 2012 18:55:12 +0000 (11:55 -0700)]
docs: Remove references to mulitple passdb backends
These are long-gone and confusing.
Andrew Bartlett
Andrew Bartlett [Mon, 17 Sep 2012 18:54:25 +0000 (11:54 -0700)]
docs: Remove references to sysv-style CUPS from TOSHARG-CUPS-printing
This also simplifies the cups config by not duplicating the printcap name parameter
that is already set by default when printing=cups is set.
Andrew Bartlett
Andrew Bartlett [Sat, 15 Sep 2012 22:55:55 +0000 (15:55 -0700)]
docs: Remove very outdated TOSHARG-Other-Clients section
Andrew Bartlett [Sat, 15 Sep 2012 22:52:47 +0000 (15:52 -0700)]
docs: Remove very outdated TOSHARG-Portability section
Andrew Bartlett [Sat, 15 Sep 2012 19:53:37 +0000 (12:53 -0700)]
docs: Update FastStart: remove security=share, avoid disable spoolss
As I understand it, all printing is via spoolss, so do not disable it!
Andrew Bartlett
Andrew Bartlett [Sat, 15 Sep 2012 06:13:33 +0000 (23:13 -0700)]
docs: Clarify TOSHARG-Bugs for 2012
Andrew Bartlett [Sat, 15 Sep 2012 06:08:53 +0000 (23:08 -0700)]
docs: Remove reference to inetd startup, it is not recommended
Andrew Bartlett [Sat, 15 Sep 2012 06:06:59 +0000 (23:06 -0700)]
docs: Update BDC docs to recognise the AD DC and to exclusivly recommend LDAP
The confusing references to the not-recommended techniques and
outdated steps (like net rpc getsid, replaced by simply having the SID
just be in LDAP) just detract from the clarity of this document.
Andrew Bartlett
Andrew Bartlett [Sat, 15 Sep 2012 05:30:06 +0000 (22:30 -0700)]
docs: Remove referenece to old Red Hat Linux habits on winbindd
Andrew Bartlett [Sat, 15 Sep 2012 05:29:39 +0000 (22:29 -0700)]
docs: Remove referenece to autogen.sh and document waf build instead
Andrew Bartlett [Sat, 15 Sep 2012 05:29:05 +0000 (22:29 -0700)]
docs: Remove out of date links to pserver.samba.org and old tarballs
Andrew Bartlett [Sat, 15 Sep 2012 05:28:19 +0000 (22:28 -0700)]
docs: Remove references to Subversion, replace with wiki link
Andrew Bartlett [Fri, 14 Sep 2012 19:06:40 +0000 (12:06 -0700)]
docs: Remove references to old kerberos behaviour
I have not seen any issues using the SRV records with windows, and this certainly
does not apply to current versions. Similarly, the need to change the admin password
does not apply now we require a krb5 lib with arcfour-hmac-md5 support.
Andrew Bartlett
Andrew Bartlett [Fri, 14 Sep 2012 19:04:00 +0000 (12:04 -0700)]
docs: Remove confusing reference to smb signing and client use spnego
This section is more confusing than helpful, as client support for both is on by default.
Andrew Bartlett
Andrew Bartlett [Fri, 14 Sep 2012 18:57:38 +0000 (11:57 -0700)]
docs: update for modern kerberos libs
Andrew Bartlett [Fri, 14 Sep 2012 18:57:05 +0000 (11:57 -0700)]
docs: remove references to security=server
Andrew Bartlett [Fri, 14 Sep 2012 16:29:51 +0000 (09:29 -0700)]
docs: Remove distinction between server and domain accounts
Accounts on a server become accounts on the DC when upgraded. If they do not
then this is simply a bug (in say tdbsam), not a feature to be documented.
Andrew Bartlett
Andrew Bartlett [Fri, 14 Sep 2012 16:28:06 +0000 (09:28 -0700)]
docs: Update docs to the modern age of Samba 4.0
This removes references to security=share, security=server and other outdated things.
It also updates to a world where encrypted passwords are the norm.
Andrew Bartlett
David Disseldorp [Thu, 27 Sep 2012 10:34:53 +0000 (12:34 +0200)]
vfs: check full_audit enum->str mapping on startup
Signed-off-by: Jim McDonough <jmcd@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Fri Sep 28 19:28:49 CEST 2012 on sn-devel-104
(cherry picked from commit
0d7a2af9084c376ad4f664389bb8a59dd6887ab7)
The last 4 patches address bug #9269 - samba4 64bit-portability-issue.
David Disseldorp [Thu, 27 Sep 2012 09:50:22 +0000 (11:50 +0200)]
vfs: add missing pwrite ops to full_audit
The op enum is used by audit_opname() as an index into the vfs_op_names
array, so any decrepencies cause bogus audit log entries.
Signed-off-by: Jim McDonough <jmcd@samba.org>
(cherry picked from commit
e8e91fbbab16c7bcaa9665839d86c7d169e89fff)
David Disseldorp [Thu, 20 Sep 2012 06:35:27 +0000 (08:35 +0200)]
vfs: fix acl_blob_get* in vfs_full_audit
Plumb-in functions and use correct return types.
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Thu Sep 20 20:42:09 CEST 2012 on sn-devel-104
(cherry picked from commit
a125ea7419142dfb86c4f32b1d46896f3bf40704)
David Disseldorp [Thu, 20 Sep 2012 06:20:57 +0000 (08:20 +0200)]
vfs: fix lock logging in vfs_full_audit (cherry picked from commit
47becf6e20a970d273afab8be176d8cbe5ab2b9c)
Karolin Seeger [Tue, 9 Oct 2012 09:53:21 +0000 (11:53 +0200)]
samba-tool: Some more unifications...
in the usage message.
Karolin
(cherry picked from commit
f9a4a9bfe11c1551b490a0bd12fb6904b4a6542b)
The last 34 patches address bug #9271 - backport samba-tool fixes from master.
Andrew Bartlett [Fri, 5 Oct 2012 00:19:17 +0000 (10:19 +1000)]
samba-tool: skip chown in sysvolreset when it would fail on a GID
This skips the chown of the files if (for example) the domain Admins group
were to own the file and not be able to because the group maps only to a GID.
This essentially papers over the problem, but may be enough to get us past
the Samba 4.0 release.
Andrew Bartlett
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Oct 9 15:24:44 CEST 2012 on sn-devel-104
(cherry picked from commit
2f0753b456c4d9b4eb52f128a83c8ba19adde160)
Stefan Metzmacher [Mon, 8 Oct 2012 10:50:52 +0000 (12:50 +0200)]
s4:scripting/python: add '-V' as alias for '--version'
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Oct 8 17:52:52 CEST 2012 on sn-devel-104
(cherry picked from commit
8746faf846fb4f4552e648f4e4e05510b8bd1ef4)
Stefan Metzmacher [Mon, 8 Oct 2012 10:50:33 +0000 (12:50 +0200)]
s4:samba-tool: allow 'samba-tool --version'
metze
(cherry picked from commit
309434a77396680b5a40985157da44aaddb5ca71)
Stefan Metzmacher [Mon, 8 Oct 2012 10:47:47 +0000 (12:47 +0200)]
s4:samba-tool: use normal option parsing in SuperCommand
We use the epilog to print the subcommands.
metze
(cherry picked from commit
2fce71c89af66c1467f0a18b97e237b307387620)
Stefan Metzmacher [Mon, 8 Oct 2012 10:45:20 +0000 (12:45 +0200)]
s4:samba-tool: add optional epilog to _create_parser()
metze
(cherry picked from commit
8d4943dcf943dc83b9b663d3d025fb1a8dbcba86)
Karolin Seeger [Mon, 8 Oct 2012 10:32:58 +0000 (12:32 +0200)]
samba-tool: Unify usage messages.
Karolin
Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Mon Oct 8 14:26:52 CEST 2012 on sn-devel-104
(cherry picked from commit
acea51cc37ff9171c9e18ff0c21b825080aa4b8e)
Karolin Seeger [Mon, 8 Oct 2012 09:47:22 +0000 (11:47 +0200)]
samba-tool: Clarify usage of --help.
Karolin
(cherry picked from commit
a2f3ec0577e275604d15b4bb853705ed18cdd963)
Karolin Seeger [Mon, 8 Oct 2012 07:47:37 +0000 (09:47 +0200)]
samba-tool: Fix typo in usage.
Karolin
(cherry picked from commit
171bf9827bffdb25cee0b0ddd0ddc20cc056fdd0)
Matthieu Patou [Sat, 29 Sep 2012 17:15:05 +0000 (10:15 -0700)]
s4-join: factorize code, add info (cherry picked from commit
95ea6d765b98d9cbdebaa8e23aad91525d94ad40)
Matthieu Patou [Mon, 8 Oct 2012 04:52:25 +0000 (21:52 -0700)]
s4-join: add some documentation (cherry picked from commit
d57e0d8a6d213543a772a517551cca053cece85e)
Matthieu Patou [Tue, 25 Sep 2012 09:00:23 +0000 (02:00 -0700)]
devel-crackname: Print if count > 0 (cherry picked from commit
e332f989091411602ef7f286ebb2f5b1462550e4)
Björn Baumbach [Wed, 19 Sep 2012 10:03:21 +0000 (12:03 +0200)]
s4: samba_backup: Fix typos.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit
9a6f648122c274cc93fd8edff8616c9ffffeb6aa)
Jelmer Vernooij [Wed, 3 Oct 2012 08:26:55 +0000 (10:26 +0200)]
provision: Use logger rather than print.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Wed Oct 3 14:24:09 CEST 2012 on sn-devel-104
(cherry picked from commit
df23b17fa99409f680bbda3abcbb6d8eb7c498b0)
Matthieu Patou [Tue, 2 Oct 2012 21:30:25 +0000 (14:30 -0700)]
s4-provision: do not skip setting the acls on sysvol
Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Wed Oct 3 10:26:06 CEST 2012 on sn-devel-104
(cherry picked from commit
c1677e3b2fe42de309459fd8f8b3bea48bca5055)
Jelmer Vernooij [Thu, 27 Sep 2012 16:34:36 +0000 (09:34 -0700)]
sanba.upgradehelpers: Use standard functionality for getting temp dir. (cherry picked from commit
0883e174bfdec22a4ff373041afce396cfe7fd7b)
Jelmer Vernooij [Thu, 27 Sep 2012 16:30:47 +0000 (09:30 -0700)]
s4-python: Various formatting fixes.
* Trailing whitespace
* use of "==" where "is" should be used
* double spaces
(cherry picked from commit
2a797f29aa12f6847844af504026be52db659fbb)
Jelmer Vernooij [Thu, 27 Sep 2012 16:30:26 +0000 (09:30 -0700)]
samba.tests.source: Check for trailing whitespace in Python files. (cherry picked from commit
6986f7bdda56d693c642945485006f9660053758)
Ricky Nance [Thu, 27 Sep 2012 00:24:40 +0000 (17:24 -0700)]
samba-tool domain provision: DNS forwarder default
Provision would break with an exception if there was no value given for the DNS forwarder, this simply sets a default to "none".
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Thu Sep 27 04:35:33 CEST 2012 on sn-devel-104
(cherry picked from commit
ee0012de1af1a3899856bcdb80033d1a82d5b174)
Jelmer Vernooij [Tue, 25 Sep 2012 20:34:36 +0000 (22:34 +0200)]
samba-tool: Hide 'samba-tool domain samba3upgrade'.
This subcommand is provided for backwards compatibility only; new use of
it should be discouraged. Its new name is 'samba-tool domain
classicupgrade'.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=9047
(cherry picked from commit
c5e83ee9a57d2d6648941e064f7c1156e52419a9)
Andrew Bartlett [Wed, 26 Sep 2012 00:02:43 +0000 (10:02 +1000)]
samba_dnsupdate: Safely update/create names for Samba3 targets as well
This avoids unlocked writes to the dns_hosts_file, and may fix some of our
issues on the build farm where large numbers of tests fail due to failed name resolution.
Andrew Bartlett
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Sep 26 05:48:25 CEST 2012 on sn-devel-104
(cherry picked from commit
3c4d0ce46995f82921f538757783fa7a678a7fc1)
Andrew Bartlett [Tue, 25 Sep 2012 23:48:48 +0000 (09:48 +1000)]
samba_dnsupdate: Move to using tmpfile/rename to keep the dns_hosts_file consistent
This may be the cause of some of the large failure modes on the build farm.
Andrew Bartlett
(cherry picked from commit
6d7c651f2f61b481c1e1ade1e2e0e756ccef2210)
Andrew Bartlett [Wed, 26 Sep 2012 00:40:17 +0000 (10:40 +1000)]
selftest: Remove invalid security=share and rename secshare to simpleserver
This avoids the loadparm code failing due to the invalid smb.conf entry, and removes
the very last hint of security=share!
Andrew Bartlett
(cherry picked from commit
b320e7f93b5905558efa879992c125af66f0043c)
Jelmer Vernooij [Tue, 25 Sep 2012 18:49:22 +0000 (20:49 +0200)]
s4-python: Override SIGINT handler in scripts only.
Override the SIGINT handler in a few select cases only, rather than
doing so in one of the samba Python modules. I've done this where it
matters most; we can add this code to other scripts too if necessary.
This means that importing the 'samba' module from a third party
application does not have side-effects on the state of the signal
handlers.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=9068
(cherry picked from commit
fa332b71dc71d23f1475ed6c25a6376934ab652a)
Jelmer Vernooij [Mon, 24 Sep 2012 21:02:05 +0000 (23:02 +0200)]
samba-tool domain provision: DNS forwarder is not a boolean.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Tue Sep 25 00:48:43 CEST 2012 on sn-devel-104
(cherry picked from commit
f44ad3671876802a42846597be901257633e8ca3)
Jelmer Vernooij [Mon, 24 Sep 2012 06:26:12 +0000 (08:26 +0200)]
samba-tool domain-provision: Avoid python2.5-isms. (cherry picked from commit
6641d76562db10e6289c5e819b1296d8f6df37bf)
Jelmer Vernooij [Mon, 24 Sep 2012 06:21:27 +0000 (08:21 +0200)]
samba-tool domain-provision: Fix docstring. (cherry picked from commit
61ce3e871a1fc1d16202d337d74c2e10f64b2c86)
Daniele Dario [Thu, 20 Sep 2012 13:05:13 +0000 (15:05 +0200)]
Correct command help message
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Sep 20 16:55:17 CEST 2012 on sn-devel-104
(cherry picked from commit
48e6da64fd6cdd055008c7d3e42e8245435f422e)
Jelmer Vernooij [Sun, 16 Sep 2012 12:18:51 +0000 (14:18 +0200)]
s4-python: Formatting fixes, break lines.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Sun Sep 16 15:58:04 CEST 2012 on sn-devel-104
(cherry picked from commit
c0d4f2462f75e0bc0545402b76984b4e6fcb13f1)
Jelmer Vernooij [Sun, 16 Sep 2012 12:18:39 +0000 (14:18 +0200)]
samba.netcmd: Formatting fixes, break lines. (cherry picked from commit
0ff2ea56d97cd8df7abeea8e819d7ec0bfd5b886)
Jelmer Vernooij [Sat, 15 Sep 2012 22:34:14 +0000 (00:34 +0200)]
samba.provision.common: Fix formatting. (cherry picked from commit
ebcb6a744791478bfc4be0b94733ace540ab06bc)
Jelmer Vernooij [Sat, 15 Sep 2012 22:34:00 +0000 (00:34 +0200)]
samba.provision.sambadns: Fix formatting. (cherry picked from commit
cd7dcf4571b321f39eda07c489dd16833d8d4185)
Jelmer Vernooij [Sat, 15 Sep 2012 22:33:09 +0000 (00:33 +0200)]
samba.provision.backend: Fix formatting. (cherry picked from commit
858135920d54662a06252deac4dbf9191a251018)
Jelmer Vernooij [Sat, 15 Sep 2012 22:32:52 +0000 (00:32 +0200)]
samba.provision: Fix formatting, NameErrors. (cherry picked from commit
fdb873a203695f0b208967a561424c0357374e5b)
Jelmer Vernooij [Mon, 24 Sep 2012 23:22:56 +0000 (01:22 +0200)]
replace: Avoid returning value in void setproctitle() replacement.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Tue Sep 25 06:38:40 CEST 2012 on sn-devel-104
(cherry picked from commit
6749cfb418cd8e21df626c7144f1f4db3b6770e7)
The last 3 patches are part of a fix for bug #9121 - provide and use
setproctitle replacement function for samba4 processes on linux.
Jelmer Vernooij [Mon, 24 Sep 2012 07:42:15 +0000 (09:42 +0200)]
Remove compatibility code for setproctitle() now moved to libreplace.
Jelmer Vernooij [Mon, 24 Sep 2012 07:20:46 +0000 (09:20 +0200)]
replace: Support setproctitle().
This uses the setproctitle() from libc, libsetproctitle or libbsd.
If none is available it provides a dummy implementation.
(cherry picked from commit
fd8d4ec34785e71de3f8458222d196d454d0e723)
Joachim Schmitz [Mon, 17 Sep 2012 12:26:31 +0000 (05:26 -0700)]
libreplace: Bug 8107, Fix poll replacement to become a msleep replacement
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
7542b63188f7e73588c9abb40e36a910c87bc534)
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Tue Oct 9 12:14:55 CEST 2012 on sn-devel-104
Björn Jacke [Sun, 16 Sep 2012 00:21:39 +0000 (02:21 +0200)]
replace: add some includes for poll.h
See bug #8107
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sun Sep 16 04:05:08 CEST 2012 on sn-devel-104
(cherry picked from commit
520c9b0b0ae33e6e8fb78034cfff685f5491aab3)
(cherry picked from commit
ea96d79e21a549204a7f64307059ea877bfb9fd5)
Günther Deschner [Wed, 19 Sep 2012 08:59:50 +0000 (10:59 +0200)]
pam_winbind: match more return codes when wbcGetPwnam has failed.
This is required to properly return PAM_USER_UNKNOWN in case winbind had a
problem.
Guenther
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Sep 19 15:06:10 CEST 2012 on sn-devel-104
(cherry picked from commit
98d90c02f0961d173bebb9901c7ad0819827f96e)
Fix bug #9177 - pam_winbind's pm_sm_acct_mgmt needs to return PAM_USER_UNKNOWN.
Jeremy Allison [Wed, 3 Oct 2012 19:58:00 +0000 (12:58 -0700)]
Correct fix for bug #9222 - smbd ignores the "server signing = no" setting for SMB2.
Signing cannot be disabled for SMB2 by design, so fix the documentation
instead.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Oct 3 23:47:23 CEST 2012 on sn-devel-104
(cherry picked from commit
fe38a93c71d0adc0be1d43b438ac3b54eaf4ba53)
Andreas Schneider [Mon, 8 Oct 2012 10:32:49 +0000 (12:32 +0200)]
s3fs-printing: Fix RAW printing for normal users.
This fixes bug #8769.
Signed-off-by: Andreas Schneider <asn@samba.org>
Volker Lendecke [Tue, 2 Oct 2012 13:44:41 +0000 (15:44 +0200)]
s3: Add two tests a CLEAR_IF_FIRST crash
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sat Oct 6 17:16:39 CEST 2012 on sn-devel-104
Signed-off-by: Jeremy Allison <jra@samba.org>
The last 3 patches address bug #9268 - Make tdb robust against improper
CLEAR_IF_FIRST restart.
Volker Lendecke [Tue, 2 Oct 2012 13:26:14 +0000 (15:26 +0200)]
tdb: Make tdb robust against improper CLEAR_IF_FIRST restart
When winbind is restarted, there is a potential crash in tdb. Following
situation: We are in a cluster with ctdb. A winbind child hangs
in a request to the DC. Cluster monitoring decides the node has a
problem. Cluster monitoring decides to kill ctdbd. winbind child
still hangs in a RPC request. winbind parent figures that ctdb is
dead and immediately commits suicide. winbind parent is restarted by
cluster management, overwriting gencache.tdb with CLEAR_IF_FIRST. The
CLEAR_IF_FIRST logic as implemented now will not see that a child still
has the tdb open, only the parent holds the ACTIVE_LOCK due to performance
reasons. During the CLEAR_IF_FIRST logic is done, there is a very small
window where we ftruncate(tfd, 0) the file and re-write a proper header
without a lock. When during this small window the winbind child comes
back, wanting to store something into gencache.tdb, that winbind child
will crash with a SIGBUS.
Sounds unlikely? See:
[2012/09/29 07:02:31.871607, 0] lib/util.c:1183(smb_panic)
PANIC (pid
1814517): internal error
[2012/09/29 07:02:31.877596, 0] lib/util.c:1287(log_stack_trace)
BACKTRACE: 35 stack frames:
#0 winbindd(log_stack_trace+0x1a) [0x7feb7d4ca18a]
#1 winbindd(smb_panic+0x2b) [0x7feb7d4ca25b]
#2 winbindd(+0x1a3cc4) [0x7feb7d4bacc4]
#3 /lib64/libc.so.6(+0x32900) [0x7feb7a929900]
#4 /lib64/libc.so.6(memcpy+0x35) [0x7feb7a97f355]
#5 /usr/lib64/libtdb.so.1(+0x6e76) [0x7feb7b0b0e76]
#6 /usr/lib64/libtdb.so.1(+0x3d37) [0x7feb7b0add37]
#7 /usr/lib64/libtdb.so.1(+0x863d) [0x7feb7b0b263d]
#8 /usr/lib64/libtdb.so.1(+0x8700) [0x7feb7b0b2700]
#9 /usr/lib64/libtdb.so.1(+0x2505) [0x7feb7b0ac505]
#10 /usr/lib64/libtdb.so.1(+0x25b7) [0x7feb7b0ac5b7]
#11 /usr/lib64/libtdb.so.1(tdb_fetch+0x13) [0x7feb7b0ac633]
#12 winbindd(gencache_set_data_blob+0x259) [0x7feb7d4d8449]
#13 winbindd(gencache_set+0x53) [0x7feb7d4d85b3]
#14 winbindd(gencache_del+0x5e) [0x7feb7d4d879e]
#15 winbindd(saf_delete+0x93) [0x7feb7d54b693]
#16 winbindd(+0xe507e) [0x7feb7d3fc07e]
#17 winbindd(+0xe85e5) [0x7feb7d3ff5e5]
#18 winbindd(+0xe65be) [0x7feb7d3fd5be]
#19 winbindd(+0xe7562) [0x7feb7d3fe562]
#20 winbindd(init_dc_connection+0x2e) [0x7feb7d3fe5be]
#21 winbindd(+0xe75d9) [0x7feb7d3fe5d9]
#22 winbindd(cm_connect_netlogon+0x58) [0x7feb7d3fe658]
#23 winbindd(_wbint_PingDc+0x61) [0x7feb7d410991]
#24 winbindd(+0x103175) [0x7feb7d41a175]
#25 winbindd(winbindd_dual_ndrcmd+0xb7) [0x7feb7d4107d7]
#26 winbindd(+0xf8609) [0x7feb7d40f609]
#27 winbindd(+0xf9075) [0x7feb7d410075]
#28 winbindd(tevent_common_loop_immediate+0xe8) [0x7feb7d4db198]
#29 winbindd(run_events_poll+0x3c) [0x7feb7d4d93fc]
#30 winbindd(+0x1c2b52) [0x7feb7d4d9b52]
#31 winbindd(_tevent_loop_once+0x90) [0x7feb7d4d9f60]
#32 winbindd(main+0x7b3) [0x7feb7d3e7aa3]
#33 /lib64/libc.so.6(__libc_start_main+0xfd) [0x7feb7a915cdd]
#34 winbindd(+0xce2a9) [0x7feb7d3e52a9]
This is in a winbind child, logfiles surrounding indicate the parent
was restarted.
This patch takes all chain locks around the CLEAR_IF_FIRST introduced
tdb_new_database.
Signed-off-by: Jeremy Allison <jra@samba.org>
Rusty Russell [Sat, 6 Oct 2012 11:23:05 +0000 (13:23 +0200)]
tdb: Make robust against shrinking tdbs
When probing for a size change (eg. just before tdb_expand, tdb_check,
tdb_rescue) we call tdb_oob(tdb, tdb->map_size, 1, 1). Unfortunately
this does nothing if the tdb has actually shrunk, which as Volker
demonstrated, can actually happen if a "longlived" parent crashes.
So move the map/update size/remap before the limit check.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jeremy Allison <jra@samba.org>
Matthieu Patou [Wed, 3 Oct 2012 07:37:34 +0000 (00:37 -0700)]
s4-dns: fix a warning
Fix bug #9240 - Dns server has a least a warning about unused variable.
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Mon Oct 8 14:28:38 CEST 2012 on sn-devel-104
Jeremy Allison [Wed, 3 Oct 2012 00:30:54 +0000 (17:30 -0700)]
Fix bug #9214 - Bad user supplied SMB2 credit value can cause smbd to call smb_panic.
Terminate the connection cleanly instead.
(cherry picked from commit
c2f5b2466bb05939c953341517da6d9df814b27c)
Andreas Schneider [Tue, 2 Oct 2012 12:25:40 +0000 (14:25 +0200)]
waf: Build pam_smbpass module only if enabled.
(cherry picked from commit
fb3cf6c24270d22dad8ac9a1c12e8d77c8189f11)
Signed-off-by: Andreas Schneider <asn@samba.org>
Fix bug #9244 - The option --with-pam_smbpass doens't work.
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Thu Oct 4 18:50:33 CEST 2012 on sn-devel-104
Andreas Schneider [Tue, 2 Oct 2012 13:51:08 +0000 (15:51 +0200)]
s3fs-smbd: Make sure the registry is set up before we init printing.
(cherry picked from commit
50de2c9bbbc25074f022b4b2cf9d49f8e9a53e01)
Signed-off-by: Andreas Schneider <asn@samba.org>
Fix bug #9245 - Printing backend is initialized before the winreg pipe is set
up.
Karolin Seeger [Thu, 4 Oct 2012 08:00:44 +0000 (10:00 +0200)]
docs: Remove duplicate synonym min protocol.
Karolin
(cherry picked from commit
c627ba145e18c3fb91ca6da730541dd1f119c4d0)
The last 2 patches address bug #9243 - Duplicate synonym 'min protocol'.
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Thu Oct 4 16:42:57 CEST 2012 on sn-devel-104
Jelmer Vernooij [Wed, 26 Sep 2012 22:55:04 +0000 (15:55 -0700)]
smb.conf(5): Add basic documentation for 'server min protocol'.
Conflicts:
docs-xml/smbdotconf/protocol/serverminprotocol.xml
(cherry picked from commit
b97c257f3af942d0767226793fa705940caad8dd)
Karolin Seeger [Thu, 4 Oct 2012 09:43:20 +0000 (11:43 +0200)]
html docs: Remove link to Using Samba.
Thanks to Christian Perrier <bubulle@debian.org> for reporting!
Fix bug #7826 - HTML docs index file still points to Using Samba.
Karolin
Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Thu Oct 4 13:48:00 CEST 2012 on sn-devel-104
(cherry picked from commit
1bf209dd7e5a0f0001b3d1e3798093772bbd3fd3)
Jeremy Allison [Thu, 4 Oct 2012 08:56:12 +0000 (10:56 +0200)]
Fix net rpc share allowedusers to work with 2008r2
The RAP NetShareEnum command was removed in 2008r2, so use the RPC equivalent
instead.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=8966
Author: Jeremy Allison <jra@samba.org>
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Thu Oct 4 12:41:16 CEST 2012 on sn-devel-104