nivanova/samba-autobuild/.git
8 years agos3:selftest: add a few more raw.* tests
Stefan Metzmacher [Mon, 28 Mar 2011 06:23:27 +0000 (08:23 +0200)]
s3:selftest: add a few more raw.* tests

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jun  8 18:57:01 CEST 2011 on sn-devel-104

8 years agos3:libsmb/cli_np_tstream: s/TSTREAM_CLI_NP_BUF_SIZE/TSTREAM_CLI_NP_MAX_BUF_SIZE
Stefan Metzmacher [Tue, 7 Jun 2011 16:49:55 +0000 (18:49 +0200)]
s3:libsmb/cli_np_tstream: s/TSTREAM_CLI_NP_BUF_SIZE/TSTREAM_CLI_NP_MAX_BUF_SIZE

This isn't the fixed buffer size anymore, as we use dynamic beffer
it's just the maximum size.

metze

8 years agos3:libsmb:cli_np_tstream: use dynamic talloc buffers
Stefan Metzmacher [Tue, 7 Jun 2011 16:45:54 +0000 (18:45 +0200)]
s3:libsmb:cli_np_tstream: use dynamic talloc buffers

Having 8192 bytes on an idle connection is a bit to much,
so we better use dynamic buffers using talloc, which also
avoids a memcpy in the common SMBtrans readv codepath.

metze

8 years agos3-winbind: always use samlogon cache for wbinfo -r, even when caching is
Günther Deschner [Wed, 8 Jun 2011 13:48:12 +0000 (15:48 +0200)]
s3-winbind: always use samlogon cache for wbinfo -r, even when caching is
disabled.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jun  8 17:45:56 CEST 2011 on sn-devel-104

8 years agos3-winbindd: make sure we obey the -n switch also for samlogon cache access.
Günther Deschner [Wed, 8 Jun 2011 10:56:10 +0000 (12:56 +0200)]
s3-winbindd: make sure we obey the -n switch also for samlogon cache access.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jun  8 14:44:31 CEST 2011 on sn-devel-104

8 years agos3-spoolss: fix -Wunused-but-set-variable build warning in _spoolss_EnumPrintProcData...
Günther Deschner [Wed, 8 Jun 2011 10:00:46 +0000 (12:00 +0200)]
s3-spoolss: fix -Wunused-but-set-variable build warning in _spoolss_EnumPrintProcDataTypes().

We were in fact ignoring the error code here.

Guenther

8 years agotdb: enable VALGRIND to remove valgrind noise.
Rusty Russell [Wed, 8 Jun 2011 07:50:48 +0000 (17:20 +0930)]
tdb: enable VALGRIND to remove valgrind noise.

Andrew Bartlett complained that valgrind needs --partial-loads-ok=yes otherwise
the Jenkins hash makes it complain.

My benchmarking here revealed that at least with modern gcc (4.5) and CPU
(Intel i5 32 bit) there's no measurable performance penalty for the
"correct" code, so rip out the optimized one.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Jun  8 11:05:47 CEST 2011 on sn-devel-104

8 years agos4-ipv6: fill in pdc_ip in DsRGetDCNameEx2
Andrew Tridgell [Wed, 8 Jun 2011 01:49:24 +0000 (11:49 +1000)]
s4-ipv6: fill in pdc_ip in DsRGetDCNameEx2

this may be different from the CLDAP response, as it can be IPv6

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Jun  8 06:07:29 CEST 2011 on sn-devel-104

8 years agos4-wins: ensure we only use IPv4 for WINS owner
Andrew Tridgell [Wed, 8 Jun 2011 00:42:02 +0000 (10:42 +1000)]
s4-wins: ensure we only use IPv4 for WINS owner

8 years agos4-interface: raise the debug level for interface discovery
Andrew Tridgell [Wed, 8 Jun 2011 00:41:38 +0000 (10:41 +1000)]
s4-interface: raise the debug level for interface discovery

8 years agos4-gensec bring GSS_S_CONTEXT_EXPIRED into it's own error handler
Andrew Bartlett [Tue, 7 Jun 2011 22:55:19 +0000 (08:55 +1000)]
s4-gensec bring GSS_S_CONTEXT_EXPIRED into it's own error handler

This allows us to print much more debugging in this critical situation.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Jun  8 04:19:58 CEST 2011 on sn-devel-104

8 years agos4-credentials Don't use expired Kerberos or GSSAPI credentials
Andrew Bartlett [Tue, 7 Jun 2011 22:53:16 +0000 (08:53 +1000)]
s4-credentials Don't use expired Kerberos or GSSAPI credentials

In a long-lived credentials cache situation, we may need to refetch
the ticket after (say) 10 hours.  This code should help that happen,
by checking the lifetime before returning any credentials cache or
GSSAPI credentials.

Andrew Bartlett

8 years agos4-credentials Allow use of file-based credentials caches for debugging.
Andrew Bartlett [Tue, 7 Jun 2011 22:51:56 +0000 (08:51 +1000)]
s4-credentials Allow use of file-based credentials caches for debugging.

This means that we will leave a slew of file based credentials caches
in /tmp, which should give some clues to the administrator or
developer via klist as to what has gone wrong.

Andrew Bartlett

8 years agoPart 3 of bugfix for #8211 - "inherit owner = yes" doesn't interact correctly with...
Jeremy Allison [Tue, 7 Jun 2011 23:55:20 +0000 (16:55 -0700)]
Part 3 of bugfix for #8211 - "inherit owner = yes" doesn't interact correctly with "inherit permissions = yes" and POSIX ACLs

When changing ownership on a new file make sure we
must have a valid stat struct before making the inheritance
calls (as they may look at it), and if we make changes we
must have a valid stat struct after them.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jun  8 03:07:04 CEST 2011 on sn-devel-104

8 years agoPart 2 of bugfix for #8211 - "inherit owner = yes" doesn't interact correctly with...
Jeremy Allison [Tue, 7 Jun 2011 23:48:14 +0000 (16:48 -0700)]
Part 2 of bugfix for #8211 - "inherit owner = yes" doesn't interact correctly with "inherit permissions = yes" and POSIX ACLs

When changing ownership on a new file make sure we
also change the returned stat struct to have the correct uid.

8 years agoPart 1 of bugfix for #8211 - "inherit owner = yes" doesn't interact correctly with...
Jeremy Allison [Tue, 7 Jun 2011 23:42:02 +0000 (16:42 -0700)]
Part 1 of bugfix for #8211 - "inherit owner = yes" doesn't interact correctly with "inherit permissions = yes" and POSIX ACLs

When changing ownership on a new directory make sure we
also change the returned stat struct to have the correct uid.

8 years agoFix re-opened bug 8083 - "inherit owner = yes" doesn't interact correctly with vfs_ac...
Jeremy Allison [Tue, 7 Jun 2011 18:54:35 +0000 (11:54 -0700)]
Fix re-opened bug 8083 - "inherit owner = yes" doesn't interact correctly with vfs_acl_xattr or vfs_acl_tdb module.

Fix incorrect interaction when all of

"inherit permissions = yes"
"inherit acls = yes"
"inherit owner = yes"

are set. Found by Björn Jacke. Thanks Björn !

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jun  7 22:32:18 CEST 2011 on sn-devel-104

8 years agos3:libsmb/cli_np_tstream: use larger buffers to avoid a bug NT4 servers (bug #8195)
Stefan Metzmacher [Tue, 7 Jun 2011 16:27:41 +0000 (18:27 +0200)]
s3:libsmb/cli_np_tstream: use larger buffers to avoid a bug NT4 servers (bug #8195)

NT4 servers return NT_STATUS_PIPE_BUSY if we try a SMBtrans
and the SMBwriteX before hasn't transmited the whole DCERPC fragment.

W2K and above is happy with that.

As a result we try to match the behavior of Windows and older Samba clients,
they use write and read buffers of 4280 bytes instead of 1024 bytes.
On Windows only the SMBtrans based read uses 1024 (while we also use 4280
there).

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jun  7 20:25:32 CEST 2011 on sn-devel-104

8 years agos3:idmap_autorid: fail initialization if the domain is not "*"
Michael Adam [Tue, 7 Jun 2011 13:53:49 +0000 (15:53 +0200)]
s3:idmap_autorid: fail initialization if the domain is not "*"

autorid can only be used as a backend for the default idmap configuration.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Jun  7 19:13:18 CEST 2011 on sn-devel-104

8 years agos3:docs: fix the example in the idmap_autorid manpage to use "idmap config * : rangesize"
Michael Adam [Tue, 7 Jun 2011 13:21:34 +0000 (15:21 +0200)]
s3:docs: fix the example in the idmap_autorid manpage to use "idmap config * : rangesize"

8 years agos3:idmap_autorid: use "idmap config <DOMAIN> : rangesize" instead of "autorid:rangesize"
Michael Adam [Tue, 7 Jun 2011 11:02:04 +0000 (13:02 +0200)]
s3:idmap_autorid: use "idmap config <DOMAIN> : rangesize" instead of "autorid:rangesize"

8 years agos3:idmap_autorid: add a talloc_stackframe() to idmap_autorid_initialize()
Michael Adam [Tue, 7 Jun 2011 13:16:24 +0000 (15:16 +0200)]
s3:idmap_autorid: add a talloc_stackframe() to idmap_autorid_initialize()

8 years agos4-cldap: fixed the CLDAP response for IPv6 clients
Andrew Tridgell [Tue, 7 Jun 2011 05:46:17 +0000 (15:46 +1000)]
s4-cldap: fixed the CLDAP response for IPv6 clients

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Jun  7 08:57:48 CEST 2011 on sn-devel-104

8 years agos4-ipv6: fixed a crash in the IPv6 DNS code
Andrew Tridgell [Tue, 7 Jun 2011 04:10:38 +0000 (14:10 +1000)]
s4-ipv6: fixed a crash in the IPv6 DNS code

8 years agos4-dns: fixed samba_tool -> samba-tool
Andrew Tridgell [Tue, 7 Jun 2011 03:46:24 +0000 (13:46 +1000)]
s4-dns: fixed samba_tool -> samba-tool

8 years agos4-build: install a build link bin/provision
Andrew Tridgell [Tue, 7 Jun 2011 03:15:15 +0000 (13:15 +1000)]
s4-build: install a build link bin/provision

8 years agoselftest: Fix 'make quicktest' on systems without LDAP development support
Andrew Bartlett [Tue, 7 Jun 2011 03:22:58 +0000 (13:22 +1000)]
selftest: Fix 'make quicktest' on systems without LDAP development support

This should ensure that we don't run the Samba3/Samba4 integration
tests on machines without ADS support.

(Some samba3 tests in the full 'make test' may still fail however)

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Jun  7 07:17:32 CEST 2011 on sn-devel-104

8 years agos4-provision: fixed detection of V4/V6 addresses
Andrew Tridgell [Tue, 7 Jun 2011 02:55:31 +0000 (12:55 +1000)]
s4-provision: fixed detection of V4/V6 addresses

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Jun  7 06:07:24 CEST 2011 on sn-devel-104

8 years agos4-ipv6: fixed iface_list_same_net() for IPv6
Andrew Tridgell [Tue, 7 Jun 2011 02:55:09 +0000 (12:55 +1000)]
s4-ipv6: fixed iface_list_same_net() for IPv6

8 years agos4-ipv6: fixed DNS handling with new IPv6 code
Andrew Tridgell [Tue, 7 Jun 2011 02:35:10 +0000 (12:35 +1000)]
s4-ipv6: fixed DNS handling with new IPv6 code

8 years agos4-dsdb: cope with missing backlinks in rpmd handling
Andrew Tridgell [Tue, 7 Jun 2011 00:44:48 +0000 (10:44 +1000)]
s4-dsdb: cope with missing backlinks in rpmd handling

if backlinks have not propogated correctly in a previous replication
this allows us to recover

8 years agos4-netlogon: force an IPv4 address
Andrew Tridgell [Mon, 6 Jun 2011 05:19:16 +0000 (15:19 +1000)]
s4-netlogon: force an IPv4 address

this interface is currently V4 only, don't try and return a V6 address
in a V4 structure

8 years agos4-ipv6: fix iface_list_best_ip() for IPv6
Andrew Tridgell [Mon, 6 Jun 2011 05:18:12 +0000 (15:18 +1000)]
s4-ipv6: fix iface_list_best_ip() for IPv6

return an interface with the same address family as the target

8 years agos3-docs Add documentation for ncalrpc dir
Andrew Bartlett [Mon, 6 Jun 2011 23:47:26 +0000 (09:47 +1000)]
s3-docs Add documentation for ncalrpc dir

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Jun  7 02:57:33 CEST 2011 on sn-devel-104

8 years agos3-auth Use loadparm_init_s3() to get an lp_ctx for auth_samba4
Andrew Bartlett [Mon, 6 Jun 2011 23:09:16 +0000 (09:09 +1000)]
s3-auth Use loadparm_init_s3() to get an lp_ctx for auth_samba4

This avoids loading the smb.conf twice.

Andrew Bartlett

8 years agos4-auth Move default auth methods back into auth.c
Andrew Bartlett [Mon, 6 Jun 2011 23:07:52 +0000 (09:07 +1000)]
s4-auth Move default auth methods back into auth.c

This changes auth_methods_from_lp to no longer use the parametric
options, and to cope with ROLE_DOMAIN_BDC and ROLE_DOMAIN_PDC.  This
will assist in calling the source4 auth subsystem with a source3
derived lp_ctx.

Andrew Bartlett

8 years agos3: Remove unused variables
Volker Lendecke [Mon, 6 Jun 2011 20:31:33 +0000 (22:31 +0200)]
s3: Remove unused variables

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Jun  7 00:42:51 CEST 2011 on sn-devel-104

8 years agos3-waf: Fix pthreadpool build which needs librt now.
Andreas Schneider [Mon, 6 Jun 2011 20:22:34 +0000 (22:22 +0200)]
s3-waf: Fix pthreadpool build which needs librt now.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Jun  6 23:31:09 CEST 2011 on sn-devel-104

8 years agoFix bug #8197 - winbind does not properly detect when a DC connection is dead.
Jeremy Allison [Fri, 3 Jun 2011 17:22:44 +0000 (10:22 -0700)]
Fix bug #8197 - winbind does not properly detect when a DC connection is dead.

Only waiting for writability doesn't get fd errors back with poll.
So always begin by selecting for readability, and if we get it then
see if bytes were available to read or it really is an error condition.

If bytes were available, remove the select on read as we know we
will retrieve the error when we've finished writing and start
reading the reply (or the write will timeout or fail).

Metze and Volker please check.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Jun  6 21:53:16 CEST 2011 on sn-devel-104

8 years agos3: Remove a pointless if-statement
Volker Lendecke [Mon, 6 Jun 2011 15:03:06 +0000 (17:03 +0200)]
s3: Remove a pointless if-statement

We are here only if we have more than one num_pending

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Jun  6 18:21:17 CEST 2011 on sn-devel-104

8 years agos3: Fix two debug messages
Volker Lendecke [Mon, 6 Jun 2011 10:41:26 +0000 (12:41 +0200)]
s3: Fix two debug messages

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Jun  6 14:11:06 CEST 2011 on sn-devel-104

8 years agos4/server: simplify and replace bad portable gettimeofday by time
Björn Jacke [Sun, 5 Jun 2011 19:32:11 +0000 (21:32 +0200)]
s4/server: simplify and replace bad portable gettimeofday by time

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Mon Jun  6 12:58:26 CEST 2011 on sn-devel-104

8 years agos3/pthreadpool: replace bad portable gettimeofday by clock_gettime
Björn Jacke [Sun, 5 Jun 2011 19:30:16 +0000 (21:30 +0200)]
s3/pthreadpool: replace bad portable gettimeofday by clock_gettime

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-s4-param: Add hooks for parametric options in the s3/s4 glue layer
Andrew Bartlett [Mon, 6 Jun 2011 06:47:32 +0000 (16:47 +1000)]
s3-s4-param: Add hooks for parametric options in the s3/s4 glue layer

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Jun  6 10:48:53 CEST 2011 on sn-devel-104

8 years agos3-passdb use new loadparm_init_s3 rather than reloading the smb.conf
Andrew Bartlett [Mon, 6 Jun 2011 01:16:19 +0000 (11:16 +1000)]
s3-passdb use new loadparm_init_s3 rather than reloading the smb.conf

8 years agos4-modules Remove lp_ctx from init functions that no longer need it
Andrew Bartlett [Mon, 6 Jun 2011 04:58:28 +0000 (14:58 +1000)]
s4-modules Remove lp_ctx from init functions that no longer need it

Now that we don't allow the smb.conf to change the modules dir, many
functions that simply load modules or initialise a subsytem that may
load modules no longer need an lp_ctx.

Andrew Bartlett

8 years agos4-param Remove 'modules dir'
Andrew Bartlett [Mon, 6 Jun 2011 04:39:19 +0000 (14:39 +1000)]
s4-param Remove 'modules dir'

The Samba waf build ensures that dyn_MODULESDIR is always correct
(even for in-tree binaries), so we don't need to allow the user to
configure this at run time.

Andrew Bartlett

8 years agolib/util use modules_path(), data_path() and shlib_ext() from source3
Andrew Bartlett [Mon, 6 Jun 2011 04:37:06 +0000 (14:37 +1000)]
lib/util use modules_path(), data_path() and shlib_ext() from source3

This brings these helpful utility functions in common, as they are not
based on either loadparm system.

(The 'modules dir' parameter from Samba4 will shortly be removed, so
there is no loss in functionality)

Andrew Bartlett

8 years agos3-lib Remove unused lib_path()
Andrew Bartlett [Mon, 6 Jun 2011 04:22:12 +0000 (14:22 +1000)]
s3-lib Remove unused lib_path()

8 years agos4-param Add hook between Samba3 and Samba4 loadparm systems.
Andrew Bartlett [Wed, 1 Jun 2011 13:22:24 +0000 (23:22 +1000)]
s4-param Add hook between Samba3 and Samba4 loadparm systems.

In the top level build, this allows calls to code that requires a
lpcfg_ style loadparm_context, while using the global parameters
loaded from the source3 loadparm code.

Andrew Bartlett

8 years agos4-param make lpcfg_sam_name() cope with PDC and BDC roles
Andrew Bartlett [Mon, 6 Jun 2011 01:38:04 +0000 (11:38 +1000)]
s4-param make lpcfg_sam_name() cope with PDC and BDC roles

These roles (ROLE_DOMAIN_CONTROLLER is ROLE_DOMAIN_BDC) will come in
from the s3 loadparm.

Andrew Bartlett

8 years agos3-param always allow the realm parameter
Andrew Bartlett [Mon, 6 Jun 2011 00:56:19 +0000 (10:56 +1000)]
s3-param always allow the realm parameter

8 years agos4-param Remove 'sid generator'
Andrew Bartlett [Thu, 2 Jun 2011 08:56:10 +0000 (18:56 +1000)]
s4-param Remove 'sid generator'

This was only used by the Fedora DS backend for Samba4.  We agreed to
no longer support external LDAP backends.

Andrew Bartlett

8 years agos4-param Remove 'idmap database'
Andrew Bartlett [Thu, 2 Jun 2011 05:49:36 +0000 (15:49 +1000)]
s4-param Remove 'idmap database'

This is now just idmap.ldb in the private dir, which remains.

8 years agos4-param Remove 'secrets database' parameter
Andrew Bartlett [Thu, 2 Jun 2011 05:47:44 +0000 (15:47 +1000)]
s4-param Remove 'secrets database' parameter

This is now just secrets.ldb in the private dir, which remains.

8 years agos4-param Remove 'sam database' parameter
Andrew Bartlett [Thu, 2 Jun 2011 05:43:40 +0000 (15:43 +1000)]
s4-param Remove 'sam database' parameter

This now just relies on the private dir parameter, which remains.

Andrew Bartlett

8 years agolibcli/util Remove prototype for ntstatus_dos_equal()
Andrew Bartlett [Wed, 1 Jun 2011 12:16:08 +0000 (22:16 +1000)]
libcli/util Remove prototype for ntstatus_dos_equal()

This was removed recently.

8 years agos4-ipv6: fill in family when initialising from sockaddr
Andrew Tridgell [Mon, 6 Jun 2011 01:31:23 +0000 (11:31 +1000)]
s4-ipv6: fill in family when initialising from sockaddr

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Jun  6 05:35:36 CEST 2011 on sn-devel-104

8 years agos4-ipv6: removed the old unused ipv6 code in dcerpc_sock.c
Andrew Tridgell [Mon, 6 Jun 2011 00:43:05 +0000 (10:43 +1000)]
s4-ipv6: removed the old unused ipv6 code in dcerpc_sock.c

the code is now generic to both V4 and V6

8 years agos4-ipv6: fix the address family for IPv6 string addresses
Andrew Tridgell [Mon, 6 Jun 2011 00:42:28 +0000 (10:42 +1000)]
s4-ipv6: fix the address family for IPv6 string addresses

8 years agos4-ipv6: allow for IPv6 in dcerpc socket calls
Andrew Tridgell [Mon, 6 Jun 2011 00:13:41 +0000 (10:13 +1000)]
s4-ipv6: allow for IPv6 in dcerpc socket calls

8 years agos4-ipv6: allow for IPv6 in resolver top level calls
Andrew Tridgell [Mon, 6 Jun 2011 00:13:20 +0000 (10:13 +1000)]
s4-ipv6: allow for IPv6 in resolver top level calls

8 years agos4-ipv6: use the server address family
Andrew Tridgell [Mon, 6 Jun 2011 00:11:53 +0000 (10:11 +1000)]
s4-ipv6: use the server address family

don't force v4 in connect_multi

8 years agoutil-net: added is_ipaddress_v6()
Andrew Tridgell [Mon, 6 Jun 2011 00:11:13 +0000 (10:11 +1000)]
util-net: added is_ipaddress_v6()

8 years agos4-ipv6: cope with IPv6 in our async DNS client code
Andrew Tridgell [Sun, 5 Jun 2011 22:09:02 +0000 (08:09 +1000)]
s4-ipv6: cope with IPv6 in our async DNS client code

8 years agos4-script: install some of the samba scripts in bin/ during build
Andrew Tridgell [Fri, 3 Jun 2011 22:22:30 +0000 (08:22 +1000)]
s4-script: install some of the samba scripts in bin/ during build

8 years agos4-testparm: testparm is now part of samba_tool
Andrew Tridgell [Fri, 3 Jun 2011 22:20:54 +0000 (08:20 +1000)]
s4-testparm: testparm is now part of samba_tool

8 years agos4-ipv6: enable IPv6 by default
Andrew Tridgell [Fri, 3 Jun 2011 21:59:54 +0000 (07:59 +1000)]
s4-ipv6: enable IPv6 by default

it now passes all tests

8 years agos4-ipv6: fixed binding to ipv4 addresses
Andrew Tridgell [Fri, 3 Jun 2011 07:57:57 +0000 (17:57 +1000)]
s4-ipv6: fixed binding to ipv4 addresses

8 years agos4-ipv6: removed an old comment
Andrew Tridgell [Fri, 3 Jun 2011 01:43:38 +0000 (11:43 +1000)]
s4-ipv6: removed an old comment

the comment is not correct any more

8 years agos4-ipv6: don't add link local addresses to DNS
Andrew Tridgell [Fri, 3 Jun 2011 01:43:09 +0000 (11:43 +1000)]
s4-ipv6: don't add link local addresses to DNS

these make no sense as DNS addresses

8 years agos4-ipv6: ensure wrepl server does not use ipv6
Andrew Tridgell [Thu, 2 Jun 2011 08:20:13 +0000 (18:20 +1000)]
s4-ipv6: ensure wrepl server does not use ipv6

WINS only does IPv4

8 years agoipv6: always try to convert as a numeric address first
Andrew Tridgell [Thu, 2 Jun 2011 07:10:17 +0000 (17:10 +1000)]
ipv6: always try to convert as a numeric address first

This avoids unnecessary name lookups, plus it fixes a problem with
using interpret_string_addr*() with the wildcard IPv6 address

8 years agos4-ipv6: added IPv6 support to samba_dnsupdate
Andrew Tridgell [Thu, 2 Jun 2011 07:09:17 +0000 (17:09 +1000)]
s4-ipv6: added IPv6 support to samba_dnsupdate

8 years agos4-ipv6: update callers to load_interface_list()
Andrew Tridgell [Thu, 2 Jun 2011 05:40:28 +0000 (15:40 +1000)]
s4-ipv6: update callers to load_interface_list()

8 years agos4-ipv6: allow ipv6 to be enabled/disabled in smb.conf
Andrew Tridgell [Thu, 2 Jun 2011 05:39:54 +0000 (15:39 +1000)]
s4-ipv6: allow ipv6 to be enabled/disabled in smb.conf

this adds the parametric option ipv6:enable=true/false

It defaults to false for now, until the remaining issues with testing
of ipv6 are resolved

8 years agos4-gpo: fixed display of GPO version numbers
Andrew Tridgell [Thu, 12 May 2011 20:53:26 +0000 (22:53 +0200)]
s4-gpo: fixed display of GPO version numbers

8 years agos4-ipv6: the wins replication server can only handle IPv4
Andrew Tridgell [Thu, 12 May 2011 11:08:45 +0000 (13:08 +0200)]
s4-ipv6: the wins replication server can only handle IPv4

8 years agos4-webserver: fixed a talloc reference error on startup failure
Andrew Tridgell [Thu, 12 May 2011 10:38:03 +0000 (12:38 +0200)]
s4-webserver: fixed a talloc reference error on startup failure

8 years agos4-ipv6: only listen on V4 addresses in the NBT server
Andrew Tridgell [Thu, 12 May 2011 10:37:34 +0000 (12:37 +0200)]
s4-ipv6: only listen on V4 addresses in the NBT server

NBT doesn't do IPv6

8 years agos4-ipv6: use "ip" instead of "ipv4" for servers
Andrew Tridgell [Thu, 12 May 2011 10:36:33 +0000 (12:36 +0200)]
s4-ipv6: use "ip" instead of "ipv4" for servers

this allows stream_setup_socket() to work with both v4 and v6
addresses

8 years agos4-ipv6: use iface_list_wildcard() to listen on IPv6
Andrew Tridgell [Thu, 12 May 2011 10:35:02 +0000 (12:35 +0200)]
s4-ipv6: use iface_list_wildcard() to listen on IPv6

when we need to listen on a wildcard address, we now listen on a list
of sockets, usually 0.0.0.0 and ::

8 years agos4-ipv6: fixed stream_setup_socket() to handle IPv6
Andrew Tridgell [Thu, 12 May 2011 10:33:01 +0000 (12:33 +0200)]
s4-ipv6: fixed stream_setup_socket() to handle IPv6

for IP we now detect the address family from the address, rather than
requiring the caller to specify it.

8 years agos4-ipv6: fixed ipv6_listen() to use IPV6_V6ONLY
Andrew Tridgell [Thu, 12 May 2011 10:30:16 +0000 (12:30 +0200)]
s4-ipv6: fixed ipv6_listen() to use IPV6_V6ONLY

this changes ipv6_listen() to use IPV6_V6ONLY, and to setup the right
scope id for link local IPv6 addresses

8 years agos4-ipv6: added socket_address_from_sockaddr_storage()
Andrew Tridgell [Thu, 12 May 2011 10:29:21 +0000 (12:29 +0200)]
s4-ipv6: added socket_address_from_sockaddr_storage()

this converts a struct sockaddr_storage to a struct socket_address

8 years agos4-ipv6: added ipv4 functions to interface code
Andrew Tridgell [Thu, 12 May 2011 10:27:37 +0000 (12:27 +0200)]
s4-ipv6: added ipv4 functions to interface code

this adds iface_list_first_v4() and iface_list_n_is_v4(). The NBT
server will use these to allow it to listen only for IPv4 addresses.

8 years agos4-ipv6: fixed a warning
Andrew Tridgell [Thu, 12 May 2011 10:27:01 +0000 (12:27 +0200)]
s4-ipv6: fixed a warning

8 years agos4-ipv6: allow IPv6 addresses in our interfaces list
Andrew Tridgell [Thu, 12 May 2011 10:26:18 +0000 (12:26 +0200)]
s4-ipv6: allow IPv6 addresses in our interfaces list

8 years agos4-ipv6: changed the default "socket address"
Andrew Tridgell [Thu, 12 May 2011 10:25:51 +0000 (12:25 +0200)]
s4-ipv6: changed the default "socket address"

this changes the default socket address to the empty string. This
allows uses to specify 0.0.0.0 meaning to listen only on the IPv4
wildcard address.

8 years agos4-ipv6: added iface_list_wildcard()
Andrew Tridgell [Thu, 12 May 2011 10:23:35 +0000 (12:23 +0200)]
s4-ipv6: added iface_list_wildcard()

this returns a list of wildcard address to listen on, when we don't
have 'bind interfaces only' set. It is a list, not a single address,
we need to listen separately for the IPv6 "::" address from the IPv4
0.0.0.0 address.

This also takes account of the loadparm "socket address" option

8 years agonss_wins: Add a stackframe to lookup_byname_backend()
Volker Lendecke [Mon, 16 May 2011 12:48:39 +0000 (14:48 +0200)]
nss_wins: Add a stackframe to lookup_byname_backend()

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jun  5 15:17:42 CEST 2011 on sn-devel-104

8 years agos3: Make use of name_resolve_bcast in nmblookup
Volker Lendecke [Mon, 2 May 2011 21:39:09 +0000 (23:39 +0200)]
s3: Make use of name_resolve_bcast in nmblookup

8 years agos3: Make name_resolve_bcast do parallel lookups to all interfaces
Volker Lendecke [Mon, 25 Apr 2011 16:47:42 +0000 (18:47 +0200)]
s3: Make name_resolve_bcast do parallel lookups to all interfaces

8 years agos3: Add name_queries_send/recv
Volker Lendecke [Mon, 25 Apr 2011 16:30:35 +0000 (18:30 +0200)]
s3: Add name_queries_send/recv

8 years agos3: Fix a valgrind error
Volker Lendecke [Sun, 5 Jun 2011 11:56:39 +0000 (13:56 +0200)]
s3: Fix a valgrind error

For me this fixes

==1950== Invalid read of size 4
==1950==    at 0x81EBED5: GUID_equal (uuid.c:239)
==1950==    by 0x81E51AB: ndr_syntax_id_equal (ndr_misc.c:35)
==1950==    by 0x82EB0D1: get_iface_from_syntax (rpc_common.c:160)
==1950==    by 0x82EB25E: get_pipe_name_from_syntax (rpc_common.c:179)
==1950==    by 0x8509E4F: close_policy_by_pipe (rpc_handles.c:322)
==1950==    by 0x8507941: close_internal_rpc_pipe_hnd (rpc_ncacn_np.c:109)
==1950==    by 0x468270: _talloc_free_internal (talloc.c:826)
==1950==    by 0x467EE0: _talloc_free_internal (talloc.c:1268)
==1950==    by 0x467EE0: _talloc_free_internal (talloc.c:1268)
==1950==    by 0x467EE0: _talloc_free_internal (talloc.c:1268)
==1950==    by 0x467EE0: _talloc_free_internal (talloc.c:1268)
==1950==    by 0x80E6487: sam_trusted_domains (winbindd_samr.c:406)
==1950==  Address 0x687ea4 is 20 bytes inside a block of size 40 free'd
==1950==    at 0x58CDC: free (in /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so)
==1950==    by 0x8507812: free_pipe_rpc_context_internal (rpc_ncacn_np.c:74)
==1950==    by 0x8507936: close_internal_rpc_pipe_hnd (rpc_ncacn_np.c:106)
==1950==    by 0x468270: _talloc_free_internal (talloc.c:826)
==1950==    by 0x467EE0: _talloc_free_internal (talloc.c:1268)
==1950==    by 0x467EE0: _talloc_free_internal (talloc.c:1268)
==1950==    by 0x467EE0: _talloc_free_internal (talloc.c:1268)
==1950==    by 0x467EE0: _talloc_free_internal (talloc.c:1268)
==1950==    by 0x80E6487: sam_trusted_domains (winbindd_samr.c:406)
==1950==    by 0x80C2F85: trusted_domains (winbindd_cache.c:2820)
==1950==    by 0x80D5188: winbindd_dual_list_trusted_domains (winbindd_misc.c:162)
==1950==    by 0x80E987F: wb_child_request_trigger (winbindd_dual.c:437)
==1950==

Andreas, Guenther, please check!

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jun  5 13:19:39 CEST 2011 on sn-devel-104

8 years agos3:winbind: Convert WINBINDD_WINS_BYIP to the async API
Volker Lendecke [Sun, 5 Jun 2011 09:30:43 +0000 (11:30 +0200)]
s3:winbind: Convert WINBINDD_WINS_BYIP to the async API

8 years agoMake samba4.drs.fsmo.python knownfail
Volker Lendecke [Sat, 4 Jun 2011 12:10:46 +0000 (14:10 +0200)]
Make samba4.drs.fsmo.python knownfail

This frequently blocks autobuild for me, this time with

Testing for rid role transfer from localdc.samba.example.com to localvampiredc.samba.example.com
ERROR: Failed to initiate transfer of 'rid' role: LDAP error 52 LDAP_UNAVAILABLE -  <Failed FSMO transfer: NT_STATUS_IO_TIMEOUT> <>
UNEXPECTED(failure): samba4.drs.fsmo.python(vampire_dc).fsmo.DrsFsmoTestCase.test_RIDMasterTransfer
REASON: _StringException: _StringException: Content-Type: text/x-traceback;charset=utf8,language=python
traceback
36E
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line 128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 368, in _run_test_method
    testMethod()
  File "/memdisk/vlendec/a/b5798/samba4/source4/torture/drs/python/fsmo.py", line 125, in test_RIDMasterTransfer
    self._role_transfer(role="rid", role_dn=self.rid_dn)
  File "/memdisk/vlendec/a/b5798/samba4/source4/torture/drs/python/fsmo.py", line 97, in _role_transfer
    self._net_fsmo_role_transfer(DC=self.dnsname_dc2, role=role)
  File "/memdisk/vlendec/a/b5798/samba4/source4/torture/drs/python/fsmo.py", line 68, in _net_fsmo_role_transfer
    self.assertEquals(ret, 0, "Transferring role %s to %s has failed!" % (role, DC))
AssertionError: Transferring role rid to localvampiredc.samba.example.com has failed!
0

NT_STATUS_IO_TIMEOUT -- does that mean that sn.samba.org is not powerful enough
to run this test successfully?

Volker

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Jun  4 15:24:20 CEST 2011 on sn-devel-104

8 years agos3: Fix the build on FreeBSD 8
Volker Lendecke [Sat, 4 Jun 2011 12:18:31 +0000 (14:18 +0200)]
s3: Fix the build on FreeBSD 8

This is probably not the last word on gss_mech_krb5, but for now it fixes
the build on FreeBSD

8 years agoAdd the same fix to the S3 event backend as the previous commit added to the tevent...
Jeremy Allison [Fri, 3 Jun 2011 19:55:19 +0000 (12:55 -0700)]
Add the same fix to the S3 event backend as the previous commit added to the tevent poll backend.

Metze please check !

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jun  4 00:27:37 CEST 2011 on sn-devel-104

8 years agoFix the poll() backend to correctly respond to POLLHUP|POLLERR returns on a fd select...
Jeremy Allison [Fri, 3 Jun 2011 19:31:11 +0000 (12:31 -0700)]
Fix the poll() backend to correctly respond to POLLHUP|POLLERR returns on a fd selected for TEVENT_FD_WRITE only.

Don't trigger the write handler and remove the POLLOUT flag for this fd. Report errors on TEVENT_FD_READ requests only.
Metze please check !

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jun  3 22:53:52 CEST 2011 on sn-devel-104