kai/samba-autobuild/.git
12 years agoselftest: Fix combination of Samba3 and Samba4 test lists
Andrew Bartlett [Thu, 28 Apr 2011 03:58:07 +0000 (13:58 +1000)]
selftest: Fix combination of Samba3 and Samba4 test lists

The previous code was too subtle, and tried to filter via two xfail
scripts.  The --fail-immediately for the source3 knownfail would then
fail samba4 know failures.

Andrew Bartlett

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

12 years agoselftest: Print a better warning warning message when smbcacls fails.
Andrew Bartlett [Thu, 28 Apr 2011 02:25:03 +0000 (12:25 +1000)]
selftest: Print a better warning warning message when smbcacls fails.

These tests can't run on systems without posix ACLs.

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 28 06:18:59 CEST 2011 on sn-devel-104

12 years agoselftest: Don't die() when the join fails
Andrew Bartlett [Wed, 27 Apr 2011 12:18:18 +0000 (22:18 +1000)]
selftest: Don't die() when the join fails

This kills off everything without a proper shutdown, and is difficult
to debug.

Andrew Bartlett

12 years agoselftest: s3member admember test to confirm s3/s4 interopability
Andrew Bartlett [Tue, 19 Apr 2011 06:38:46 +0000 (16:38 +1000)]
selftest: s3member admember test to confirm s3/s4 interopability

This checks that Samba3 joins Samba4 correctly, and allows NTLM and
Kerberos logons from a live Samba4 DC.

This needs the common krb5.conf generation logic, and because we now
override KRB5_CONFIG we must update ktest to have a valid krb5.conf.

Based on an original patch by metze

Andrew Bartlett

12 years agos3-libads: Use ldap_init_fd() to connect to AD server in socket_wrapper
Andrew Bartlett [Tue, 26 Apr 2011 03:53:45 +0000 (13:53 +1000)]
s3-libads: Use ldap_init_fd() to connect to AD server in socket_wrapper

This means that we control the connection setup, don't rely on signals
for timeouts and the connection uses socket_wrapper where that is
required in our test environment.

According to bug reports, this method is also used by curl and other
tools, so we are not the first to (ab)use the OpenLDAP libs in this
way.

It is ONLY enabled for socket_wrapper at this time, as this is the
best way to get 'make test' working for S3 winbind tests in an S4
domain.

Andrew Bartlett

12 years agoselftest: Make overwrite of $env->{target} optional
Andrew Bartlett [Wed, 27 Apr 2011 02:10:12 +0000 (12:10 +1000)]
selftest: Make overwrite of $env->{target} optional

This allows a target to be a mix of Samba3 and Samba4, and chose it's
own backend for check_env and get_log_env.

Andrew Bartlett

12 years agos3-libads Pass a struct sockaddr_storage to cldap routines
Andrew Bartlett [Tue, 26 Apr 2011 07:03:32 +0000 (17:03 +1000)]
s3-libads Pass a struct sockaddr_storage to cldap routines

This avoids these routines doing a DNS lookup that has already been
done, and ensures that the emulated DNS lookup isn't thrown away.

Andrew Bartlett

12 years agos3-selftest: Use default name resolution methods (now that dns is emulated)
Andrew Bartlett [Tue, 26 Apr 2011 01:42:55 +0000 (11:42 +1000)]
s3-selftest: Use default name resolution methods (now that dns is emulated)

Now that we have emulated DNS, we can test Samba with the default name
resolve order.

Andrew Bartlett

12 years agolib/util/charset Merge talloc-based pull and push charset functions
Andrew Bartlett [Thu, 28 Apr 2011 01:41:31 +0000 (11:41 +1000)]
lib/util/charset Merge talloc-based pull and push charset functions

These were copied from source3/lib/charcnv.c

Andrew Bartlett

12 years agos3-test: log to stdout for smbd/nmbd/winbindd
Andrew Tridgell [Thu, 28 Apr 2011 02:39:33 +0000 (12:39 +1000)]
s3-test: log to stdout for smbd/nmbd/winbindd

this prevents error messages from logfile creation before smb.conf is
read

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Apr 28 05:29:19 CEST 2011 on sn-devel-104

12 years agolib/util/charset Add copyright headers
Andrew Bartlett [Thu, 28 Apr 2011 00:56:36 +0000 (10:56 +1000)]
lib/util/charset Add copyright headers

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 28 04:13:44 CEST 2011 on sn-devel-104

12 years agolib/util/charset Make fast path from UTF16 to '8 bit' charsets clearer
Andrew Tridgell [Thu, 28 Apr 2011 00:50:06 +0000 (10:50 +1000)]
lib/util/charset Make fast path from UTF16 to '8 bit' charsets clearer

This breaks the fast path into handling for -1 and handling for
specified lenghts, avoding branch operations on each character.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agolib/util/charset Add tests for srclen=-1 behaviour.
Andrew Bartlett [Thu, 28 Apr 2011 00:48:43 +0000 (10:48 +1000)]
lib/util/charset Add tests for srclen=-1 behaviour.

This confirms that we do include a null terminator in all non-failed
conversions.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agolib/util/charset use convert_string.c in common
Andrew Bartlett [Tue, 12 Apr 2011 04:49:41 +0000 (14:49 +1000)]
lib/util/charset use convert_string.c in common

This brings another layer of the charcnv library in common.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agolib/util/charset Fix string termination conditions for UTF16 strings
Andrew Bartlett [Thu, 14 Apr 2011 07:23:25 +0000 (17:23 +1000)]
lib/util/charset Fix string termination conditions for UTF16 strings

This punts partial UTF16 strings to iconv() to deal with, as it's not
a fast path any longer if it's got an odd length.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agoRemove another fstring in this code.
Jeremy Allison [Thu, 28 Apr 2011 00:16:36 +0000 (17:16 -0700)]
Remove another fstring in this code.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Apr 28 03:15:32 CEST 2011 on sn-devel-104

12 years agos3: Properly clean up in pthreadpool_init in case of failure
Volker Lendecke [Wed, 27 Apr 2011 20:18:12 +0000 (22:18 +0200)]
s3: Properly clean up in pthreadpool_init in case of failure

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Apr 27 23:57:19 CEST 2011 on sn-devel-104

12 years agos3-rpc_server Fix compile without kerberos
Andrew Bartlett [Wed, 27 Apr 2011 05:37:59 +0000 (15:37 +1000)]
s3-rpc_server Fix compile without kerberos

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 27 23:08:48 CEST 2011 on sn-devel-104

12 years agoFixup (C) - we've both worked lots on this :-).
Jeremy Allison [Tue, 26 Apr 2011 23:31:28 +0000 (16:31 -0700)]
Fixup (C) - we've both worked lots on this :-).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 27 21:56:29 CEST 2011 on sn-devel-104

12 years agoRemove fstrings from client struct. Properly talloc strings (ensuring we never end...
Jeremy Allison [Wed, 27 Apr 2011 19:06:25 +0000 (12:06 -0700)]
Remove fstrings from client struct. Properly talloc strings (ensuring we never end up with a NULL pointer).

12 years agos3-waf: add pthreadpool support.
Günther Deschner [Wed, 27 Apr 2011 11:16:59 +0000 (13:16 +0200)]
s3-waf: add pthreadpool support.

Volker, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Apr 27 17:57:32 CEST 2011 on sn-devel-104

12 years agos3-waf: check for pthread support.
Günther Deschner [Wed, 27 Apr 2011 14:07:35 +0000 (16:07 +0200)]
s3-waf: check for pthread support.

Guenther

12 years agos3-netapi: Fix Coverity CID #2302: FORWARD_NULL
Günther Deschner [Wed, 27 Apr 2011 13:41:49 +0000 (15:41 +0200)]
s3-netapi: Fix Coverity CID #2302: FORWARD_NULL

Guenther

12 years agoRemove outdated S4 OpenLDAP backend HOWTO.
Andrew Bartlett [Wed, 27 Apr 2011 12:42:29 +0000 (22:42 +1000)]
Remove outdated S4 OpenLDAP backend HOWTO.

This is no longer a feature of Samba4

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 27 15:32:28 CEST 2011 on sn-devel-104

12 years agos3-winbind Use get_dyn_WINBINDD_SOCKET_DIR() to get the winbind pipe dir
Andrew Bartlett [Wed, 27 Apr 2011 06:45:39 +0000 (16:45 +1000)]
s3-winbind Use get_dyn_WINBINDD_SOCKET_DIR() to get the winbind pipe dir

This ensures we follow the dynconfig convention for the socket
directory, and makes it easier to ensure that the client and server
both refer to the same socket.

Andrew Bartlett

12 years agodynconfig: Have only one dynconfig.o in the common code.
Andrew Bartlett [Wed, 27 Apr 2011 06:39:42 +0000 (16:39 +1000)]
dynconfig: Have only one dynconfig.o in the common code.

12 years agos3-test Make samba3.blackbox.net.local.registry.roundtrip reliable
Andrew Bartlett [Wed, 27 Apr 2011 10:29:16 +0000 (20:29 +1000)]
s3-test Make samba3.blackbox.net.local.registry.roundtrip reliable

Looking for smb.conf files with find -name \*.conf would find and not
find all sorts of things that were just not valid inputs.  When
restricted to under source3 it then finds no inputs in the top level
build, as it only worked on the generated smb.conf files from 'make
test' environments.

Instead, just run it on the one file we know is valid, and if we want
to run it on more files, then we can make this test run against more
environments, or specific target files.

Andrew Bartlett

12 years agos3-waf Don't enable profiling by default
Andrew Bartlett [Wed, 27 Apr 2011 08:55:24 +0000 (18:55 +1000)]
s3-waf Don't enable profiling by default

This is disabled by default in the s3-autoconf build.

Andrew Bartlett

12 years agobuild: Add lib/replace as a default include path
Andrew Bartlett [Wed, 27 Apr 2011 10:07:45 +0000 (20:07 +1000)]
build: Add lib/replace as a default include path

This makes #include "system/filesys.h" in the
source3/includes/includes.h work more often.

Andrew Bartlett

12 years agodocs: Fix a bogus )
Samba-JP oota [Wed, 27 Apr 2011 07:21:56 +0000 (09:21 +0200)]
docs: Fix a bogus )

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Apr 27 10:21:14 CEST 2011 on sn-devel-104

12 years agoselftest: we don't get valgrind errors any more with iconv
Andrew Tridgell [Wed, 27 Apr 2011 06:39:55 +0000 (16:39 +1000)]
selftest: we don't get valgrind errors any more with iconv

this check was causing the CP850 warning in the combined build, as the
s3 tests want CP850, but we don't have builtin support for that
charset

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Apr 27 09:31:44 CEST 2011 on sn-devel-104

12 years agobuild: fixed build problems due to implicit library deps in samba3core
Andrew Tridgell [Wed, 27 Apr 2011 01:48:53 +0000 (11:48 +1000)]
build: fixed build problems due to implicit library deps in samba3core

this fixes the top level build on svart and probably other hosts

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Apr 27 08:27:49 CEST 2011 on sn-devel-104

12 years agoauth/kerberos Add check for gss_inquire_sec_context_by_oid
Andrew Bartlett [Wed, 27 Apr 2011 04:34:03 +0000 (14:34 +1000)]
auth/kerberos Add check for gss_inquire_sec_context_by_oid

Not all kerberos distributions have this function.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 27 07:39:08 CEST 2011 on sn-devel-104

12 years agos4-gensec: Use new common 'obtain the PAC' functions.
Andrew Bartlett [Thu, 21 Apr 2011 02:38:51 +0000 (12:38 +1000)]
s4-gensec: Use new common 'obtain the PAC' functions.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 27 05:08:10 CEST 2011 on sn-devel-104

12 years agos3-gse: Don't release the mech OID from gss_accept_security_context
Andrew Bartlett [Sat, 16 Apr 2011 05:39:00 +0000 (15:39 +1000)]
s3-gse: Don't release the mech OID from gss_accept_security_context

This is constant data according to the man pages I find for this
fucntion, and causes a segfault to free() when linked to Heimdal.  I
am advised that while it is constant for gss_mech_krb5, it may not be
for other mechanisms, so an assert will ensure this is dealt with by
the programmer who extends this code in future.

Andrew Bartlett

12 years agoauth/kerberos Move all the PAC handling functions to auth/kerberos
Andrew Bartlett [Tue, 26 Apr 2011 23:42:51 +0000 (09:42 +1000)]
auth/kerberos Move all the PAC handling functions to auth/kerberos

12 years agoauth/kerberos: Create common helper to get the verified PAC from GSSAPI
Andrew Bartlett [Sat, 16 Apr 2011 05:41:50 +0000 (15:41 +1000)]
auth/kerberos: Create common helper to get the verified PAC from GSSAPI

This only works for Heimdal and MIT Krb5 1.8, other versions will get
an ACCESS_DEINED error.

We no longer manually verify any details of the PAC in Samba for
GSSAPI logins, as we never had the information to do it properly, and
it is better to have the GSSAPI library handle it.

Andrew Bartlett

12 years agos3-libsmb Use 'resolv:hosts file' as a DNS emulation when specified.
Andrew Bartlett [Tue, 26 Apr 2011 02:08:22 +0000 (12:08 +1000)]
s3-libsmb Use 'resolv:hosts file' as a DNS emulation when specified.

This allows make test to operate without making real DNS calls.

Andrew Bartlett

12 years agos3-libads Don't start a DEBUG with 'time'
Andrew Bartlett [Tue, 26 Apr 2011 07:02:11 +0000 (17:02 +1000)]
s3-libads Don't start a DEBUG with 'time'

This strange requirement comes from our subunit test harness.

Andrew Bartlett

12 years agoselftest: Make bindir_path much less complex
Andrew Bartlett [Wed, 27 Apr 2011 01:19:20 +0000 (11:19 +1000)]
selftest: Make bindir_path much less complex

There is no need to pass it as a function pointer, just put it in 'Samba.pm'.

Andrew Bartlett

12 years agolibcli/auth Move Samba4's gssapi_error_string from GENSEC to libcli/auth
Andrew Bartlett [Wed, 20 Apr 2011 07:39:50 +0000 (17:39 +1000)]
libcli/auth Move Samba4's gssapi_error_string from GENSEC to libcli/auth

This will allow the GSSAPI PAC fetch code to use it.

Andrew Bartlett

12 years agos3: Make cli_session_setup_lanman2 async
Volker Lendecke [Sun, 3 Apr 2011 15:50:32 +0000 (17:50 +0200)]
s3: Make cli_session_setup_lanman2 async

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 27 00:25:35 CEST 2011 on sn-devel-104

12 years agos3: Make cli_session_setup_nt1 async
Volker Lendecke [Sun, 3 Apr 2011 09:44:35 +0000 (11:44 +0200)]
s3: Make cli_session_setup_nt1 async

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3: Make plaintext session setup async
Volker Lendecke [Sat, 2 Apr 2011 21:54:07 +0000 (23:54 +0200)]
s3: Make plaintext session setup async

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3: Remove cli_write
Volker Lendecke [Sat, 2 Apr 2011 14:44:40 +0000 (16:44 +0200)]
s3: Remove cli_write

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3: Use cli_writeall instead of cli_write
Volker Lendecke [Sat, 2 Apr 2011 09:46:30 +0000 (11:46 +0200)]
s3: Use cli_writeall instead of cli_write

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3: Add cli_writeall
Volker Lendecke [Tue, 26 Apr 2011 17:52:39 +0000 (10:52 -0700)]
s3: Add cli_writeall

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:vfs use gpfs_lib_init
Christian Ambach [Mon, 21 Feb 2011 17:25:36 +0000 (18:25 +0100)]
s3:vfs use gpfs_lib_init

With newer GPFS releases, libgpfs contains a function
gpfs_lib_init(). It marks the pseudo-device the lib uses
as interface to the GPFS kernel module to not be to
destroyed after each call to GPFS.
This saves us some microseconds creating and removing the device
each time we do a call to libgpfs.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Apr 26 20:52:36 CEST 2011 on sn-devel-104

12 years agos3-utils: Fix Bug #8106. Fix the build of smbget on HP NonStop.
Günther Deschner [Tue, 26 Apr 2011 12:58:01 +0000 (14:58 +0200)]
s3-utils: Fix Bug #8106. Fix the build of smbget on HP NonStop.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Apr 26 16:41:17 CEST 2011 on sn-devel-104

12 years agos3: Fix a typo
Volker Lendecke [Tue, 26 Apr 2011 10:40:07 +0000 (12:40 +0200)]
s3: Fix a typo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Apr 26 13:31:08 CEST 2011 on sn-devel-104

12 years agos3: Allow unlimited parallelism in pthreadpool
Volker Lendecke [Mon, 25 Apr 2011 18:05:31 +0000 (20:05 +0200)]
s3: Allow unlimited parallelism in pthreadpool

12 years agolibcli/auth Allow parsing of a PAC that is already verified.
Andrew Bartlett [Wed, 20 Apr 2011 07:37:45 +0000 (17:37 +1000)]
libcli/auth Allow parsing of a PAC that is already verified.

By making the verification parameters optional, we can parse a PAC
that is already verified.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Apr 26 10:06:59 CEST 2011 on sn-devel-104

12 years agos3-libads Remove KRB5_DNS_HACK
Andrew Bartlett [Tue, 26 Apr 2011 01:41:26 +0000 (11:41 +1000)]
s3-libads Remove KRB5_DNS_HACK

We have winbindd write a custom krb5.conf or use a kdc locator plugin
to do this properly now.

Andrew Bartlett

12 years agolibcli/dns Improve dns_hosts_file, using Samba3's struct dns_rr_srv
Andrew Bartlett [Mon, 25 Apr 2011 23:49:08 +0000 (09:49 +1000)]
libcli/dns Improve dns_hosts_file, using Samba3's struct dns_rr_srv

By reworking the 'fake DNS' file to use struct dns_rr_srv it should be
possible to emulate that resolver layer as well as the Samba4
sockaddr_storage* based layer.  This will then give us a common DNS
emulation for 'make test'.

Andrew Bartlett

12 years agowaf: introduce reverse logic for allowing unknown symbols
Matthieu Patou [Fri, 15 Apr 2011 21:15:51 +0000 (01:15 +0400)]
waf: introduce reverse logic for allowing unknown symbols

Some os (ie OSX 10.6) forbids by default unknown symbols so in order to
allow them (for special case) we have no to remove linker option *but*
to add options to ask the linker to be more relax.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agobuild: Invert --enable-s3build into --disable-s3build
Andrew Bartlett [Thu, 21 Apr 2011 10:02:28 +0000 (20:02 +1000)]
build: Invert --enable-s3build into --disable-s3build

We always want the s3 binaries, except when building an smbtorture4
for the s3-waf and autoconf builds.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Apr 26 04:27:28 CEST 2011 on sn-devel-104

12 years agolib/util Define samba-util-common only for s3-waf
Andrew Bartlett [Thu, 21 Apr 2011 07:19:29 +0000 (17:19 +1000)]
lib/util Define samba-util-common only for s3-waf

It causes too much trouble in the top level build.

Andrew Bartlett

12 years agobuild: Move Heimdal/MIT compat build rules to heimdal_build
Andrew Bartlett [Thu, 21 Apr 2011 02:28:27 +0000 (12:28 +1000)]
build: Move Heimdal/MIT compat build rules to heimdal_build

This allows top level build rules to rely on these names at all times.

Andrew Bartlett

12 years agoNo longer need to call SMB_VFS_LSTAT - check name hasn't changed above is sufficient.
Jeremy Allison [Mon, 25 Apr 2011 19:45:49 +0000 (12:45 -0700)]
No longer need to call SMB_VFS_LSTAT - check name hasn't changed above is sufficient.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr 25 23:35:37 CEST 2011 on sn-devel-104

12 years agoCorrectly detect and deny symlinks anywhere in a path (not just the last component...
Jeremy Allison [Fri, 22 Apr 2011 05:29:06 +0000 (22:29 -0700)]
Correctly detect and deny symlinks anywhere in a path (not just the last component) if "follow symlinks = no".

12 years agos3: Remove unused code
Volker Lendecke [Mon, 25 Apr 2011 16:29:59 +0000 (18:29 +0200)]
s3: Remove unused code

This is done in name_query_send these days

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 19:24:58 CEST 2011 on sn-devel-104

12 years agos3: Move setting the name_query timeout
Volker Lendecke [Mon, 25 Apr 2011 15:37:08 +0000 (17:37 +0200)]
s3: Move setting the name_query timeout

An async caller might want a different timeout behaviour

12 years agodocs-xml/smb.conf.5: %i and %I no longer contain IPv4 mapped IPv6 addresses
Stefan Metzmacher [Mon, 25 Apr 2011 15:40:25 +0000 (17:40 +0200)]
docs-xml/smb.conf.5: %i and %I no longer contain IPv4 mapped IPv6 addresses

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Apr 25 18:38:16 CEST 2011 on sn-devel-104

12 years agos3:lib/util_sock: listen on IPv6 addresses with IPV6_ONLY (bug #7383)
Stefan Metzmacher [Sat, 23 Apr 2011 09:29:51 +0000 (11:29 +0200)]
s3:lib/util_sock: listen on IPv6 addresses with IPV6_ONLY (bug #7383)

This avoids getting IPv4 addresses as mapped IPv6 addresses
(e.g. ::ffff:192.168.0.1).

Before the bahavior was inconsistent between operating system
and distributions. Some system have IPV6_ONLY as default.

Now we consistently get AF_INET for IPv4 addresses and AF_INET6
for IPv6 addresses.

It also makes it possible to listen only on IPv6 now
as "::" doesn't imply "0.0.0.0" anymore. Which also
avoids confusing log messages that we were not able to
bind to "0.0.0.0".

metze

12 years agos3:lib/access: normalize IPv4 mapped IPv6 addresses in both directions (bug #7383)
Stefan Metzmacher [Sun, 24 Apr 2011 19:20:19 +0000 (21:20 +0200)]
s3:lib/access: normalize IPv4 mapped IPv6 addresses in both directions (bug #7383)

metze

12 years agos3: Some build farm machines do not have /bin/true
Volker Lendecke [Mon, 25 Apr 2011 11:40:15 +0000 (13:40 +0200)]
s3: Some build farm machines do not have /bin/true

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 14:35:42 CEST 2011 on sn-devel-104

12 years agos3: Fix some typos in dsgetdcname
Volker Lendecke [Mon, 25 Apr 2011 09:25:02 +0000 (11:25 +0200)]
s3: Fix some typos in dsgetdcname

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 12:35:30 CEST 2011 on sn-devel-104

12 years agos3: "port" is not used in dsgetdcname
Volker Lendecke [Mon, 25 Apr 2011 09:24:31 +0000 (11:24 +0200)]
s3: "port" is not used in dsgetdcname

Günther, please check!

12 years agos3: Check for res_ninit
Volker Lendecke [Mon, 25 Apr 2011 08:55:58 +0000 (10:55 +0200)]
s3: Check for res_ninit

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 11:44:58 CEST 2011 on sn-devel-104

12 years agos3: Run pthreadpooltest in make test
Volker Lendecke [Sun, 24 Apr 2011 08:36:56 +0000 (10:36 +0200)]
s3: Run pthreadpooltest in make test

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 10:39:12 CEST 2011 on sn-devel-104

12 years agos3: Add pthreadpooltest to main build
Volker Lendecke [Sat, 23 Apr 2011 14:49:04 +0000 (16:49 +0200)]
s3: Add pthreadpooltest to main build

12 years agos3: pthreadpool_sig_fd->pthreadpool_signal_fd
Volker Lendecke [Sun, 24 Apr 2011 08:09:45 +0000 (10:09 +0200)]
s3: pthreadpool_sig_fd->pthreadpool_signal_fd

12 years agos3: Tiny doc for pthreadpool
Volker Lendecke [Sat, 23 Apr 2011 20:25:36 +0000 (22:25 +0200)]
s3: Tiny doc for pthreadpool

12 years agos3: Many pthreadpool fixes
Volker Lendecke [Fri, 22 Apr 2011 09:47:11 +0000 (11:47 +0200)]
s3: Many pthreadpool fixes

In particular, this makes it fork-safe

12 years agos3: Add a 10-second timeout for the 445 or netbios connection to a DC
Volker Lendecke [Sun, 17 Apr 2011 18:16:07 +0000 (20:16 +0200)]
s3: Add a 10-second timeout for the 445 or netbios connection to a DC

12 years agos3:rpc_client: map fault codes to NTSTATUS with dcerpc_fault_to_nt_status()
Stefan Metzmacher [Sat, 23 Apr 2011 22:00:40 +0000 (00:00 +0200)]
s3:rpc_client: map fault codes to NTSTATUS with dcerpc_fault_to_nt_status()

Most fault codes have a NTSTATUS representation, so use that.

This brings the fault handling in common with the source4/librpc/rpc code,
which make it possible to share more highlevel code, between source3 and
source4 as the error checking can be the same now.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Apr 24 10:44:53 CEST 2011 on sn-devel-104

12 years agos3:winbindd: let winbindd_lookup_names() use dcerpc_binding_handle functions
Stefan Metzmacher [Sat, 23 Apr 2011 21:57:19 +0000 (23:57 +0200)]
s3:winbindd: let winbindd_lookup_names() use dcerpc_binding_handle functions

metze

12 years agos3:winbindd: let winbindd_lookup_sids() dcerpc_binding_handle functions
Stefan Metzmacher [Sat, 23 Apr 2011 21:56:27 +0000 (23:56 +0200)]
s3:winbindd: let winbindd_lookup_sids() dcerpc_binding_handle functions

metze

12 years agolib/util: add RBVAL, RBVALS, RSBVAL and RSRBVALS macros
Stefan Metzmacher [Sat, 23 Apr 2011 09:01:34 +0000 (11:01 +0200)]
lib/util: add RBVAL, RBVALS, RSBVAL and RSRBVALS macros

They pull and push [u]int64_t values in big endian.

metze

12 years agos3:includes: simplify INO_T_VAL macros
Stefan Metzmacher [Sat, 23 Apr 2011 09:15:30 +0000 (11:15 +0200)]
s3:includes: simplify INO_T_VAL macros

metze

12 years agos3:includes: simplify BIG_UINT macros
Stefan Metzmacher [Sat, 23 Apr 2011 09:10:05 +0000 (11:10 +0200)]
s3:includes: simplify BIG_UINT macros

metze

12 years agos3:smbd/trans2: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's
Stefan Metzmacher [Sat, 23 Apr 2011 08:30:59 +0000 (10:30 +0200)]
s3:smbd/trans2: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's

We rely on uint64_t for a long time now...

metze

12 years agoFix license info for talloc in manpage.
Jelmer Vernooij [Sun, 24 Apr 2011 00:39:14 +0000 (02:39 +0200)]
Fix license info for talloc in manpage.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Apr 24 03:27:54 CEST 2011 on sn-devel-104

12 years agoFix release script to cope with moved Samba 4 build tools.
Jelmer Vernooij [Sun, 24 Apr 2011 00:14:17 +0000 (02:14 +0200)]
Fix release script to cope with moved Samba 4 build tools.

12 years agoFix case of libUTIL_LDB.
Jelmer Vernooij [Sat, 23 Apr 2011 15:59:23 +0000 (17:59 +0200)]
Fix case of libUTIL_LDB.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Apr 23 18:52:06 CEST 2011 on sn-devel-104

12 years agoAdd missing dependency on com_err.
Jelmer Vernooij [Sat, 23 Apr 2011 13:56:39 +0000 (15:56 +0200)]
Add missing dependency on com_err.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Apr 23 16:53:03 CEST 2011 on sn-devel-104

12 years agoAdd check for krb5_free_unparsed_name, when using external heimdal.
Jelmer Vernooij [Sat, 23 Apr 2011 13:46:18 +0000 (15:46 +0200)]
Add check for krb5_free_unparsed_name, when using external heimdal.

12 years agos3: Fix Coverity ID 2478, UNINIT
Volker Lendecke [Sat, 23 Apr 2011 08:31:14 +0000 (10:31 +0200)]
s3: Fix Coverity ID 2478, UNINIT

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 23 14:11:22 CEST 2011 on sn-devel-104

12 years agos3:include/vfs.h: remove very old hints for vfs modules with interface version < 8
Stefan Metzmacher [Sat, 23 Apr 2011 08:17:27 +0000 (10:17 +0200)]
s3:include/vfs.h: remove very old hints for vfs modules with interface version < 8

The interface version is at 28 now, and this defines cause problem
on some systems, e.g. Tru64 defines vfs_init in the system headers.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Apr 23 12:07:35 CEST 2011 on sn-devel-104

12 years agoRevert "s3-vfs: another attempt to fix the Tru64 build."
Stefan Metzmacher [Sat, 23 Apr 2011 08:15:00 +0000 (10:15 +0200)]
Revert "s3-vfs: another attempt to fix the Tru64 build."

This reverts commit 52909271879d909533a86c3a448839debb6497c6.

A better fix will follow.

metze

12 years agos3:smbd/nttrans: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's
Stefan Metzmacher [Sat, 23 Apr 2011 08:30:59 +0000 (10:30 +0200)]
s3:smbd/nttrans: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's

We rely on uint64_t for a long time now...

metze

12 years agos3:lib/sysquota: remove ugly LARGE_SMB_OFF_T ifdef's
Stefan Metzmacher [Sat, 23 Apr 2011 08:27:37 +0000 (10:27 +0200)]
s3:lib/sysquota: remove ugly LARGE_SMB_OFF_T ifdef's

We rely on uint64_t for a long time now...

metze

12 years agos3:libsmb: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's
Stefan Metzmacher [Sat, 23 Apr 2011 08:22:32 +0000 (10:22 +0200)]
s3:libsmb: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's

We rely on uint64_t for a long time now...

metze

12 years agoSupport the 'PYTHON' environment variable.
Jelmer Vernooij [Sat, 23 Apr 2011 00:04:13 +0000 (02:04 +0200)]
Support the 'PYTHON' environment variable.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Apr 23 04:19:05 CEST 2011 on sn-devel-104

12 years agoscript/librelease: display the permission on the server
Stefan Metzmacher [Fri, 22 Apr 2011 08:25:23 +0000 (10:25 +0200)]
script/librelease: display the permission on the server

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Apr 22 11:40:13 CEST 2011 on sn-devel-104

12 years agoscript/librelease: add more error checking
Stefan Metzmacher [Fri, 22 Apr 2011 08:18:15 +0000 (10:18 +0200)]
script/librelease: add more error checking

metze

12 years agoscript/librelease: set umask 0022
Stefan Metzmacher [Fri, 22 Apr 2011 08:14:45 +0000 (10:14 +0200)]
script/librelease: set umask 0022

Releases should be readable by everyone.

metze

12 years agoscript/librelease: use a GPG_KEYID variable to hold the signing key
Stefan Metzmacher [Fri, 22 Apr 2011 08:08:52 +0000 (10:08 +0200)]
script/librelease: use a GPG_KEYID variable to hold the signing key

metze

12 years agos3: Fix Coverity ID 2047, UNUSED_VALUE
Volker Lendecke [Fri, 22 Apr 2011 08:05:42 +0000 (10:05 +0200)]
s3: Fix Coverity ID 2047, UNUSED_VALUE

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Apr 22 10:53:24 CEST 2011 on sn-devel-104

12 years agos3: Fix Coverity ID 2325, RESOURCE_LEAK
Volker Lendecke [Fri, 22 Apr 2011 07:51:42 +0000 (09:51 +0200)]
s3: Fix Coverity ID 2325, RESOURCE_LEAK