samba.git
10 years agoselftest: Support multiple instances of $LISTOPT.
Jelmer Vernooij [Sat, 11 Dec 2010 17:21:58 +0000 (18:21 +0100)]
selftest: Support multiple instances of $LISTOPT.

10 years agofilter-subunit: Add --list argument.
Jelmer Vernooij [Sat, 11 Dec 2010 17:21:27 +0000 (18:21 +0100)]
filter-subunit: Add --list argument.

10 years agosmbtorture: Default to listing all tests if no prefix was specified.
Jelmer Vernooij [Sat, 11 Dec 2010 17:00:24 +0000 (18:00 +0100)]
smbtorture: Default to listing all tests if no prefix was specified.

10 years agosmbtorture: Implement --list argument.
Jelmer Vernooij [Sat, 11 Dec 2010 16:56:37 +0000 (17:56 +0100)]
smbtorture: Implement --list argument.

10 years agobuild: add more CFLAGS for aix
Matthieu Patou [Sat, 11 Dec 2010 16:20:51 +0000 (19:20 +0300)]
build: add more CFLAGS for aix

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Dec 11 18:09:23 CET 2010 on sn-devel-104

10 years agobuild: add a dependency on lib iconv for lib intl if we are not able to find it
Matthieu Patou [Sat, 11 Dec 2010 15:50:51 +0000 (18:50 +0300)]
build: add a dependency on lib iconv for lib intl if we are not able to find it

This is due that on some platform lib intl depend on lib iconv, failling
to provide this library cause waf to be unable to link with lib intl and
makes it think that the library doesn't exists !

10 years agobuild: On AIX we need _XOPEN_SOURCE >= 500 for CLOCK_REALTIME
Matthieu Patou [Sat, 11 Dec 2010 10:13:42 +0000 (13:13 +0300)]
build: On AIX we need _XOPEN_SOURCE >= 500 for CLOCK_REALTIME

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Dec 11 14:48:21 CET 2010 on sn-devel-104

10 years agolibcli/echo: fix off by 1 crash bug
Stefan Metzmacher [Sat, 11 Dec 2010 10:17:17 +0000 (11:17 +0100)]
libcli/echo: fix off by 1 crash bug

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Dec 11 13:48:54 CET 2010 on sn-devel-104

10 years agos4:selftest: use correct name for the test "ECHO-UDP" => "echo.udp"
Stefan Metzmacher [Sat, 11 Dec 2010 10:04:29 +0000 (11:04 +0100)]
s4:selftest: use correct name for the test "ECHO-UDP" => "echo.udp"

I wonder how commit 35fbc7bbda5851f7172538f79fc79be201f1d521
(s4-smbtorture: Make test names lowercase and dot-separated)
ever passed make test.

metze

10 years agolibcli/echo: lowercase testsuite names
Stefan Metzmacher [Sat, 11 Dec 2010 10:03:52 +0000 (11:03 +0100)]
libcli/echo: lowercase testsuite names

metze

10 years agos4-smbtorture: Make test names lowercase and dot-separated.
Jelmer Vernooij [Sat, 11 Dec 2010 02:26:31 +0000 (03:26 +0100)]
s4-smbtorture: Make test names lowercase and dot-separated.

This is consistent with the test names used by selftest, should
make the names less confusing and easier to integrate with other tools.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104

10 years agotalloc: Add ability to generate Python docs using pydoctor.
Jelmer Vernooij [Sat, 11 Dec 2010 00:05:13 +0000 (01:05 +0100)]
talloc: Add ability to generate Python docs using pydoctor.

10 years agosmbtorture: correct error handling in BASE-OPEN.
James Peach [Mon, 6 Dec 2010 19:27:31 +0000 (11:27 -0800)]
smbtorture: correct error handling in BASE-OPEN.

There are a number of cases in BASE-OPEN where an initial failure cascades
into multiple failures due to lack of cleanup between test phases. Fix
all these so that they close open file handles correctly. Replace
torture_comment with torture_result where appropriate so that the results
output contains a useful diagnostic.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 11 03:19:39 CET 2010 on sn-devel-104

10 years agoAdd documentation for "smb2 max credits".
Jeremy Allison [Fri, 10 Dec 2010 22:40:17 +0000 (14:40 -0800)]
Add documentation for "smb2 max credits".

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 11 02:14:07 CET 2010 on sn-devel-104

10 years agoAdd a SMB2 crediting algorithm, by default the same as Windows. Defaults to 128 credits.
Jeremy Allison [Fri, 10 Dec 2010 23:46:41 +0000 (15:46 -0800)]
Add a SMB2 crediting algorithm, by default the same as Windows. Defaults to 128 credits.

Jeremy.

10 years agoheimdal: unset SLIST_ENTRY only if we are with windows
Matthieu Patou [Fri, 10 Dec 2010 22:39:34 +0000 (01:39 +0300)]
heimdal: unset SLIST_ENTRY only if we are with windows

This is needed because otherwise on some OS like netbsd,openbsd,MacOSX.

The preprossessing of ./heimdal/lib/gssapi/mech/cred.h on this plateform
is broken because mechqueue.h's definition won't be used as SLIST_HEAD
is already defined.
The definition occurs when net/if.h is included as it includes
sys/queue.h

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Dec 11 00:34:51 CET 2010 on sn-devel-104

10 years agobuild: cpp is prefixed by CPP=
Matthieu Patou [Fri, 10 Dec 2010 20:47:54 +0000 (23:47 +0300)]
build: cpp is prefixed by CPP=

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Dec 10 22:34:45 CET 2010 on sn-devel-104

10 years agobuild: add a function to test if -lc is needed
Matthieu Patou [Fri, 10 Dec 2010 20:16:28 +0000 (23:16 +0300)]
build: add a function to test if -lc is needed

This is needed on openbsd as some linking flags makes mandatory to
specify the libc for the linking

10 years agodrsblobs.idl: remove nopython from package_PrimaryKerberosBlob related stuff
Stefan Metzmacher [Wed, 1 Dec 2010 14:12:58 +0000 (15:12 +0100)]
drsblobs.idl: remove nopython from package_PrimaryKerberosBlob related stuff

This allows parsing and construction of the supplementatlCredentials
attribute in python.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 10 19:08:33 CET 2010 on sn-devel-104

10 years agopidl:Samba4/Python.pm: ignore "SUBCONTEXT" levels
Stefan Metzmacher [Wed, 8 Dec 2010 14:11:48 +0000 (15:11 +0100)]
pidl:Samba4/Python.pm: ignore "SUBCONTEXT" levels

These are only important for the NDR marshalling
and not for the python bindings.

metze

10 years agopidl:Samba4/Python.pm: don't handle scalar reference types special
Stefan Metzmacher [Fri, 10 Dec 2010 15:32:35 +0000 (16:32 +0100)]
pidl:Samba4/Python.pm: don't handle scalar reference types special

The only special thing is that don't need get_value_of(),
all other checks are needed.

metze

10 years agobuild: compiler on aix is xlc_r not xlr_c
Matthieu Patou [Fri, 10 Dec 2010 16:08:18 +0000 (19:08 +0300)]
build: compiler on aix is xlc_r not xlr_c

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Dec 10 17:54:49 CET 2010 on sn-devel-104

10 years agobuild: reset cpp on host with xlr_c and let pidl use $CC -E
Matthieu Patou [Fri, 10 Dec 2010 11:37:00 +0000 (14:37 +0300)]
build: reset cpp on host with xlr_c and let pidl use $CC -E

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Dec 10 13:27:22 CET 2010 on sn-devel-104

10 years agos4-tests: Modified sec_descriptor.py to use the sd_utils helpers.
Nadezhda Ivanova [Fri, 10 Dec 2010 08:31:58 +0000 (10:31 +0200)]
s4-tests: Modified sec_descriptor.py to use the sd_utils helpers.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Fri Dec 10 11:03:28 CET 2010 on sn-devel-104

10 years agos4-tests: Modified acl.py to use the sd_utils helpers.
Nadezhda Ivanova [Fri, 10 Dec 2010 08:31:19 +0000 (10:31 +0200)]
s4-tests: Modified acl.py to use the sd_utils helpers.

10 years agos4-tests: Moved some commonly redefined security descriptor methods to a utils class
Nadezhda Ivanova [Fri, 10 Dec 2010 08:29:14 +0000 (10:29 +0200)]
s4-tests: Moved some commonly redefined security descriptor methods to a utils class

These methods are used in more than one testsuite now so they are now in a utility class instead of being defined everywhere.

10 years agobuild: detect if conf.env['CPP'] is an array or not
Matthieu Patou [Fri, 10 Dec 2010 07:06:44 +0000 (10:06 +0300)]
build: detect if conf.env['CPP'] is an array or not

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Dec 10 10:18:20 CET 2010 on sn-devel-104

10 years agowaf: the libXX.inst.so file also depends on the vscript
Andrew Tridgell [Fri, 10 Dec 2010 06:59:34 +0000 (17:59 +1100)]
waf: the libXX.inst.so file also depends on the vscript

this fixes a problem with installed libraries not relinking after a
git version change

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Dec 10 09:30:46 CET 2010 on sn-devel-104

10 years agos3-vfstest: fixed paths in vfstest
Andrew Tridgell [Thu, 9 Dec 2010 11:41:58 +0000 (22:41 +1100)]
s3-vfstest: fixed paths in vfstest

vfstest tries to create /messages.tdb as loadparm has not been
initialised

10 years agowintest flush DNS on Windows clients to improve reliablity
Andrew Bartlett [Fri, 10 Dec 2010 05:56:57 +0000 (16:56 +1100)]
wintest flush DNS on Windows clients to improve reliablity

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Dec 10 08:45:28 CET 2010 on sn-devel-104

10 years agos3-dns Don't use DELEG_FLAG in DNS update, Windows 2008R2 does not like it
Andrew Bartlett [Fri, 10 Dec 2010 04:32:08 +0000 (15:32 +1100)]
s3-dns Don't use DELEG_FLAG in DNS update, Windows 2008R2 does not like it

10 years agos3-dns Don't use SEQUENCE_FLAG in DNS update, Windows 2008R2 does not like it
Andrew Bartlett [Fri, 10 Dec 2010 04:30:22 +0000 (15:30 +1100)]
s3-dns Don't use SEQUENCE_FLAG in DNS update, Windows 2008R2 does not like it

Andrew Bartlett

10 years agowintest More work to make test-s3.py work
Andrew Bartlett [Fri, 10 Dec 2010 04:09:54 +0000 (15:09 +1100)]
wintest More work to make test-s3.py work

 - Set the password on the newly added 'root' user so we can connect with a user that exists in getpwnam() without further configuration
 - bind interfaces only so we don't conflict with other Samba instances
 - use the full DNS name for smbclient
 - don't connect to localhost (as we will be on ${INTERFACE_IP} only
 - Use the windows domain in the wbinfo command (winbindd won't take bare name here).
 - Register our IP address in DNS using 'net ads dns register'

Andrew Bartlett

10 years agos3-net Allow 'net ads dns register' to take an optional hostname argument
Andrew Bartlett [Fri, 10 Dec 2010 04:08:53 +0000 (15:08 +1100)]
s3-net Allow 'net ads dns register' to take an optional hostname argument

This allows the administrator to more carefully chose what name to register.

Andrew Bartlett

10 years agowintest Share more of the S4 test code with the s3 test
Andrew Bartlett [Fri, 10 Dec 2010 01:13:58 +0000 (12:13 +1100)]
wintest Share more of the S4 test code with the s3 test

This allows us to run a private BIND in the S3 test, and allows the S3
test to join a freshly provisioned AD instance if the VM isn't already
configured.

Andrew Bartlett

10 years agos3-winbind Improve memory handling in NTLMv2-backend plaintext authentication
Andrew Bartlett [Fri, 10 Dec 2010 01:12:23 +0000 (12:12 +1100)]
s3-winbind Improve memory handling in NTLMv2-backend plaintext authentication

Andrew Bartlett

10 years agos3-winbind Don't send the LM password to the server, ever
Andrew Bartlett [Fri, 10 Dec 2010 01:10:07 +0000 (12:10 +1100)]
s3-winbind Don't send the LM password to the server, ever

This is for the case where we have the plaintext password locally, and
can construct the challenge-response values here.

We should never ever use the LM password in domain authentication.
The last domain controller to only have LM passwords stored was NT
3.5.

Andrew Bartlett

10 years agos3-libsmb Don't ever ask for machine$ principals as a target.
Andrew Bartlett [Thu, 9 Dec 2010 20:57:59 +0000 (07:57 +1100)]
s3-libsmb Don't ever ask for machine$ principals as a target.

It is never correct to ask for a machine$ principal as the target of a
kerberos connection.  You should always connect via the
servicePrincipalName.

This current code appears to have built up from a series of minimal
changes, as the codebase adapted the to lack of a SPNEGO principal
from Windows 2008.

Andrew Bartlett

10 years agos3-docs Add docs for 'client use spnego principal' and 'send spengo principal'
Andrew Bartlett [Thu, 9 Dec 2010 06:37:14 +0000 (17:37 +1100)]
s3-docs Add docs for 'client use spnego principal' and 'send spengo principal'

Andrew Bartlett

10 years agos3-docs Explain change to NTLMv2 by default in the client
Andrew Bartlett [Thu, 9 Dec 2010 05:47:08 +0000 (16:47 +1100)]
s3-docs Explain change to NTLMv2 by default in the client

10 years agos3-client Use NTLMv2 by default in the Samba client
Andrew Bartlett [Sat, 4 Dec 2010 03:57:46 +0000 (14:57 +1100)]
s3-client Use NTLMv2 by default in the Samba client

This matches the improved security measures of Windows Vista.

Andrew Bartlett

10 years agos3-smbd Don't send SPNEGO principal (rfc4178 hint) by default
Andrew Bartlett [Sat, 4 Dec 2010 03:11:57 +0000 (14:11 +1100)]
s3-smbd Don't send SPNEGO principal (rfc4178 hint) by default

This patch, based on the suggestion by Goldberg, Neil R. <ngoldber@mitre.org>
turns off the sending of the principal in the negprot by default, matching
Windows 2008 behaviour.

This slowly works us back from this hack, which from an RFC
perspective was never the right thing to do in the first place, but we
traditionally follow windows behaviour.  It also discourages client
implmentations from relying on it, as if they do they are more open to
man-in-the-middle attacks.

Andrew Bartlett

10 years agos3-libads Default to NOT using the server-supplied principal from SPNEGO
Andrew Bartlett [Sat, 4 Dec 2010 02:48:37 +0000 (13:48 +1100)]
s3-libads Default to NOT using the server-supplied principal from SPNEGO

This principal is not supplied by later versions of windows, and using
it opens up some oportunities for man in the middle attacks.  (Becuase
it isn't the name being contacted that is verified with the KDC).

This adds the option 'client use spnego principal' to the smb.conf (as
used in Samba4) to control this behaivour.  As in Samba4, this
defaults to false.

Against 2008 servers, this will not change behaviour.  Against earlier
servers, it may cause a downgrade to NTLMSSP more often, in
environments where server names are not registered with the KDC as
servicePrincipalName values.

Andrew Bartlett

10 years agosubunitrun: Use unittest.TestProgram if subunit.TestProgram is not
Jelmer Vernooij [Fri, 10 Dec 2010 02:03:18 +0000 (03:03 +0100)]
subunitrun: Use unittest.TestProgram if subunit.TestProgram is not
available.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Dec 10 03:49:03 CET 2010 on sn-devel-104

10 years agos4-python: Add convenience function for forcibly importing bundled
Jelmer Vernooij [Thu, 9 Dec 2010 23:47:33 +0000 (00:47 +0100)]
s4-python: Add convenience function for forcibly importing bundled
package.

10 years agosubunitrun: Extend hack to cope with older system subunit run installs.
Jelmer Vernooij [Thu, 9 Dec 2010 22:28:25 +0000 (23:28 +0100)]
subunitrun: Extend hack to cope with older system subunit run installs.

10 years agosubunitrun: Remove global subunit module when reimporting from a
Jelmer Vernooij [Thu, 9 Dec 2010 21:48:16 +0000 (22:48 +0100)]
subunitrun: Remove global subunit module when reimporting from a
different location.

10 years agos4-dist: Remove no longer existing files from blacklist (fixes 'make
Jelmer Vernooij [Thu, 9 Dec 2010 21:46:08 +0000 (22:46 +0100)]
s4-dist: Remove no longer existing files from blacklist (fixes 'make
dist' inclusion of configure)

10 years agos4-python: Fix use of bundled modules.
Jelmer Vernooij [Thu, 9 Dec 2010 20:38:48 +0000 (21:38 +0100)]
s4-python: Fix use of bundled modules.

10 years agos4-python: Split up ensure_external_module.
Jelmer Vernooij [Thu, 9 Dec 2010 18:45:37 +0000 (19:45 +0100)]
s4-python: Split up ensure_external_module.

10 years agoselftest: Make sure system subunit.run has TestProgram.
Jelmer Vernooij [Thu, 9 Dec 2010 17:49:38 +0000 (18:49 +0100)]
selftest: Make sure system subunit.run has TestProgram.

10 years agosmbtorture: Rename --list to --list-suites, add stub --list.
Jelmer Vernooij [Thu, 9 Dec 2010 15:57:45 +0000 (16:57 +0100)]
smbtorture: Rename --list to --list-suites, add stub --list.

10 years agoselftest: Check exit code when listing tests.
Jelmer Vernooij [Thu, 9 Dec 2010 15:48:24 +0000 (16:48 +0100)]
selftest: Check exit code when listing tests.

10 years agos4-selftest: Add convenience function for running testsuites using
Jelmer Vernooij [Thu, 9 Dec 2010 15:28:31 +0000 (16:28 +0100)]
s4-selftest: Add convenience function for running testsuites using
subunitrun.

10 years agoselftest: Allow discovering tests in pure python testsuites.
Jelmer Vernooij [Thu, 9 Dec 2010 14:41:17 +0000 (15:41 +0100)]
selftest: Allow discovering tests in pure python testsuites.

10 years agosubunitrun: Support --list.
Jelmer Vernooij [Thu, 9 Dec 2010 14:35:51 +0000 (15:35 +0100)]
subunitrun: Support --list.

10 years agoselftest: Rename $LIST to $LISTOPT for consistency with testrepository.
Jelmer Vernooij [Thu, 9 Dec 2010 14:35:23 +0000 (15:35 +0100)]
selftest: Rename $LIST to $LISTOPT for consistency with testrepository.

10 years agodnspython: Update to newer upstream snapshot.
Jelmer Vernooij [Thu, 9 Dec 2010 13:53:45 +0000 (14:53 +0100)]
dnspython: Update to newer upstream snapshot.

10 years agosubunit: Update to newer upstream snapshot.
Jelmer Vernooij [Thu, 9 Dec 2010 13:51:51 +0000 (14:51 +0100)]
subunit: Update to newer upstream snapshot.

10 years agotesttools: Import new upstream snapshot.
Jelmer Vernooij [Thu, 9 Dec 2010 13:51:17 +0000 (14:51 +0100)]
testtools: Import new upstream snapshot.

10 years agoselftest: add --list option.
Jelmer Vernooij [Thu, 9 Dec 2010 13:46:09 +0000 (14:46 +0100)]
selftest: add --list option.

10 years agoselftest: Document --testenv in --help output, remove documentation for
Jelmer Vernooij [Thu, 9 Dec 2010 12:37:13 +0000 (13:37 +0100)]
selftest: Document --testenv in --help output, remove documentation for
now obsolete --analyse-cmd.

10 years agopidl: use $CC -E if $CPP is not defined, if both undefined use cpp
Matthieu Patou [Thu, 9 Dec 2010 23:03:40 +0000 (02:03 +0300)]
pidl: use $CC -E if $CPP is not defined, if both undefined use cpp

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Dec 10 01:26:44 CET 2010 on sn-devel-104

10 years agobuild: use CPP and CC values when calling pidl
Matthieu Patou [Thu, 9 Dec 2010 23:36:24 +0000 (02:36 +0300)]
build: use CPP and CC values when calling pidl

10 years agobuild: introduce SAMBA_CHECK_PYTHON_HEADERS
Matthieu Patou [Thu, 9 Dec 2010 22:42:32 +0000 (01:42 +0300)]
build: introduce SAMBA_CHECK_PYTHON_HEADERS

This function is a wrapper around waf's check_python_header.
It avoids searching more than once for the headers bringing a small
speed improvement and a better lisibility of the logs.

But it's mainly to avoid a nasty bug when python libraries are in path
pointed by python_LIBPL (ie. /usr/local/lib/python2.6/config/) instead
of python_LIBDIR (ie. /usr/local/lib).

On the first call waf will correctly find that in order to link with
python libs it needs to add -L$python_LIBPL.

But on the next calls of check_python_headers, waf will use both the
current library path value (ie. -L/usr/local/lib/python2.6/config) and
-L$python_LIBDIR (ie. /usr/local/lib/) which will make him beleive that
python libraries are in $python_LIBDIR which at the end will make the
final link test fails in check_python_headers as it will not use the
good directory.

So by avoiding calling check_python_headers more than once we avoid
making waf fooling itself.

10 years agobuild: finishing fixing broken libiconv on hpux
Matthieu Patou [Thu, 9 Dec 2010 20:31:16 +0000 (23:31 +0300)]
build: finishing fixing broken libiconv on hpux

10 years agos4 libcli: Add libcli_echo lib and torture test
Kai Blin [Mon, 15 Nov 2010 22:01:57 +0000 (23:01 +0100)]
s4 libcli: Add libcli_echo lib and torture test

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Dec  9 23:57:03 CET 2010 on sn-devel-104

10 years agos4: Implement UDP echo server example
Kai Blin [Sun, 7 Nov 2010 09:05:56 +0000 (10:05 +0100)]
s4: Implement UDP echo server example

This is a simple UDP-based echo server. It is mainly intended as an
example on how to do server service tasks in s4.

10 years agos4:pyrpc_util: s/typename/type_name to avoid c++ warnings
Stefan Metzmacher [Thu, 9 Dec 2010 08:59:52 +0000 (09:59 +0100)]
s4:pyrpc_util: s/typename/type_name to avoid c++ warnings

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec  9 17:55:57 CET 2010 on sn-devel-104

10 years agotalloc: pytalloc-util should not have an ABI-file yet
Stefan Metzmacher [Thu, 9 Dec 2010 08:36:55 +0000 (09:36 +0100)]
talloc: pytalloc-util should not have an ABI-file yet

Somehow I forgot to remove this after discussion with Jelmer.

metze

10 years agowintest Remove the password expiry as the first step
Andrew Bartlett [Thu, 9 Dec 2010 11:05:14 +0000 (22:05 +1100)]
wintest Remove the password expiry as the first step

This is particularly important before dcpromo, as the password will
otherwise be expired in the new domain.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Dec  9 13:33:00 CET 2010 on sn-devel-104

10 years agowaf: remove the restriction that private libraries must not have a vnum
Andrew Tridgell [Thu, 9 Dec 2010 10:58:20 +0000 (21:58 +1100)]
waf: remove the restriction that private libraries must not have a vnum

we need the vnum for ABI checking for public libraries built as
private libraries when bundled

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Dec  9 12:47:41 CET 2010 on sn-devel-104

10 years agowaf: fixed path to abi_directory
Andrew Tridgell [Thu, 9 Dec 2010 10:49:01 +0000 (21:49 +1100)]
waf: fixed path to abi_directory

this broke in a recent patch

10 years agos4-spnego Match Windows 2008, and no longer supply a name in the CIFS Negprot
Andrew Bartlett [Thu, 9 Dec 2010 06:51:36 +0000 (17:51 +1100)]
s4-spnego Match Windows 2008, and no longer supply a name in the CIFS Negprot

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Dec  9 08:50:28 CET 2010 on sn-devel-104

10 years agos4-lsa Implement kerberos ticket life policy
Andrew Bartlett [Thu, 9 Dec 2010 03:17:54 +0000 (14:17 +1100)]
s4-lsa Implement kerberos ticket life policy

We now no longer print tickets with a potentially infinite life, and
we report the same life over LSA as we use in the KDC.  We should get
this from group policy, but for now it's parametric smb.conf options.

Andrew Bartlett

10 years agos4-tests Workaround new default of 'client ntlmv2 auth = yes' in tests
Andrew Bartlett [Sat, 4 Dec 2010 06:02:49 +0000 (17:02 +1100)]
s4-tests Workaround new default of 'client ntlmv2 auth = yes' in tests

The new default breaks some tests that were assuming LM or NTLM auth

Andrew Bartlett

10 years agos4-client Use NTLMv2 by default in the Samba4 client.
Andrew Bartlett [Sat, 4 Dec 2010 03:59:29 +0000 (14:59 +1100)]
s4-client Use NTLMv2 by default in the Samba4 client.

10 years agowaf: add a dependency between the library and its vscript
Andrew Tridgell [Thu, 9 Dec 2010 02:06:22 +0000 (13:06 +1100)]
waf: add a dependency between the library and its vscript

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Dec  9 04:32:18 CET 2010 on sn-devel-104

10 years agowaf: don't use symbol versioning on our modules
Andrew Tridgell [Thu, 9 Dec 2010 01:30:30 +0000 (12:30 +1100)]
waf: don't use symbol versioning on our modules

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

10 years agowaf: use vscripts for our private libraries too
Andrew Tridgell [Thu, 9 Dec 2010 01:24:48 +0000 (12:24 +1100)]
waf: use vscripts for our private libraries too

if the library has a vnum, then use it. If it doesn't have a vnum then
use the application version for symbol versions

10 years agowaf: make mkdir_p on a empty string not recurse forever
Andrew Tridgell [Thu, 9 Dec 2010 01:23:40 +0000 (12:23 +1100)]
waf: make mkdir_p on a empty string not recurse forever

10 years agowaf-abi: auto-generate per-symbol versions from ABI files
Andrew Tridgell [Thu, 9 Dec 2010 00:10:45 +0000 (11:10 +1100)]
waf-abi: auto-generate per-symbol versions from ABI files

This changes our version-script generation to use the ABI files that
are saved in git with each version number change of our public
libraries.

We use these ABI files to generate a linker version script that gives
the exact version number that each symbol was introduced. This
provides us with automatic fine grained symbol versioning.

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

10 years agobuild: do not duplicate the checks for python in samba4
Matthieu Patou [Wed, 8 Dec 2010 21:38:12 +0000 (00:38 +0300)]
build: do not duplicate the checks for python in samba4

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Thu Dec  9 00:47:23 CET 2010 on sn-devel-104

10 years agobuild: Cope with broken libiconv
Matthieu Patou [Wed, 8 Dec 2010 21:17:37 +0000 (00:17 +0300)]
build: Cope with broken libiconv

library iconv needs mbrtowc but some system didn't provide it (ie.
HP-UX 11.0)

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Dec  8 23:19:19 CET 2010 on sn-devel-104

10 years agodcerpc.idl: fix typo 0x800000000 => 0x80000000
Stefan Metzmacher [Wed, 8 Dec 2010 18:01:45 +0000 (19:01 +0100)]
dcerpc.idl: fix typo 0x800000000 => 0x80000000

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Dec  8 20:13:03 CET 2010 on sn-devel-104

10 years agos4:ldb: add ABI/ldb-0.9.20.sigs
Stefan Metzmacher [Wed, 8 Dec 2010 15:08:19 +0000 (16:08 +0100)]
s4:ldb: add ABI/ldb-0.9.20.sigs

metze

10 years agos4:ldb: build libldb and pyldb-util as private libraries when building for samba4
Stefan Metzmacher [Wed, 8 Dec 2010 14:12:57 +0000 (15:12 +0100)]
s4:ldb: build libldb and pyldb-util as private libraries when building for samba4

This matches the behavior of the talloc and tdb builds.

metze

10 years agotalloc: build pytalloc-util with the same logic as libtalloc
Stefan Metzmacher [Wed, 8 Dec 2010 11:42:02 +0000 (12:42 +0100)]
talloc: build pytalloc-util with the same logic as libtalloc

metze

10 years agotalloc: mark pytalloc-util functions as _PUBLIC_
Stefan Metzmacher [Wed, 8 Dec 2010 14:10:21 +0000 (15:10 +0100)]
talloc: mark pytalloc-util functions as _PUBLIC_

metze

10 years agotalloc: remove unused PyString_FromString_check_null() from pytalloc-util
Stefan Metzmacher [Wed, 8 Dec 2010 14:09:33 +0000 (15:09 +0100)]
talloc: remove unused PyString_FromString_check_null() from pytalloc-util

metze

10 years agopidl:Samba4/Python.pm: use PyString_FromStringOrNULL() from pyrpc_util
Stefan Metzmacher [Wed, 8 Dec 2010 14:08:45 +0000 (15:08 +0100)]
pidl:Samba4/Python.pm: use PyString_FromStringOrNULL() from pyrpc_util

metze

10 years agos4:python: add PyString_FromStringOrNULL() to pyrpc_util
Stefan Metzmacher [Wed, 8 Dec 2010 14:07:32 +0000 (15:07 +0100)]
s4:python: add PyString_FromStringOrNULL() to pyrpc_util

metze

10 years agobuildtools: private_libraries should not have a version in the soname
Stefan Metzmacher [Wed, 8 Dec 2010 11:40:19 +0000 (12:40 +0100)]
buildtools: private_libraries should not have a version in the soname

metze

10 years agobuildtools: add the PRIVATE_EXTENSION for private libraries
Stefan Metzmacher [Wed, 8 Dec 2010 11:02:51 +0000 (12:02 +0100)]
buildtools: add the PRIVATE_EXTENSION for private libraries

metze

10 years agobuildtools: make sure we have no '+' in the version scripts
Stefan Metzmacher [Wed, 8 Dec 2010 11:40:59 +0000 (12:40 +0100)]
buildtools: make sure we have no '+' in the version scripts

This happens if '--git-local-changes' was used.

metze

10 years agosmbtorture: use xxxULL notation instead of INT64_C(xxx)
Matthieu Patou [Wed, 8 Dec 2010 12:32:49 +0000 (15:32 +0300)]
smbtorture: use xxxULL notation instead of INT64_C(xxx)

The first one is portable the second not always

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Dec  8 15:48:10 CET 2010 on sn-devel-104

10 years agos4-acl: Replaced talloc_reference with talloc_steal, as aclread is the only one using...
Nadezhda Ivanova [Wed, 8 Dec 2010 12:30:23 +0000 (14:30 +0200)]
s4-acl: Replaced talloc_reference with talloc_steal, as aclread is the only one using this result message.

No need to reference as no one further up the stack uses the result, it is the result of a secondary request sent by aclread.

As a result from code review by Kamen Mazdrashki and Anatoliy Atanasov

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Wed Dec  8 15:01:51 CET 2010 on sn-devel-104

10 years agoAdd ncacn_http (RTS) IDL implementation in dcerpc.idl
Julien Kerihuel [Sun, 5 Dec 2010 22:10:30 +0000 (23:10 +0100)]
Add ncacn_http (RTS) IDL implementation in dcerpc.idl

Signed-off-by: Julien Kerihuel <j.kerihuel@openchange.org>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Dec  8 14:17:45 CET 2010 on sn-devel-104

10 years agoldb: bump version number after introduction of new constant.
Jelmer Vernooij [Wed, 8 Dec 2010 12:19:20 +0000 (13:19 +0100)]
ldb: bump version number after introduction of new constant.

10 years agos4-acl: Fixed incorrect value of LDB_FLAG_INTERNAL_INACCESSIBLE_ATTRIBUTE
Nadezhda Ivanova [Wed, 8 Dec 2010 11:19:27 +0000 (13:19 +0200)]
s4-acl: Fixed incorrect value of LDB_FLAG_INTERNAL_INACCESSIBLE_ATTRIBUTE

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Wed Dec  8 13:31:48 CET 2010 on sn-devel-104