kai/samba.git
9 years agos4-repl: Allow dsdb_replicated_objects_commit() to use different schema while committ...
Kamen Mazdrashki [Fri, 10 Dec 2010 00:55:30 +0000 (02:55 +0200)]
s4-repl: Allow dsdb_replicated_objects_commit() to use different schema while committing objects

working_schema is to be used while committing a Schema replica.

When we replicate Schema, then we most probably won't be
able to convert all replicated objects using the current
Schema cache (as we don't know anything about those new objects).

Thus, during Schema replication, we make a temporary
working_schema that contains both our current Schema +
all objects we get on the wire.
When we commit those new objects, we should use our working_schema
(by setting it to the ldb), and after all changes are commited,
we can refresh the schema cache so we have a brand new,
full-featured Schema cache

9 years agos4-schema_syntax: Use remote prefixMap to map remote ATTID to local one
Kamen Mazdrashki [Thu, 9 Dec 2010 02:45:17 +0000 (04:45 +0200)]
s4-schema_syntax: Use remote prefixMap to map remote ATTID to local one

in dsdb_attribute_drsuapi_to_ldb() function.

drsuapi_DsReplicaAttribute *in parameter come from remote DC
so we can't rely on in->attid to map it directly to an
dsdb_attribute in our local schema cache

9 years agos4-test/repl_schema: use 'top' as default base class for our test classSchema objects
Kamen Mazdrashki [Thu, 9 Dec 2010 02:57:08 +0000 (04:57 +0200)]
s4-test/repl_schema: use 'top' as default base class for our test classSchema objects

Otherwise we will end up passing whole inheritance chain
every time we create some new fancy classSchema object
(as the 'cls-A' and 'cls-B' ones in test_classWithCustomAttribute test)

9 years agos4-test/repl_schema: New test to test a classSchema with custom attribute
Kamen Mazdrashki [Thu, 9 Dec 2010 02:42:13 +0000 (04:42 +0200)]
s4-test/repl_schema: New test to test a classSchema with custom attribute

Create new Attribute and a Class,
that has value for newly created attribute.

This should check code path that searches for
AttributeID_id in Schema cacheThis test.

It also tests how we replicate a leaf classSchema that
inherits from a new classSchema with attribute added
- tests both dsdb_attribute_drsuapi_to_ldb() and
_dsdb_syntax_OID_obj_drsuapi_to_ldb() syntax handler

9 years agos4-dsdb_schema: Seize using global_schema when referencing new schema for an LDB
Kamen Mazdrashki [Thu, 9 Dec 2010 02:31:14 +0000 (04:31 +0200)]
s4-dsdb_schema: Seize using global_schema when referencing new schema for an LDB

Without this change, when a schema is set to ldb, the
effect is that dsdb_get_schema() returns global_schema
preferably.

Thus we end up with two schemas in effect:
- global one, which is the old one and it is still used everywhere
- new one, which is just cached in ldb, but can't be used, as
  there is no way to access it

9 years agos3-waf: libwbclient does not depend on talloc anymore.
Günther Deschner [Tue, 14 Dec 2010 21:54:01 +0000 (22:54 +0100)]
s3-waf: libwbclient does not depend on talloc anymore.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 15 00:50:08 CET 2010 on sn-devel-104

9 years agos3-waf: add missing libnss_wins.so.2 library.
Günther Deschner [Tue, 14 Dec 2010 21:18:43 +0000 (22:18 +0100)]
s3-waf: add missing libnss_wins.so.2 library.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec 14 23:29:25 CET 2010 on sn-devel-104

9 years agos3-waf: recurse into ../libcli/ldap.
Günther Deschner [Tue, 14 Dec 2010 21:09:44 +0000 (22:09 +0100)]
s3-waf: recurse into ../libcli/ldap.

Guenther

9 years agos3-waf: recurse into ../libcli/smb.
Günther Deschner [Tue, 14 Dec 2010 16:47:46 +0000 (17:47 +0100)]
s3-waf: recurse into ../libcli/smb.

Guenther

9 years agos3-waf: recurse into ../libcli/samsync.
Günther Deschner [Tue, 14 Dec 2010 16:45:33 +0000 (17:45 +0100)]
s3-waf: recurse into ../libcli/samsync.

Guenther

9 years agos3-waf: recurse into ../libcli/named_pipe_auth.
Günther Deschner [Tue, 14 Dec 2010 16:36:06 +0000 (17:36 +0100)]
s3-waf: recurse into ../libcli/named_pipe_auth.

Guenther

9 years agos3-waf: recurse into ../libcli/drsuapi.
Günther Deschner [Tue, 14 Dec 2010 16:33:49 +0000 (17:33 +0100)]
s3-waf: recurse into ../libcli/drsuapi.

Guenther

9 years agos3-waf: add pam_ and nss_winbind.
Günther Deschner [Tue, 14 Dec 2010 16:14:58 +0000 (17:14 +0100)]
s3-waf: add pam_ and nss_winbind.

Guenther

9 years agos3-waf: check for "WITH_PAM_MODULES" to determine pam_smbpass build.
Günther Deschner [Tue, 14 Dec 2010 16:14:30 +0000 (17:14 +0100)]
s3-waf: check for "WITH_PAM_MODULES" to determine pam_smbpass build.

Guenther

9 years agos3-waf: fix pamsmbpass libwbclient dependency.
Günther Deschner [Tue, 14 Dec 2010 16:13:46 +0000 (17:13 +0100)]
s3-waf: fix pamsmbpass libwbclient dependency.

Guenther

9 years agos3-waf: recurse into ../libcli/auth.
Günther Deschner [Tue, 14 Dec 2010 13:03:22 +0000 (14:03 +0100)]
s3-waf: recurse into ../libcli/auth.

Guenther

9 years agos3-waf: add CHARSET subsystem.
Günther Deschner [Tue, 14 Dec 2010 15:47:35 +0000 (16:47 +0100)]
s3-waf: add CHARSET subsystem.

Guenther

9 years agos3-waf: convert UTIL_SRC into a subsystem samba-util, similar to the s4 one.
Günther Deschner [Tue, 14 Dec 2010 12:50:30 +0000 (13:50 +0100)]
s3-waf: convert UTIL_SRC into a subsystem samba-util, similar to the s4 one.

Guenther

9 years agos3-waf: convert lib/util_tdb.c into a subsystem.
Günther Deschner [Tue, 14 Dec 2010 12:27:24 +0000 (13:27 +0100)]
s3-waf: convert lib/util_tdb.c into a subsystem.

Guenther

9 years agos3-waf: use shared LIBASYNC_REQ subsystem.
Günther Deschner [Tue, 14 Dec 2010 12:14:00 +0000 (13:14 +0100)]
s3-waf: use shared LIBASYNC_REQ subsystem.

Guenther

9 years agos4-smbtorture: paranoia check for architectures in request and reply for enumdrivers...
Günther Deschner [Mon, 13 Dec 2010 14:46:05 +0000 (15:46 +0100)]
s4-smbtorture: paranoia check for architectures in request and reply for enumdrivers test.

Guenther

9 years agobuild: fix bad syntax
Matthieu Patou [Tue, 14 Dec 2010 19:04:42 +0000 (22:04 +0300)]
build: fix bad syntax

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue Dec 14 20:55:17 CET 2010 on sn-devel-104

9 years agos4:gensec/spnego: only look at the optimistic token if we support the first mech
Stefan Metzmacher [Wed, 1 Dec 2010 06:02:15 +0000 (07:02 +0100)]
s4:gensec/spnego: only look at the optimistic token if we support the first mech

As a server only try the mechs the client proposed
and only call gensec_update() with the optimistic token
for the first mech in the list.

If the server doesn't support the first mech we pick the
first one in the clients list we also support.
That's how w2k8r2 works.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Dec 14 16:50:50 CET 2010 on sn-devel-104

9 years agos3/net: don't use external "date" to make "net time set" more portable
Björn Jacke [Tue, 14 Dec 2010 12:28:49 +0000 (13:28 +0100)]
s3/net: don't use external "date" to make "net time set" more portable

the "date" syntax is different for example on *BSD

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Dec 14 15:31:03 CET 2010 on sn-devel-104

9 years agowafsamba: change the default value for SAMBA_MODULE of pyembed to False
Matthieu Patou [Tue, 14 Dec 2010 12:38:03 +0000 (15:38 +0300)]
wafsamba: change the default value for SAMBA_MODULE of pyembed to False

ALL SAMBA_MODULE didn't need this, new modules that could need will just
have to opt this in

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue Dec 14 14:45:15 CET 2010 on sn-devel-104

9 years agobuild do not add -no-undefined on openbsd
Matthieu Patou [Mon, 13 Dec 2010 14:41:26 +0000 (17:41 +0300)]
build do not add -no-undefined on openbsd

9 years agoEnsure we use vfs_fsp_stat(), not VFS_STAT directly, and store into fsp->fsp_name->st
Jeremy Allison [Tue, 14 Dec 2010 03:17:57 +0000 (19:17 -0800)]
Ensure we use vfs_fsp_stat(), not VFS_STAT directly, and store into fsp->fsp_name->st
instead of a SMB_STRUCT_STAT on the stack.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 14 05:05:50 CET 2010 on sn-devel-104

9 years agowintest Add testing of kerberos connections to Windows members of an AD domain
Andrew Bartlett [Mon, 13 Dec 2010 23:53:34 +0000 (10:53 +1100)]
wintest Add testing of kerberos connections to Windows members of an AD domain

This improves the Samba3 wintest script to test against Windows7 and
WinXP domain members, and Windows7 standalone servers.  To do this,
more of the samba4 script is put in common, and we splut up the
starting of the VMs from the preperation of the VM.

This also improves the nmblookup command parsing to cope with both the
samba3 and samba4 nmblookup commands.

A krb5.conf is now provided for both s3 and s4 tests.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Dec 14 01:54:46 CET 2010 on sn-devel-104

9 years agos3-libsmb Improve error message when denying LM encryption
Andrew Bartlett [Mon, 13 Dec 2010 01:40:25 +0000 (12:40 +1100)]
s3-libsmb Improve error message when denying LM encryption

Now that 'client ntlmv2 auth = yes' is the default, make it more clear
what options a user may need to enable to get this to work.

Andrew Bartlett

9 years agoChange crediting so that the credits are returned on the interim async response.
Jeremy Allison [Mon, 13 Dec 2010 23:22:47 +0000 (15:22 -0800)]
Change crediting so that the credits are returned on the interim async response.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 14 01:09:05 CET 2010 on sn-devel-104

9 years agoAs we handle missing sendfile() inside lib/sendfile.c, remove the WITH_SENDFILE ifdefs.
Jeremy Allison [Mon, 13 Dec 2010 22:00:34 +0000 (14:00 -0800)]
As we handle missing sendfile() inside lib/sendfile.c, remove the WITH_SENDFILE ifdefs.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec 13 23:47:07 CET 2010 on sn-devel-104

9 years agoWe need to start off with smb2.credits_granted == 0. That way
Jeremy Allison [Mon, 13 Dec 2010 21:34:50 +0000 (13:34 -0800)]
We need to start off with smb2.credits_granted == 0. That way
when processing the faked up SMB2 NegProt from the SMB1 packet we
always allocate one credit on reply.

Jeremy.

9 years agoRemove extra unused credit arg. to smbd_smb2_request_setup_out()
Jeremy Allison [Mon, 13 Dec 2010 21:17:49 +0000 (13:17 -0800)]
Remove extra unused credit arg. to smbd_smb2_request_setup_out()

9 years agos4:dsdb:password_hash: verify content if the BYPASS_PASSWORD_HASH control is used
Stefan Metzmacher [Tue, 7 Dec 2010 15:10:49 +0000 (16:10 +0100)]
s4:dsdb:password_hash: verify content if the BYPASS_PASSWORD_HASH control is used

Make it much harder to import bad data into the password attributes.
This isn't 100% safe, but much better than no checks.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 13 16:17:36 CET 2010 on sn-devel-104

9 years agos4:ldap_controls: allow DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID over sockets.
Stefan Metzmacher [Wed, 1 Dec 2010 19:36:43 +0000 (20:36 +0100)]
s4:ldap_controls: allow DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID over sockets.

The DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID control has to data attached to it.
So we can allow it to be send over LDAP.

We'll accept this control over the privileged ldapi socket only.

metze

9 years agos4:ldap_server: don't call ldb_req_mark_untrusted() on the privileged ldapi socket
Stefan Metzmacher [Wed, 1 Dec 2010 11:18:21 +0000 (12:18 +0100)]
s4:ldap_server: don't call ldb_req_mark_untrusted() on the privileged ldapi socket

metze

9 years agos4:ldap_server: rename helper functions to ldapsrv_ prefix and pass ldapsrv_call
Stefan Metzmacher [Wed, 1 Dec 2010 11:14:22 +0000 (12:14 +0100)]
s4:ldap_server: rename helper functions to ldapsrv_ prefix and pass ldapsrv_call

metze

9 years agos4:dsdb:util: dsdb_get_single_valued_attr() only needs a const ldb_messages
Stefan Metzmacher [Mon, 13 Dec 2010 10:28:59 +0000 (11:28 +0100)]
s4:dsdb:util: dsdb_get_single_valued_attr() only needs a const ldb_messages

metze

9 years agos3-waf: try to fix the build with snow leopard.
Günther Deschner [Mon, 13 Dec 2010 11:56:38 +0000 (12:56 +0100)]
s3-waf: try to fix the build with snow leopard.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 13 15:03:08 CET 2010 on sn-devel-104

9 years agos3:selftest: fix knownfail for samba3.posix_s3.rpc.spoolss.*printserver.enum_printers_old
Stefan Metzmacher [Mon, 13 Dec 2010 11:04:28 +0000 (12:04 +0100)]
s3:selftest: fix knownfail for samba3.posix_s3.rpc.spoolss.*printserver.enum_printers_old

The name is in lowercase since commit 35fbc7bbda5851f7172538f79fc79be201f1d521
(s4-smbtorture: Make test names lowercase and dot-separated.)

This should avoid intermittent failures in make test.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 13 13:52:18 CET 2010 on sn-devel-104

9 years agos4:heimdal_build: replace '+' by '_' for vscripts in HEIMDAL_LIBRARY()
Stefan Metzmacher [Mon, 13 Dec 2010 10:53:03 +0000 (11:53 +0100)]
s4:heimdal_build: replace '+' by '_' for vscripts in HEIMDAL_LIBRARY()

metze

9 years agos3-selftest: support differing VFSLIBDIR in autoconf and waf build.
Günther Deschner [Fri, 10 Dec 2010 16:15:18 +0000 (17:15 +0100)]
s3-selftest: support differing VFSLIBDIR in autoconf and waf build.

With this change make test in the s3 waf build (w/o s4 smbtorture yet) works!

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 13 13:06:05 CET 2010 on sn-devel-104

9 years agos3-waf: add -Wl,--export-dynamic to LDFLAGS.
Günther Deschner [Thu, 9 Dec 2010 14:44:30 +0000 (15:44 +0100)]
s3-waf: add -Wl,--export-dynamic to LDFLAGS.

Our binaries did not export symbols so e.g. smbd could not load vfs modules.
Patch from tridge.

We might remove this later on, once we decide to resolve all symbols and fix all
dependencies in s3 modules.

Guenther

9 years agonss_wrapper: make nss_wrapper.pl executeable.
Günther Deschner [Thu, 9 Dec 2010 14:33:25 +0000 (15:33 +0100)]
nss_wrapper: make nss_wrapper.pl executeable.

Guenther

9 years agobuild: remove -no-undefined and -as-needed on openbsd
Matthieu Patou [Sun, 12 Dec 2010 21:55:08 +0000 (00:55 +0300)]
build: remove -no-undefined and -as-needed on openbsd

This is causing problems with linker

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Dec 13 00:25:38 CET 2010 on sn-devel-104

9 years agos4:dsdb/pydsdb.c - don't throw another exception on "PyObject_AsDn"
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 20:42:30 +0000 (21:42 +0100)]
s4:dsdb/pydsdb.c - don't throw another exception on "PyObject_AsDn"

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Dec 12 23:40:17 CET 2010 on sn-devel-104

9 years agoldb:pyldb.h - revert to the previous header behaviour
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 20:40:03 +0000 (21:40 +0100)]
ldb:pyldb.h - revert to the previous header behaviour

"ldb_private.h" is private and therefore might not always be available.

9 years agobuild: move the import near the place where need it, so that we can build on hosts...
Matthieu Patou [Sun, 12 Dec 2010 20:57:37 +0000 (23:57 +0300)]
build: move the import near the place where need it, so that we can build on hosts with python's zlib

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Dec 12 22:54:19 CET 2010 on sn-devel-104

9 years agos4:scripting/python/pyglue.c - add a OOM handling
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 18:23:53 +0000 (19:23 +0100)]
s4:scripting/python/pyglue.c - add a OOM handling

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Dec 12 20:50:55 CET 2010 on sn-devel-104

9 years agos4:scripting/python/pyglue.c - optimise includes
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 18:23:34 +0000 (19:23 +0100)]
s4:scripting/python/pyglue.c - optimise includes

9 years agos4:param/provision.c - optimise includes
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 18:19:43 +0000 (19:19 +0100)]
s4:param/provision.c - optimise includes

9 years agos4:libcli/finddc.h - fix header dependancies
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 18:13:51 +0000 (19:13 +0100)]
s4:libcli/finddc.h - fix header dependancies

And optimise includes

9 years agos4:libcli/finddcs_nbt.c - optimise headers
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 18:01:23 +0000 (19:01 +0100)]
s4:libcli/finddcs_nbt.c - optimise headers

9 years agos4:libnet/py_net.c - add checks for OOM conditions
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 17:54:56 +0000 (18:54 +0100)]
s4:libnet/py_net.c - add checks for OOM conditions

9 years agos4:dsdb/pydsdb.c and web_server/wsgi.c - remove accidentally introduced Py_RETURN_NONE
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 17:45:07 +0000 (18:45 +0100)]
s4:dsdb/pydsdb.c and web_server/wsgi.c - remove accidentally introduced Py_RETURN_NONE

This was only thought for Python 2.3 which we generally no longer support (only
pyldb in the LDB library is an exception).

9 years agos4:lib/ldb-samba/pyldb.c - optimise includes
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 17:42:58 +0000 (18:42 +0100)]
s4:lib/ldb-samba/pyldb.c - optimise includes

9 years agos4:dsdb/pydsdb.c - clean up memory handling
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 17:31:37 +0000 (18:31 +0100)]
s4:dsdb/pydsdb.c - clean up memory handling

- Remove memory contexts when not really useful (if only one allocation)
- Try to find out OOM conditions and return correct error codes
- Move the parameter parsing always to the beginning (to prevent
  unneeded allocations in case of errors)

9 years agoldb:pyldb - optimise includes
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 16:44:04 +0000 (17:44 +0100)]
ldb:pyldb - optimise includes

9 years agochange searched name from _ss_family to __ss_family
Matthieu Patou [Sun, 12 Dec 2010 18:14:28 +0000 (21:14 +0300)]
change searched name from _ss_family to __ss_family

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Dec 12 20:05:23 CET 2010 on sn-devel-104

9 years agos4:web_server/*.c - optimise includes
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 16:36:16 +0000 (17:36 +0100)]
s4:web_server/*.c - optimise includes

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Dec 12 18:23:05 CET 2010 on sn-devel-104

9 years agos4:web_server/wsgi.c - fix a counter type
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 16:27:36 +0000 (17:27 +0100)]
s4:web_server/wsgi.c - fix a counter type

9 years agos4:web_server/wsgi.c - add missing Python compatibility code
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 16:27:09 +0000 (17:27 +0100)]
s4:web_server/wsgi.c - add missing Python compatibility code

9 years agos4:kdc/*.c - minimise includes
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 13:34:14 +0000 (14:34 +0100)]
s4:kdc/*.c - minimise includes

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Dec 12 15:20:46 CET 2010 on sn-devel-104

9 years agos4:smbd/process*.c - fix PID warnings on Solaris
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 11:33:08 +0000 (12:33 +0100)]
s4:smbd/process*.c - fix PID warnings on Solaris

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Dec 12 13:21:13 CET 2010 on sn-devel-104

9 years agos4:kdc/proxy.c - optimise includes in order to fix a build warning on Tru64
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 11:15:51 +0000 (12:15 +0100)]
s4:kdc/proxy.c - optimise includes in order to fix a build warning on Tru64

9 years agos4:param/loadparm.c - fix a warning by introducing a "const" cast
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 11:07:24 +0000 (12:07 +0100)]
s4:param/loadparm.c - fix a warning by introducing a "const" cast

9 years agos4:kdc/kpasswdd.c - don't return an uninitialised NT_STATUS
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 10:58:59 +0000 (11:58 +0100)]
s4:kdc/kpasswdd.c - don't return an uninitialised NT_STATUS

Discovered by Tru64 build

9 years agobuild: change lib order to fix build on netbsd
Matthieu Patou [Sun, 12 Dec 2010 09:06:31 +0000 (12:06 +0300)]
build: change lib order to fix build on netbsd

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Dec 12 10:54:02 CET 2010 on sn-devel-104

9 years agobuild: add a check for _ss_family as it used on aix to replace ss_family
Matthieu Patou [Sun, 12 Dec 2010 09:05:43 +0000 (12:05 +0300)]
build: add a check for _ss_family as it used on aix to replace ss_family

9 years agoreplace: add comments to make the #ifdef/#else/endif more readable
Matthieu Patou [Sun, 12 Dec 2010 09:04:51 +0000 (12:04 +0300)]
replace: add comments to make the #ifdef/#else/endif more readable

9 years agoselftest-s4: Support listing smbtorture4 tests.
Jelmer Vernooij [Sat, 11 Dec 2010 17:47:11 +0000 (18:47 +0100)]
selftest-s4: Support listing smbtorture4 tests.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 11 19:32:07 CET 2010 on sn-devel-104

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

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

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

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

9 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

9 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 !

9 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

9 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

9 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

9 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

9 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

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

9 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

9 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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

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

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

9 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

9 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

9 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