samba.git
11 years agosmb.conf(5): Add basic documentation for 'krb5 port'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:46:37 +0000 (12:46 -0700)]
smb.conf(5): Add basic documentation for 'krb5 port'.

11 years agosmb.conf(5): 'write ok' is a reverse synonym for 'read only'.
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'.

11 years agosmb.conf(5): Distinguish parametric options.
Jelmer Vernooij [Wed, 26 Sep 2012 16:36:28 +0000 (18:36 +0200)]
smb.conf(5): Distinguish parametric options.

11 years agofind_missing_doc: Convert to python.
Jelmer Vernooij [Wed, 26 Sep 2012 00:37:01 +0000 (02:37 +0200)]
find_missing_doc: Convert to python.

11 years agofind_missing_manpages: convert to python
Jelmer Vernooij [Wed, 26 Sep 2012 00:05:39 +0000 (02:05 +0200)]
find_missing_manpages: convert to python

11 years agofind_missing_manpages: Ignore make variables.
Jelmer Vernooij [Tue, 25 Sep 2012 23:24:04 +0000 (01:24 +0200)]
find_missing_manpages: Ignore make variables.

11 years agosmb.conf(5): Remove documentation for removed 'lock spin count' parameter.
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

11 years agoRemove unused neatquotes script.
Jelmer Vernooij [Tue, 25 Sep 2012 23:28:17 +0000 (01:28 +0200)]
Remove unused neatquotes script.

11 years agosmb.conf.5: Document 'cldap port'.
Jelmer Vernooij [Tue, 25 Sep 2012 23:31:26 +0000 (01:31 +0200)]
smb.conf.5: Document 'cldap port'.

11 years agoundocumented: Drop extension from helper scripts.
Jelmer Vernooij [Tue, 25 Sep 2012 23:31:37 +0000 (01:31 +0200)]
undocumented: Drop extension from helper scripts.

11 years agos3-docs: add delete_lost option to vfs_streams_depot.8
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

11 years agodocs: Change TOSHARG-VFS to avoid suggesting VFS modules are Linux/IRIX only
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

11 years agodocs: Remove mention of auth methods in TOSHARG-Passdb
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

11 years agodocs: Fix typo in TOSHARG-Passdb
Andrew Bartlett [Tue, 25 Sep 2012 01:04:14 +0000 (11:04 +1000)]
docs: Fix typo in TOSHARG-Passdb

11 years agodocs: Update TOSHARG-Install
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

11 years agodocs: Remove another reference to security=share
Andrew Bartlett [Mon, 17 Sep 2012 18:56:28 +0000 (11:56 -0700)]
docs: Remove another reference to security=share

11 years agodocs: Remove references to specific windows versions, instead mention Home/Profession...
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

11 years agodocs: Remove references to mulitple passdb backends
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

11 years agodocs: Remove references to sysv-style CUPS from TOSHARG-CUPS-printing
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

11 years agodocs: Remove very outdated TOSHARG-Other-Clients section
Andrew Bartlett [Sat, 15 Sep 2012 22:55:55 +0000 (15:55 -0700)]
docs: Remove very outdated TOSHARG-Other-Clients section

11 years agodocs: Remove very outdated TOSHARG-Portability section
Andrew Bartlett [Sat, 15 Sep 2012 22:52:47 +0000 (15:52 -0700)]
docs: Remove very outdated TOSHARG-Portability section

11 years agodocs: Update FastStart: remove security=share, avoid disable spoolss
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

11 years agodocs: Clarify TOSHARG-Bugs for 2012
Andrew Bartlett [Sat, 15 Sep 2012 06:13:33 +0000 (23:13 -0700)]
docs: Clarify TOSHARG-Bugs for 2012

11 years agodocs: Remove reference to inetd startup, it is not recommended
Andrew Bartlett [Sat, 15 Sep 2012 06:08:53 +0000 (23:08 -0700)]
docs: Remove reference to inetd startup, it is not recommended

11 years agodocs: Update BDC docs to recognise the AD DC and to exclusivly recommend LDAP
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

11 years agodocs: Remove referenece to old Red Hat Linux habits on winbindd
Andrew Bartlett [Sat, 15 Sep 2012 05:30:06 +0000 (22:30 -0700)]
docs: Remove referenece to old Red Hat Linux habits on winbindd

11 years agodocs: Remove referenece to autogen.sh and document waf build instead
Andrew Bartlett [Sat, 15 Sep 2012 05:29:39 +0000 (22:29 -0700)]
docs: Remove referenece to autogen.sh and document waf build instead

11 years agodocs: Remove out of date links to pserver.samba.org and old tarballs
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

11 years agodocs: Remove references to Subversion, replace with wiki link
Andrew Bartlett [Sat, 15 Sep 2012 05:28:19 +0000 (22:28 -0700)]
docs: Remove references to Subversion, replace with wiki link

11 years agodocs: Remove references to old kerberos behaviour
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

11 years agodocs: Remove confusing reference to smb signing and client use spnego
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

11 years agodocs: update for modern kerberos libs
Andrew Bartlett [Fri, 14 Sep 2012 18:57:38 +0000 (11:57 -0700)]
docs: update for modern kerberos libs

11 years agodocs: remove references to security=server
Andrew Bartlett [Fri, 14 Sep 2012 18:57:05 +0000 (11:57 -0700)]
docs: remove references to security=server

11 years agodocs: Remove distinction between server and domain accounts
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

11 years agodocs: Update docs to the modern age of Samba 4.0
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

11 years agovfs: check full_audit enum->str mapping on startup
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.

11 years agovfs: add missing pwrite ops to full_audit
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)

11 years agovfs: fix acl_blob_get* in vfs_full_audit
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)

11 years agovfs: fix lock logging in vfs_full_audit (cherry picked from commit 47becf6e20a970d273...
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)

11 years agosamba-tool: Some more unifications...
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.

11 years agosamba-tool: skip chown in sysvolreset when it would fail on a GID
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)

11 years agos4:scripting/python: add '-V' as alias for '--version'
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)

11 years agos4:samba-tool: allow 'samba-tool --version'
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)

11 years agos4:samba-tool: use normal option parsing in SuperCommand
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)

11 years agos4:samba-tool: add optional epilog to _create_parser()
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)

11 years agosamba-tool: Unify usage messages.
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)

11 years agosamba-tool: Clarify usage of --help.
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)

11 years agosamba-tool: Fix typo in usage.
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)

11 years agos4-join: factorize code, add info (cherry picked from commit 95ea6d765b98d9cbdebaa8e2...
Matthieu Patou [Sat, 29 Sep 2012 17:15:05 +0000 (10:15 -0700)]
s4-join: factorize code, add info (cherry picked from commit 95ea6d765b98d9cbdebaa8e23aad91525d94ad40)

11 years agos4-join: add some documentation (cherry picked from commit d57e0d8a6d213543a772a51755...
Matthieu Patou [Mon, 8 Oct 2012 04:52:25 +0000 (21:52 -0700)]
s4-join: add some documentation (cherry picked from commit d57e0d8a6d213543a772a517551cca053cece85e)

11 years agodevel-crackname: Print if count > 0 (cherry picked from commit e332f989091411602ef7f2...
Matthieu Patou [Tue, 25 Sep 2012 09:00:23 +0000 (02:00 -0700)]
devel-crackname: Print if count > 0 (cherry picked from commit e332f989091411602ef7f286ebb2f5b1462550e4)

11 years agos4: samba_backup: Fix typos.
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)

11 years agoprovision: Use logger rather than print.
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)

11 years agos4-provision: do not skip setting the acls on sysvol
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)

11 years agosanba.upgradehelpers: Use standard functionality for getting temp dir. (cherry picked...
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)

11 years agos4-python: Various formatting fixes.
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)

11 years agosamba.tests.source: Check for trailing whitespace in Python files. (cherry picked...
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)

11 years agosamba-tool domain provision: DNS forwarder default
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)

11 years agosamba-tool: Hide 'samba-tool domain samba3upgrade'.
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)

11 years agosamba_dnsupdate: Safely update/create names for Samba3 targets as well
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)

11 years agosamba_dnsupdate: Move to using tmpfile/rename to keep the dns_hosts_file consistent
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)

11 years agoselftest: Remove invalid security=share and rename secshare to simpleserver
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)

11 years agos4-python: Override SIGINT handler in scripts only.
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)

11 years agosamba-tool domain provision: DNS forwarder is not a boolean.
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)

11 years agosamba-tool domain-provision: Avoid python2.5-isms. (cherry picked from commit 6641d76...
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)

11 years agosamba-tool domain-provision: Fix docstring. (cherry picked from commit 61ce3e871a1fc1...
Jelmer Vernooij [Mon, 24 Sep 2012 06:21:27 +0000 (08:21 +0200)]
samba-tool domain-provision: Fix docstring. (cherry picked from commit 61ce3e871a1fc1d16202d337d74c2e10f64b2c86)

11 years agoCorrect command help message
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)

11 years agos4-python: Formatting fixes, break lines.
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)

11 years agosamba.netcmd: Formatting fixes, break lines. (cherry picked from commit 0ff2ea56d97cd...
Jelmer Vernooij [Sun, 16 Sep 2012 12:18:39 +0000 (14:18 +0200)]
samba.netcmd: Formatting fixes, break lines. (cherry picked from commit 0ff2ea56d97cd8df7abeea8e819d7ec0bfd5b886)

11 years agosamba.provision.common: Fix formatting. (cherry picked from commit ebcb6a744791478bfc...
Jelmer Vernooij [Sat, 15 Sep 2012 22:34:14 +0000 (00:34 +0200)]
samba.provision.common: Fix formatting. (cherry picked from commit ebcb6a744791478bfc4be0b94733ace540ab06bc)

11 years agosamba.provision.sambadns: Fix formatting. (cherry picked from commit cd7dcf4571b321f3...
Jelmer Vernooij [Sat, 15 Sep 2012 22:34:00 +0000 (00:34 +0200)]
samba.provision.sambadns: Fix formatting. (cherry picked from commit cd7dcf4571b321f39eda07c489dd16833d8d4185)

11 years agosamba.provision.backend: Fix formatting. (cherry picked from commit 858135920d54662a0...
Jelmer Vernooij [Sat, 15 Sep 2012 22:33:09 +0000 (00:33 +0200)]
samba.provision.backend: Fix formatting. (cherry picked from commit 858135920d54662a06252deac4dbf9191a251018)

11 years agosamba.provision: Fix formatting, NameErrors. (cherry picked from commit fdb873a203695...
Jelmer Vernooij [Sat, 15 Sep 2012 22:32:52 +0000 (00:32 +0200)]
samba.provision: Fix formatting, NameErrors. (cherry picked from commit fdb873a203695f0b208967a561424c0357374e5b)

11 years agoreplace: Avoid returning value in void setproctitle() replacement.
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.

11 years agoRemove compatibility code for setproctitle() now moved to libreplace.
Jelmer Vernooij [Mon, 24 Sep 2012 07:42:15 +0000 (09:42 +0200)]
Remove compatibility code for setproctitle() now moved to libreplace.

11 years agoreplace: Support setproctitle().
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)

11 years agolibreplace: Bug 8107, Fix poll replacement to become a msleep replacement
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

11 years agoreplace: add some includes for poll.h
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)

11 years agopam_winbind: match more return codes when wbcGetPwnam has failed.
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.

11 years agoCorrect fix for bug #9222 - smbd ignores the "server signing = no" setting for SMB2.
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)

11 years agos3fs-printing: Fix RAW printing for normal users.
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>
11 years agos3: Add two tests a CLEAR_IF_FIRST crash
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.

11 years agotdb: 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>
11 years agotdb: Make robust against shrinking tdbs
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>
11 years agos4-dns: fix a warning
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

11 years agoFix bug #9214 - Bad user supplied SMB2 credit value can cause smbd to call smb_panic.
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)

11 years agowaf: Build pam_smbpass module only if enabled.
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

11 years agos3fs-smbd: Make sure the registry is set up before we init printing.
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.

11 years agodocs: Remove duplicate synonym min protocol.
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

11 years agosmb.conf(5): Add basic documentation for 'server min protocol'.
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)

11 years agohtml docs: Remove link to Using Samba.
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)

11 years agoFix net rpc share allowedusers to work with 2008r2
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

11 years agos3-docs: Fix opening and ending tag mismatch in Samba3-HOWTO (Bug #9235)
Björn Baumbach [Tue, 2 Oct 2012 08:53:15 +0000 (10:53 +0200)]
s3-docs: Fix opening and ending tag mismatch in Samba3-HOWTO (Bug #9235)

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

The last 5 patches address bug #9235 - Opening and ending tag mismatch in
Samba3-HOWTO/TOSHARG-PDC.xml.

11 years agodocs: Remove Win9X/WinMe mentions from TOSHARG-PDC
Andrew Bartlett [Sat, 22 Sep 2012 18:55:20 +0000 (04:55 +1000)]
docs: Remove Win9X/WinMe mentions from TOSHARG-PDC
(cherry picked from commit e3f554a99f3871eabac35db1ba3236772ef58f64)

11 years agodocs: Add mention of AD DC support in TOSHARG-PDC
Andrew Bartlett [Sat, 22 Sep 2012 18:54:24 +0000 (04:54 +1000)]
docs: Add mention of AD DC support in TOSHARG-PDC
(cherry picked from commit f82affaa6defef52696f69f114143cfb80fee241)

11 years agodocs: Explain the no-domain-logons restriction applies to all HOME editions
Andrew Bartlett [Sat, 22 Sep 2012 18:53:55 +0000 (04:53 +1000)]
docs: Explain the no-domain-logons restriction applies to all HOME editions
(cherry picked from commit 6fcb95bad7db8f970ae6c74f1fdd7b4c2a41f25c)

11 years agodocs: Remove references to default paramters in TOSHARG-PDC
Andrew Bartlett [Sat, 22 Sep 2012 18:52:56 +0000 (04:52 +1000)]
docs: Remove references to default paramters in TOSHARG-PDC
(cherry picked from commit 3be323c6110f1a241f86aacb94c8ff1ba69351c5)

11 years agos4 dns: Fix return code for deleted records
Kai Blin [Sun, 30 Sep 2012 09:26:24 +0000 (11:26 +0200)]
s4 dns: Fix return code for deleted records

This fixes bug #9225. We already had a test for this scenario, but the test wasn't
correct. This patch fixes the test, and also fixes the bug.

Signed-off-by: Kai Blin <kai@samba.org>
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Tue Oct  2 16:46:06 CEST 2012 on sn-devel-104

11 years agos4:dns_server - introduce the wildcard binding feature
Matthias Dieter Wallnöfer [Sun, 12 Aug 2012 16:08:20 +0000 (18:08 +0200)]
s4:dns_server - introduce the wildcard binding feature

We need the wildcard binding feature otherwise we might get bound to a
private interface in case of multiple interfaces and no "interfaces"
parameter in smb.conf.

Code taken from source4/ldap_server/ldap_server.c

Signed-off-by: Kai Blin <kai@samba.org>
Autobuild-User(master): Kai Blin <kai@samba.org>
Autobuild-Date(master): Sun Sep 23 23:44:03 CEST 2012 on sn-devel-104

Fix bug #9183 - DNS server does not listen on localhost.

11 years agos4: Fix a -Wunused-value warning
Volker Lendecke [Wed, 26 Sep 2012 17:07:32 +0000 (10:07 -0700)]
s4: Fix a -Wunused-value warning

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Sep 26 21:52:00 CEST 2012 on sn-devel-104
(cherry picked from commit 5022b3d8c183181b922e3ccac49e5819eb453035)

Fix bug #9223 - Uninitialized variable in the cldap server can give bad netlogon
netsamlogon response.