samba.git
7 years agos3: Remove share mode handling before we open the file
Volker Lendecke [Thu, 13 Sep 2012 13:40:17 +0000 (15:40 +0200)]
s3: Remove share mode handling before we open the file

This is a significant behaviour change: We do not open the file under
the share mode lock anymore. This might lead to more open calls in case
of oplock breaks or sharing violations, but those are slow error paths
and as such might be not too performance sensitive. The benefit of this
patch is a significant reduction of complexity of open_file_ntcreate()

7 years agos3: Fix fcb_or_dos_open after logic change
Volker Lendecke [Thu, 13 Sep 2012 13:45:49 +0000 (15:45 +0200)]
s3: Fix fcb_or_dos_open after logic change

With the new behaviour, we call fcb_or_dos_open after open_file(). It
is open_file() that sets up the fsp so that fcb_or_dos_open can find it
in the list of fsps. Avoid finding the fsp we are just setting up.

7 years agos3: Copy share mode handling from before to after open_file
Volker Lendecke [Wed, 26 Sep 2012 17:39:42 +0000 (10:39 -0700)]
s3: Copy share mode handling from before to after open_file

This is a 1:1 copy&paste of the oplock/sharemode code that we do before
an existing file is opened. It is a prerequiste for a patch that removes
all of that handling before we open the file.

7 years agos3:libsmb: use smbXcli_conn_remote_name() in smb2_tcon_send()
Stefan Metzmacher [Fri, 28 Sep 2012 17:11:14 +0000 (19:11 +0200)]
s3:libsmb: use smbXcli_conn_remote_name() in smb2_tcon_send()

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep 29 11:52:43 CEST 2012 on sn-devel-104

7 years agos3:libsmb: make cli_echo* protocol independent
Stefan Metzmacher [Fri, 28 Sep 2012 18:00:21 +0000 (20:00 +0200)]
s3:libsmb: make cli_echo* protocol independent

metze

7 years agolibcli/smb: add smb1cli_echo*
Stefan Metzmacher [Fri, 28 Sep 2012 17:53:16 +0000 (19:53 +0200)]
libcli/smb: add smb1cli_echo*

metze

7 years agolibcli/smb: add smb2cli_echo*
Stefan Metzmacher [Fri, 28 Sep 2012 17:18:37 +0000 (19:18 +0200)]
libcli/smb: add smb2cli_echo*

metze

7 years agolibcli/smb: use an explicit TALLOC_FREE(subreq) in smb2cli_*
Stefan Metzmacher [Fri, 28 Sep 2012 17:48:26 +0000 (19:48 +0200)]
libcli/smb: use an explicit TALLOC_FREE(subreq) in smb2cli_*

metze

7 years agobuild: Remove duplicate check for struct getquota_rslt member getquota_rslt_u
Andrew Bartlett [Sat, 29 Sep 2012 04:31:28 +0000 (14:31 +1000)]
build: Remove duplicate check for struct getquota_rslt member getquota_rslt_u

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Sep 29 08:51:03 CEST 2012 on sn-devel-104

7 years agobuild: Fix quota tests, including move of sysquotas.c to the top level
Andrew Bartlett [Sat, 29 Sep 2012 04:28:57 +0000 (14:28 +1000)]
build: Fix quota tests, including move of sysquotas.c to the top level

This correctly detects quotas on FreeBSD

Andrew Bartlett

7 years agolib/replace: Add test for what flag we need for -Werror behaviour
Andrew Bartlett [Sat, 29 Sep 2012 04:36:41 +0000 (14:36 +1000)]
lib/replace: Add test for what flag we need for -Werror behaviour

7 years agos3-winbindd: Adjust error code loop logic in rpc_trusted_domains().
Günther Deschner [Fri, 28 Sep 2012 16:04:07 +0000 (18:04 +0200)]
s3-winbindd: Adjust error code loop logic in rpc_trusted_domains().

Guenther

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Sat Sep 29 00:34:04 CEST 2012 on sn-devel-104

7 years agos3-lsa: Flesh out the returned info in _lsa_EnumTrustedDomainsEx().
Günther Deschner [Fri, 28 Sep 2012 16:03:25 +0000 (18:03 +0200)]
s3-lsa: Flesh out the returned info in _lsa_EnumTrustedDomainsEx().

Guenther

7 years agos3-winbindd: Allow DNS resolution of trusted domains if DNS name is avaliable
Sumit Bose [Tue, 11 Sep 2012 11:28:35 +0000 (13:28 +0200)]
s3-winbindd: Allow DNS resolution of trusted domains if DNS name is avaliable

Signed-off-by: Günther Deschner <gd@samba.org>
7 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

7 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>
7 years agoWHATSNEW: Add changed parameters.
Karolin Seeger [Fri, 28 Sep 2012 10:40:14 +0000 (12:40 +0200)]
WHATSNEW: Add changed parameters.

Needs to be double-checked.

Karolin

Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Fri Sep 28 14:22:52 CEST 2012 on sn-devel-104

7 years agoWHATSNEW: Start release notes for Samba 4.0.0rc2.
Karolin Seeger [Fri, 28 Sep 2012 09:30:06 +0000 (11:30 +0200)]
WHATSNEW: Start release notes for Samba 4.0.0rc2.

To be continued...

Karolin

7 years agoSupport UPN_DNS_INFO in the PAC
Simo Sorce [Thu, 27 Sep 2012 18:12:06 +0000 (14:12 -0400)]
Support UPN_DNS_INFO in the PAC

Previously marked as UNKNOWN_12 the UPN_DNS_INFO is defined in MS-PAC

Autobuild-User(master): Simo Sorce <idra@samba.org>
Autobuild-Date(master): Fri Sep 28 01:13:44 CEST 2012 on sn-devel-104

7 years agoFix bug #9209 - Parse of invalid SMB2 create blob can cause smbd crash.
Jeremy Allison [Wed, 26 Sep 2012 23:58:58 +0000 (16:58 -0700)]
Fix bug #9209 - Parse of invalid SMB2 create blob can cause smbd crash.

Ensure we correctly protect against blobs with data_offset==0
and data_length != 0.

Jeremy.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Sep 27 22:07:02 CEST 2012 on sn-devel-104

7 years agosamba4-tests: Move 'samba.tests.source' up.
Jelmer Vernooij [Thu, 27 Sep 2012 16:41:32 +0000 (09:41 -0700)]
samba4-tests: Move 'samba.tests.source' up.

We would like to run this as early as possible so we get a quick
failure when there is trailing whitespace.

Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Thu Sep 27 20:26:27 CEST 2012 on sn-devel-104

7 years agosanba.upgradehelpers: Use standard functionality for getting temp dir.
Jelmer Vernooij [Thu, 27 Sep 2012 16:34:36 +0000 (09:34 -0700)]
sanba.upgradehelpers: Use standard functionality for getting temp dir.

7 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

7 years agosamba.tests.source: Check for trailing whitespace in Python files.
Jelmer Vernooij [Thu, 27 Sep 2012 16:30:26 +0000 (09:30 -0700)]
samba.tests.source: Check for trailing whitespace in Python files.

7 years agosmb.conf(5): Add basic documentation for 'dcerpc endpoint servers'.
Jelmer Vernooij [Thu, 27 Sep 2012 01:01:35 +0000 (18:01 -0700)]
smb.conf(5): Add basic documentation for 'dcerpc endpoint servers'.

7 years agos3: Fix some blank line endings
Volker Lendecke [Wed, 26 Sep 2012 23:53:48 +0000 (16:53 -0700)]
s3: Fix some blank line endings

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Sep 27 07:57:03 CEST 2012 on sn-devel-104

7 years agoRevert "smb.conf(5): Remove 'idmap config' documentation - the parameter has"
Christian Ambach [Thu, 27 Sep 2012 01:30:37 +0000 (18:30 -0700)]
Revert "smb.conf(5): Remove 'idmap config' documentation - the parameter has"

This reverts commit e809abf55f6a2e6d93bcb5678142f56c49aea397.

This parameter still exists, it is just only used as parametric option
in the code and not easy to spot when looking out for lp_xxx

Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Thu Sep 27 06:18:38 CEST 2012 on sn-devel-104

7 years agos3:nfs4acls filter away inheritance flags on files
Christian Ambach [Tue, 25 Sep 2012 01:25:36 +0000 (03:25 +0200)]
s3:nfs4acls filter away inheritance flags on files

While it is possible to define inheritance flags on files on Windows, this will
be denied by GPFS and UFS (and potentially others).

So it will be better to strip of these bits when being set for files instead of
failing to set the ACL completely (this is current behavior).

Users that want to retain the full SD will have to use acl_xattr (acl_tdb), as
other pieces of the SD are also lost when translating to NFSv4. So this should
not be a too intrusive change, but allow users to migrate data with such flags
instead of failing to migrate the ACL completely.

7 years agos3:nfs4acls pass down fsp instead of just the filename
Christian Ambach [Mon, 24 Sep 2012 23:34:04 +0000 (01:34 +0200)]
s3:nfs4acls pass down fsp instead of just the filename

7 years agos3:passdb formatting changes
Christian Ambach [Mon, 24 Sep 2012 01:03:26 +0000 (03:03 +0200)]
s3:passdb formatting changes

fix some trailing whitespace and a typo

7 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

7 years agosmb.conf(5): List 'protocol' as alias for 'server max protocol'.
Jelmer Vernooij [Wed, 26 Sep 2012 23:06:14 +0000 (16:06 -0700)]
smb.conf(5): List 'protocol' as alias for 'server max protocol'.

7 years agosmb.conf(5): Add documentation for 'client max protocol'.
Jelmer Vernooij [Wed, 26 Sep 2012 23:11:05 +0000 (16:11 -0700)]
smb.conf(5): Add documentation for 'client max protocol'.

7 years agosmb.conf(5): Add basic documentation for 'client min protocol'.
Jelmer Vernooij [Wed, 26 Sep 2012 23:12:16 +0000 (16:12 -0700)]
smb.conf(5): Add basic documentation for 'client min protocol'.

7 years agosmb.conf(5): Document 'share backend' parameter.
Jelmer Vernooij [Wed, 26 Sep 2012 22:44:46 +0000 (15:44 -0700)]
smb.conf(5): Document 'share backend' parameter.

7 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

7 years agosmb.conf(5): Extend 'server min protocol' description.
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

7 years agosmb.conf(5): Consistent spelling of parameter names.
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

7 years agos3: For read-only shares, filter out write bits from conn->access_mask
Volker Lendecke [Wed, 26 Sep 2012 22:26:35 +0000 (15:26 -0700)]
s3: For read-only shares, filter out write bits from conn->access_mask

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Sep 27 02:51:42 CEST 2012 on sn-devel-104

7 years agos3: Fix rejecting mkdir on read-only shares
Volker Lendecke [Wed, 26 Sep 2012 21:53:59 +0000 (14:53 -0700)]
s3: Fix rejecting mkdir on read-only shares

Signed-off-by: Jeremy Allison <jra@samba.org>
7 years agosmb.conf(5): Add basic documentation for 'rpc bigendian'.
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

7 years agosmb.conf(5): Add basic documentation for 'kpasswd port'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:59:32 +0000 (12:59 -0700)]
smb.conf(5): Add basic documentation for 'kpasswd port'.

7 years agosmb.conf(5): Add basic documentation for 'dgram port'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:58:02 +0000 (12:58 -0700)]
smb.conf(5): Add basic documentation for 'dgram port'.

7 years agosmb.conf(5): Add basic documentation for 'unicode'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:55:15 +0000 (12:55 -0700)]
smb.conf(5): Add basic documentation for 'unicode'.

7 years agosmb.conf(5): Add basic documentation for 'web port'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:51:41 +0000 (12:51 -0700)]
smb.conf(5): Add basic documentation for 'web port'.

7 years agosmb.conf(5): Add basic documentation for 'nbt port'.
Jelmer Vernooij [Wed, 26 Sep 2012 19:50:34 +0000 (12:50 -0700)]
smb.conf(5): Add basic documentation for 'nbt port'.

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

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

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

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

7 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

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

7 years agonetlogon: Per MS-NRPC, don't send unknown workstation flags back to the
Jelmer Vernooij [Wed, 26 Sep 2012 17:47:56 +0000 (19:47 +0200)]
netlogon: Per MS-NRPC, don't send unknown workstation flags back to the
client.

7 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

7 years agos3-spoolss: Fix builtin forms order to match Windows again.
Andreas Schneider [Wed, 26 Sep 2012 16:21:55 +0000 (18:21 +0200)]
s3-spoolss: Fix builtin forms order to match Windows again.

Thanks to mamachine@gmail.com.

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Sep 26 20:07:44 CEST 2012 on sn-devel-104

7 years agos3: Slightly simplify open_file()
Volker Lendecke [Tue, 4 Sep 2012 08:36:47 +0000 (10:36 +0200)]
s3: Slightly simplify open_file()

The "else" is not necessary. In the if-branch we just returned.

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Sep 26 18:08:03 CEST 2012 on sn-devel-104

7 years agoCoding: Add comment disproving control-flow changing macros
Volker Lendecke [Wed, 30 May 2012 08:14:51 +0000 (10:14 +0200)]
Coding: Add comment disproving control-flow changing macros

7 years agos3: Slightly simplify calculate_open_access_flags
Volker Lendecke [Tue, 4 Sep 2012 07:28:26 +0000 (09:28 +0200)]
s3: Slightly simplify calculate_open_access_flags

7 years agos3: Slightly simplify calculate_open_access_flags
Volker Lendecke [Tue, 4 Sep 2012 07:26:28 +0000 (09:26 +0200)]
s3: Slightly simplify calculate_open_access_flags

7 years agos3-smbd: Don't segfault if user specified ports out for range.
Andreas Schneider [Tue, 25 Sep 2012 12:28:22 +0000 (14:28 +0200)]
s3-smbd: Don't segfault if user specified ports out for range.

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Sep 26 16:28:44 CEST 2012 on sn-devel-104

7 years agonsswitch: Add waf tests for solaris special cases
Andrew Bartlett [Wed, 26 Sep 2012 08:09:20 +0000 (18:09 +1000)]
nsswitch: Add waf tests for solaris special cases

These are in configure.in for autoconf.  Found in the config.h comparison on
the smbtorture4 build.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Sep 26 11:50:10 CEST 2012 on sn-devel-104

7 years agobuild: Remove unused --with-sys-quotas option
Andrew Bartlett [Wed, 26 Sep 2012 03:10:17 +0000 (13:10 +1000)]
build: Remove unused --with-sys-quotas option

7 years agobuild: Set HAVE_SYS_QUOTAS and WITH_QUOTAS if we have any supported sysquota backend
Andrew Bartlett [Wed, 26 Sep 2012 02:42:15 +0000 (12:42 +1000)]
build: Set HAVE_SYS_QUOTAS and WITH_QUOTAS if we have any supported sysquota backend

7 years agobuild: Remove unused samba_cv_sysquotas_file variable from autoconf configure
Andrew Bartlett [Wed, 26 Sep 2012 02:33:50 +0000 (12:33 +1000)]
build: Remove unused samba_cv_sysquotas_file variable from autoconf configure

7 years agobuild: Add waf configure support for non-linux quotas
Andrew Bartlett [Wed, 26 Sep 2012 02:33:13 +0000 (12:33 +1000)]
build: Add waf configure support for non-linux quotas

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

7 years agosmb.conf(5): Remove 'idmap config' documentation - the parameter has
Jelmer Vernooij [Wed, 26 Sep 2012 00:58:28 +0000 (02:58 +0200)]
smb.conf(5): Remove 'idmap config' documentation - the parameter has
been removed.

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

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

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

7 years agoRemove obsolete land-remote.py and land.py scripts.
Jelmer Vernooij [Tue, 25 Sep 2012 22:47:02 +0000 (00:47 +0200)]
Remove obsolete land-remote.py and land.py scripts.

7 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

7 years agoselftest/knownfail: samba*.smb2.oplock.stream1 doesn't work
Stefan Metzmacher [Wed, 26 Sep 2012 01:24:22 +0000 (03:24 +0200)]
selftest/knownfail: samba*.smb2.oplock.stream1 doesn't work

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Sep 26 07:57:12 CEST 2012 on sn-devel-104

7 years agos4:torture/smb2: remove samba specific stuff from smb2.oplock
Stefan Metzmacher [Wed, 26 Sep 2012 01:08:33 +0000 (03:08 +0200)]
s4:torture/smb2: remove samba specific stuff from smb2.oplock

metze

7 years agos3:smb2_create: don't take 'state->te' as indication for "was_deferred" (bug #9196)
Stefan Metzmacher [Wed, 26 Sep 2012 01:04:20 +0000 (03:04 +0200)]
s3:smb2_create: don't take 'state->te' as indication for "was_deferred" (bug #9196)

We always set state->te = NULL of TALLOC_FREE(state->te),
before calling smbd_smb2_request_dispatch(), so
open_was_deferred_smb2() always returned false, while dispatching
it again.

But it's remove_deferred_open_message_smb2_internal() which
should reset this state.

In developer mode validate_my_share_entries() did call smb_panic()
before.

metze

7 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

7 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

7 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

7 years agoFix bug #9213 - Bad ASN.1 NegTokenInit packet can cause invalid free.
Jeremy Allison [Tue, 25 Sep 2012 23:35:09 +0000 (16:35 -0700)]
Fix bug #9213 - Bad ASN.1 NegTokenInit packet can cause invalid free.

Not the correct fix for the specific issue, but a general fix to
make sure this can never happen again.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Sep 26 04:07:57 CEST 2012 on sn-devel-104

7 years agolib/util/charset: We do not use fucntions from wchar.h any more
Andrew Bartlett [Tue, 25 Sep 2012 22:10:29 +0000 (08:10 +1000)]
lib/util/charset: We do not use fucntions from wchar.h any more

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Sep 26 02:13:10 CEST 2012 on sn-devel-104

7 years agolib/util/charset: Try to find iconv on HP-UX
Andrew Bartlett [Tue, 25 Sep 2012 21:41:38 +0000 (07:41 +1000)]
lib/util/charset: Try to find iconv on HP-UX

7 years agowscript: Removed executable bit.
Ricky Nance [Tue, 25 Sep 2012 06:10:42 +0000 (01:10 -0500)]
wscript: Removed executable bit.

Removed the executable for both wscript and wscript_build.

7 years agos3: Factor out calculate_open_access_flags
Volker Lendecke [Tue, 4 Sep 2012 07:22:49 +0000 (09:22 +0200)]
s3: Factor out calculate_open_access_flags

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Sep 26 00:22:56 CEST 2012 on sn-devel-104

7 years agos3: Slightly simplify smbd_smb2_request_process_negprot
Volker Lendecke [Wed, 12 Sep 2012 14:43:36 +0000 (16:43 +0200)]
s3: Slightly simplify smbd_smb2_request_process_negprot

Remove a nested if-statement

7 years agos3: Fix some blank line endings
Volker Lendecke [Mon, 24 Sep 2012 21:11:05 +0000 (14:11 -0700)]
s3: Fix some blank line endings

7 years agos3: Fix a typo
Volker Lendecke [Tue, 25 Sep 2012 17:34:49 +0000 (10:34 -0700)]
s3: Fix a typo

7 years agopysmbd: Fix cut&paste errors
Volker Lendecke [Mon, 24 Sep 2012 21:18:42 +0000 (14:18 -0700)]
pysmbd: Fix cut&paste errors

7 years agopyntdb: Fix init function for ntdb python module.
Pierre Lejeune [Tue, 25 Sep 2012 18:56:37 +0000 (20:56 +0200)]
pyntdb: Fix init function for ntdb python module.

Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Tue Sep 25 22:40:39 CEST 2012 on sn-devel-104

7 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

7 years agos3: Slightly simplify is_stat_open
Volker Lendecke [Wed, 5 Sep 2012 13:24:46 +0000 (15:24 +0200)]
s3: Slightly simplify is_stat_open

The "access_bits" clause is redundant. is_stat_open says that exactly
at least one of the stat_open_bits must be set and none else.

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Sep 25 20:05:06 CEST 2012 on sn-devel-104

7 years agos3: Make is_stat_open() a bit more readable
Volker Lendecke [Wed, 5 Sep 2012 13:19:28 +0000 (15:19 +0200)]
s3: Make is_stat_open() a bit more readable

7 years agolib: Make async_sock includable on its own
Volker Lendecke [Sun, 12 Aug 2012 12:29:26 +0000 (14:29 +0200)]
lib: Make async_sock includable on its own

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Sep 25 18:03:46 CEST 2012 on sn-devel-104

7 years agos4-torture: Fix some nonemtpy blank lines
Volker Lendecke [Thu, 13 Sep 2012 14:52:44 +0000 (16:52 +0200)]
s4-torture: Fix some nonemtpy blank lines

7 years agos3: Fix indentation of if-expressions
Volker Lendecke [Tue, 4 Sep 2012 07:16:55 +0000 (09:16 +0200)]
s3: Fix indentation of if-expressions

To me this makes open_file_ntcreate a little easier to understand

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Sep 25 10:08:15 CEST 2012 on sn-devel-104

7 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

7 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

7 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

7 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

7 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

7 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