metze/samba/wip.git
11 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'.

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

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

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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

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

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

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

11 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

11 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

11 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

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

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

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

11 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

11 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

11 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

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

11 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

11 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

11 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

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

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

11 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

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

11 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

11 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

11 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

11 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

11 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

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

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

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

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

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 agoclient: Fix talloc_stackframe() free order assertion in developer mode
Andrew Bartlett [Tue, 25 Sep 2012 00:41:05 +0000 (10:41 +1000)]
client: Fix talloc_stackframe() free order assertion in developer mode

Reported-by: Ricky Nance <ricky.nance@weaubleau.k12.mo.us>
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

11 years agoWe now pass "samba3.raw.acls.generic" and "samba3.smb2.acls.GENERIC" with the max...
Jeremy Allison [Thu, 20 Sep 2012 20:35:47 +0000 (13:35 -0700)]
We now pass "samba3.raw.acls.generic" and "samba3.smb2.acls.GENERIC" with the max access change.

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

11 years agoFix bug #9189 - SMB2 Create doesn't return correct MAX ACCESS access mask in blob.
Jeremy Allison [Thu, 20 Sep 2012 19:32:10 +0000 (12:32 -0700)]
Fix bug #9189 - SMB2 Create doesn't return correct MAX ACCESS access mask in blob.

If we aren't already granted DELETE access, check if we have
DELETE_CHILD in the containing directory.

11 years agos4:rpc_server/drsuapi: use talloc_zero instead of talloc() in dcesrv_drsuapi_DsBind()
Stefan Metzmacher [Mon, 24 Sep 2012 23:13:12 +0000 (01:13 +0200)]
s4:rpc_server/drsuapi: use talloc_zero instead of talloc() in dcesrv_drsuapi_DsBind()

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Sep 25 03:06:13 CEST 2012 on sn-devel-104

11 years agos4:rpc_server/drsuapi: fix a crash in dcesrv_drsuapi_DsGetDomainControllerInfo_1()
Stefan Metzmacher [Mon, 24 Sep 2012 23:09:55 +0000 (01:09 +0200)]
s4:rpc_server/drsuapi: fix a crash in dcesrv_drsuapi_DsGetDomainControllerInfo_1()

metze

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

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.

11 years agosamba-tool domain-provision: Avoid python2.5-isms.
Jelmer Vernooij [Mon, 24 Sep 2012 06:26:12 +0000 (08:26 +0200)]
samba-tool domain-provision: Avoid python2.5-isms.

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

11 years agoscript/autobuild.py: set the default for --log-base to the current gitroot
Stefan Metzmacher [Mon, 24 Sep 2012 09:53:22 +0000 (11:53 +0200)]
script/autobuild.py: set the default for --log-base to the current gitroot

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Sep 24 15:27:16 CEST 2012 on sn-devel-104

11 years agobuild: Fix detection of quotas on macos
Andrew Bartlett [Mon, 24 Sep 2012 08:02:01 +0000 (18:02 +1000)]
build: Fix detection of quotas on macos

This is a weird one.  While visually OK, the . in sys/types.h was not
made up of the typical ASCII character, so of course did not find
types.h!

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Sep 24 12:24:45 CEST 2012 on sn-devel-104

11 years agos3-pylibsmb: Use Py_RETURN_NONE
Volker Lendecke [Mon, 24 Sep 2012 01:50:22 +0000 (18:50 -0700)]
s3-pylibsmb: Use Py_RETURN_NONE

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Sep 24 08:09:53 CEST 2012 on sn-devel-104

11 years agotorture: More torture_assert() calls in rpc.lsa
Andrew Bartlett [Sun, 23 Sep 2012 23:20:59 +0000 (09:20 +1000)]
torture: More torture_assert() calls in rpc.lsa

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Sep 24 05:27:46 CEST 2012 on sn-devel-104

11 years agotorture: use torture_assert rather than return false in rpc.lsa
Andrew Bartlett [Sun, 23 Sep 2012 22:59:10 +0000 (08:59 +1000)]
torture: use torture_assert rather than return false in rpc.lsa

This will help ensure we always generate correct subunit failures.

Andrew Bartlett

11 years agotorture: tidy up rpc.lsa OpenPolicy2 test to more clearly use torture_fail()
Andrew Bartlett [Sun, 23 Sep 2012 22:40:05 +0000 (08:40 +1000)]
torture: tidy up rpc.lsa OpenPolicy2 test to more clearly use torture_fail()

11 years agobuild: Add missing dep on tdb_compat
Andrew Bartlett [Sun, 23 Sep 2012 21:06:53 +0000 (07:06 +1000)]
build: Add missing dep on tdb_compat

11 years agolib/replace: Look for special flags needed for c99
Andrew Bartlett [Sun, 23 Sep 2012 20:45:05 +0000 (06:45 +1000)]
lib/replace: Look for special flags needed for c99

This is normally handled by the waf core, but for HP-UX we currently fail.

The autoconf code hard-codes a case for HP-UX, but I want to try testing
it using a generic system first.

Andrew Bartlett

11 years agolib/replace: Improve mkstemp test in autoconf and waf
Andrew Bartlett [Sun, 23 Sep 2012 20:03:31 +0000 (06:03 +1000)]
lib/replace: Improve mkstemp test in autoconf and waf

On the Sernet-solaris8 host, this test passed in the autoconf build,
then failed in the recursive waf build.  This newer test should probe
the behaviour more closely, by checking we get two distinct, secure
files.

Andrew Bartlett

11 years agos3:winbindd fix a compiler warning
Christian Ambach [Sun, 23 Sep 2012 03:44:41 +0000 (20:44 -0700)]
s3:winbindd fix a compiler warning

about type potentially being used uninitialized

Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Mon Sep 24 03:49:53 CEST 2012 on sn-devel-104

11 years agos3:printing only do printing_subsystem_update when printing is enabled
Christian Ambach [Sun, 23 Sep 2012 06:39:49 +0000 (08:39 +0200)]
s3:printing only do printing_subsystem_update when printing is enabled

no point in calling this if printing was disabled and no spoolss service was started
this hurts CTDB clusters as the smbds on the cluster nodes will fight for the single record in the TDB

This fixes Bug 9197 - Disabling printing still makes smbd create and access printer_list.tdb

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

11 years agos3-pylibsmb: Add get_oplock_break
Volker Lendecke [Sat, 22 Sep 2012 17:45:32 +0000 (10:45 -0700)]
s3-pylibsmb: Add get_oplock_break

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sun Sep 23 18:01:28 CEST 2012 on sn-devel-104

11 years agos3-pylibsmb: Factor out py_tevent_cond_signal
Volker Lendecke [Sat, 22 Sep 2012 17:40:06 +0000 (10:40 -0700)]
s3-pylibsmb: Factor out py_tevent_cond_signal

11 years agos3-pylibsmb: Reduce the number of warnings
Volker Lendecke [Sat, 22 Sep 2012 17:38:46 +0000 (10:38 -0700)]
s3-pylibsmb: Reduce the number of warnings

11 years agos3: Convert cli_oplock_break_waiter to smbXcli
Volker Lendecke [Sat, 22 Sep 2012 16:57:47 +0000 (18:57 +0200)]
s3: Convert cli_oplock_break_waiter to smbXcli

11 years agos3: Add "readdir" to pylibsmb
Volker Lendecke [Mon, 20 Aug 2012 12:38:42 +0000 (14:38 +0200)]
s3: Add "readdir" to pylibsmb

11 years agos3: Fix some nonempty line endings
Volker Lendecke [Tue, 18 Sep 2012 23:19:07 +0000 (16:19 -0700)]
s3: Fix some nonempty line endings

11 years agos3-pylibsmb: move py_tevent_req_wait_exc up in the file
Christian Ambach [Sun, 16 Sep 2012 18:39:26 +0000 (11:39 -0700)]
s3-pylibsmb: move py_tevent_req_wait_exc up in the file

this is needed to be able to use it in other functions and
spares the prototype

Pair-Programmed-With: Volker Lendecke <vl@samba.org>

11 years agos3-pylibsmb: Factor out py_tevent_cond_wait
Volker Lendecke [Fri, 21 Sep 2012 19:05:04 +0000 (12:05 -0700)]
s3-pylibsmb: Factor out py_tevent_cond_wait

11 years agobuild: Remove unused define UNIXWARE
Andrew Bartlett [Sun, 23 Sep 2012 04:37:24 +0000 (14:37 +1000)]
build: Remove unused define UNIXWARE

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sun Sep 23 08:33:02 CEST 2012 on sn-devel-104

11 years agolib/replace: Remove unused nap and therefore the SCO define
Andrew Bartlett [Sun, 23 Sep 2012 04:35:58 +0000 (14:35 +1000)]
lib/replace: Remove unused nap and therefore the SCO define

In any case, the Samba Team stopped supporting SCO systems a long time ago.

Andrew Bartlett

11 years agobuild: Make waf configure match autoconf for HPUX ACLs
Andrew Bartlett [Sun, 23 Sep 2012 04:30:37 +0000 (14:30 +1000)]
build: Make waf configure match autoconf for HPUX ACLs

11 years agobuild: Rework waf STAT_ST_BLOCKSIZE to match autoconf, with 512 as the default
Andrew Bartlett [Sun, 23 Sep 2012 04:30:10 +0000 (14:30 +1000)]
build: Rework waf STAT_ST_BLOCKSIZE to match autoconf, with 512 as the default

The autoconf build simply has 512 as the default, without a warning.  Rather than
enumerate every OS ever made, just handle the known exceptions.

Andrew Bartlett

11 years agolib/util: Remove unbuilt file util_getent.c and BROKEN_GETGRNAM
Andrew Bartlett [Sun, 23 Sep 2012 04:25:00 +0000 (14:25 +1000)]
lib/util: Remove unbuilt file util_getent.c and BROKEN_GETGRNAM

Removing this unbuilt file allows removing BROKEN_GETGRNAM which was only
ever defined per-OS, not based on an actual test.

Andrew Bartlett

11 years agobuild: Remove unused IRIX and IRIX6 defines
Andrew Bartlett [Sun, 23 Sep 2012 03:57:44 +0000 (13:57 +1000)]
build: Remove unused IRIX and IRIX6 defines

11 years agolib/replace: Try to fix build on HP-UX for os2_delete test
Andrew Bartlett [Sun, 23 Sep 2012 03:39:01 +0000 (13:39 +1000)]
lib/replace: Try to fix build on HP-UX for os2_delete test

The issue is that this file is both used in an autoconf test, and
later in a smbtorture test.  Because os2_delete.c does not include
replace.h, bool may not be defined.

So, instead we shift the need for bool to a different header.

(The readdir tests in repdir.m4 are not yet in the waf configure).

Andrew Bartlett

11 years agontdb: Try to fix the build on Solaris which does not have err
Andrew Bartlett [Sun, 23 Sep 2012 03:20:45 +0000 (13:20 +1000)]
ntdb: Try to fix the build on Solaris which does not have err

11 years agos4:torture:smb2: add a durable-open.read-only test
Michael Adam [Fri, 7 Sep 2012 10:09:13 +0000 (12:09 +0200)]
s4:torture:smb2: add a durable-open.read-only test

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Sep 23 05:47:30 CEST 2012 on sn-devel-104

11 years agoscript/autobuild.py: remove --rebase-master and --push-master options
Stefan Metzmacher [Sat, 22 Sep 2012 22:50:48 +0000 (00:50 +0200)]
script/autobuild.py: remove --rebase-master and --push-master options

You should explicitly pass the urls to --rebase= and --pushto=

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Sep 23 02:53:56 CEST 2012 on sn-devel-104

11 years agos3:vfs_fake_acls fix a compiler warning
Christian Ambach [Sat, 22 Sep 2012 20:33:02 +0000 (13:33 -0700)]
s3:vfs_fake_acls fix a compiler warning

about acl being potentially uninitialized

Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Sun Sep 23 01:08:39 CEST 2012 on sn-devel-104