mdw/samba-autobuild/.git
13 years agos4:lsa RPC server - always initialise "info" structures
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 21:47:21 +0000 (22:47 +0100)]
s4:lsa RPC server - always initialise "info" structures

This should help to fix bug #7769

13 years agos4:lsa RPC server - "dcesrv_lsa_CreateSecret" - a bit of rework
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 19:38:03 +0000 (20:38 +0100)]
s4:lsa RPC server - "dcesrv_lsa_CreateSecret" - a bit of rework

- Added 'out of memory' checks
- Added checks regarding return values
- Switch to "ldb_msg_add_string" where possible

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Dec  3 21:41:39 CET 2010 on sn-devel-104

13 years agos4:libnet/libnet_samsync_ldb,c - move away from "samdb_msg_add_string" when possible
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 19:20:17 +0000 (20:20 +0100)]
s4:libnet/libnet_samsync_ldb,c - move away from "samdb_msg_add_string" when possible

Also here we can move to "ldb_msg_add_string" without any impact!

13 years agos4:libnet_JoinADSDomain - move away from "samdb_msg_add_string"
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 19:09:31 +0000 (20:09 +0100)]
s4:libnet_JoinADSDomain - move away from "samdb_msg_add_string"

These calls can be substituted by "ldb_msg_add_string" without any problems -
only the allocation contexts of the SPNs and the DNS hostnames have to adapted.

13 years agos3-waf: add krb5 configure check for WRFILE_KEYTAB.
Günther Deschner [Wed, 1 Dec 2010 22:15:34 +0000 (23:15 +0100)]
s3-waf: add krb5 configure check for WRFILE_KEYTAB.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec  3 13:54:25 CET 2010 on sn-devel-104

13 years agos3-waf: add krb5 configure checks for enctype 23.
Günther Deschner [Wed, 1 Dec 2010 22:07:41 +0000 (23:07 +0100)]
s3-waf: add krb5 configure checks for enctype 23.

Guenther

13 years agos3-waf: more krb5 configure checks.
Günther Deschner [Wed, 1 Dec 2010 20:26:29 +0000 (21:26 +0100)]
s3-waf: more krb5 configure checks.

Guenther

13 years agotalloc: add ABI/talloc-2.0.4.sigs
Stefan Metzmacher [Fri, 3 Dec 2010 09:40:33 +0000 (10:40 +0100)]
talloc: add ABI/talloc-2.0.4.sigs

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec  3 11:35:45 CET 2010 on sn-devel-104

13 years agos4:auth/sam.c - when printing out a string buffer we don't strictly need the width
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 08:33:57 +0000 (09:33 +0100)]
s4:auth/sam.c - when printing out a string buffer we don't strictly need the width

The precision (maximum numbers of characters) should be enough.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Dec  3 10:26:39 CET 2010 on sn-devel-104

13 years agos4:auth/sam.c - the check for the SAMDB needs to be on the top of the call
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 08:19:42 +0000 (09:19 +0100)]
s4:auth/sam.c - the check for the SAMDB needs to be on the top of the call

Otherwise it's really useless.

13 years agos4:auth/sam.c - fix the free of memory contexts
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 08:18:23 +0000 (09:18 +0100)]
s4:auth/sam.c - fix the free of memory contexts

"tmp_ctx" needs always to be freed ("res" is freed implicitly)

13 years agos4:auth/sam.c - specify the SID ignore case better
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 08:17:01 +0000 (09:17 +0100)]
s4:auth/sam.c - specify the SID ignore case better

As per suggestion by metze.

13 years agowintest: autodetect if named supports tkey-gssapi-keytab
Andrew Tridgell [Fri, 3 Dec 2010 07:02:22 +0000 (18:02 +1100)]
wintest: autodetect if named supports tkey-gssapi-keytab

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Dec  3 08:48:52 CET 2010 on sn-devel-104

13 years agowintest: put most of the main program login in wintest.py
Andrew Tridgell [Fri, 3 Dec 2010 04:31:39 +0000 (15:31 +1100)]
wintest: put most of the main program login in wintest.py

this makes it easier to create new tests

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Dec  3 06:17:44 CET 2010 on sn-devel-104

13 years agowafsamba: Override GIT_DIR without using putenv.
Jelmer Vernooij [Fri, 3 Dec 2010 02:10:27 +0000 (03:10 +0100)]
wafsamba: Override GIT_DIR without using putenv.

putenv has sideffects on later code. This overrides GIT_DIR for just this call.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Dec  3 04:24:53 CET 2010 on sn-devel-104

13 years agotalloc: Bump version number after pytalloc changes.
Jelmer Vernooij [Fri, 3 Dec 2010 02:07:03 +0000 (03:07 +0100)]
talloc: Bump version number after pytalloc changes.

13 years agoReplace lseek()/write()/lseek() triple with pwrite call. We already emulate this
Jeremy Allison [Fri, 3 Dec 2010 01:52:11 +0000 (17:52 -0800)]
Replace lseek()/write()/lseek() triple with pwrite call. We already emulate this
inside pwrite under the covers.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec  3 03:39:42 CET 2010 on sn-devel-104

13 years agoposix_fallocate() returns an errno, not -1 on error.
Jeremy Allison [Fri, 3 Dec 2010 01:46:30 +0000 (17:46 -0800)]
posix_fallocate() returns an errno, not -1 on error.

13 years agoMerge the two conflicting allocation codes into one function, vfs_slow_fallocate()
Jeremy Allison [Fri, 3 Dec 2010 01:26:00 +0000 (17:26 -0800)]
Merge the two conflicting allocation codes into one function, vfs_slow_fallocate()
and use that from both the truncate and fill_sparse functions.

Jeremy.

13 years agoOops. Missed adding vfswrap_posix_fallocate to vfs_default_fns table.
Jeremy Allison [Fri, 3 Dec 2010 00:40:00 +0000 (16:40 -0800)]
Oops. Missed adding vfswrap_posix_fallocate to vfs_default_fns table.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec  3 02:26:23 CET 2010 on sn-devel-104

13 years agoMove posix_fallocate into the VFS where it belongs.
Jeremy Allison [Fri, 3 Dec 2010 00:25:59 +0000 (16:25 -0800)]
Move posix_fallocate into the VFS where it belongs.

Jeremy.

13 years agoFix bug #7835 - vfs_fill_sparse() doesn't use posix_fallocate when strict allocate...
Jeremy Allison [Thu, 2 Dec 2010 23:38:36 +0000 (15:38 -0800)]
Fix bug #7835 - vfs_fill_sparse() doesn't use posix_fallocate when strict allocate is on

Tries posix_fallocate() and then falls back to old code.

Jeremy.

13 years agos4-dsdb/syntax: Map remote ATTIDs for Class OID syntax
Kamen Mazdrashki [Thu, 2 Dec 2010 00:57:06 +0000 (02:57 +0200)]
s4-dsdb/syntax: Map remote ATTIDs for Class OID syntax

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Thu Dec  2 18:47:59 CET 2010 on sn-devel-104

13 years agos4-test/repl_schema: Test class inheritance through subClassOf
Kamen Mazdrashki [Wed, 1 Dec 2010 23:01:20 +0000 (01:01 +0200)]
s4-test/repl_schema: Test class inheritance through subClassOf

13 years agos4-dsdb_syntax: Be a little bit more chatty when we can't an ATTID in our cache
Kamen Mazdrashki [Wed, 1 Dec 2010 22:32:10 +0000 (00:32 +0200)]
s4-dsdb_syntax: Be a little bit more chatty when we can't an ATTID in our cache

13 years agos4-test/fsmo: Remove unused imports
Kamen Mazdrashki [Wed, 1 Dec 2010 22:30:46 +0000 (00:30 +0200)]
s4-test/fsmo: Remove unused imports

13 years agos4-test/delete_object: Remove unused imports
Kamen Mazdrashki [Wed, 1 Dec 2010 19:13:54 +0000 (21:13 +0200)]
s4-test/delete_object: Remove unused imports

13 years agos4-test/repl_schema: Make ERR_NO_SUCH_OBJECT visible to us
Kamen Mazdrashki [Wed, 1 Dec 2010 19:01:47 +0000 (21:01 +0200)]
s4-test/repl_schema: Make ERR_NO_SUCH_OBJECT visible to us

We've lost this import somehow, now it is back in :)

13 years agos4-test/repl_schema: Test classSchema and attributeSchema replication in separate...
Kamen Mazdrashki [Wed, 1 Dec 2010 18:22:06 +0000 (20:22 +0200)]
s4-test/repl_schema: Test classSchema and attributeSchema replication in separate tests

13 years agos4-dsdb/descriptor: comment typo
Kamen Mazdrashki [Wed, 1 Dec 2010 18:16:00 +0000 (20:16 +0200)]
s4-dsdb/descriptor: comment typo

13 years agos4:auth/sam.c-"authsam_expand_nested_groups" - don't fail if we've memberships on...
Matthias Dieter Wallnöfer [Thu, 2 Dec 2010 11:23:53 +0000 (12:23 +0100)]
s4:auth/sam.c-"authsam_expand_nested_groups" - don't fail if we've memberships on non-SAM objects

This can be expected (think at a membership of a "groupOfNames" group) and we
shouldn't blame about it.

This fixes a bug reported on the technical mailing list.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Dec  2 17:17:56 CET 2010 on sn-devel-104

13 years agos4:dsdb/samdb/cracknames.c - fix various KRB5 memory leaks
Matthias Dieter Wallnöfer [Thu, 2 Dec 2010 10:49:56 +0000 (11:49 +0100)]
s4:dsdb/samdb/cracknames.c - fix various KRB5 memory leaks

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Dec  2 12:35:03 CET 2010 on sn-devel-104

13 years agos4:password_hash LDB module - allow empty ("") passwords
Matthias Dieter Wallnöfer [Thu, 2 Dec 2010 08:55:56 +0000 (09:55 +0100)]
s4:password_hash LDB module - allow empty ("") passwords

This seems to have been broken some time ago - till someone on the
mailing list noticed it.

I've also added a testsuite (and some additional SamDB python helpers) which
should prove this.

13 years agos4/scripting/ktpass: make shell code portable and eliminate another bash requirement
Björn Jacke [Thu, 2 Dec 2010 09:34:34 +0000 (10:34 +0100)]
s4/scripting/ktpass: make shell code portable and eliminate another bash requirement

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Thu Dec  2 11:20:42 CET 2010 on sn-devel-104

13 years agos4/ldb: fix shell syntax error in test script
Björn Jacke [Thu, 2 Dec 2010 09:29:18 +0000 (10:29 +0100)]
s4/ldb: fix shell syntax error in test script

13 years agos3/selftest: add some FIXMEs
Björn Jacke [Thu, 2 Dec 2010 09:24:52 +0000 (10:24 +0100)]
s3/selftest: add some FIXMEs

this needs some rework. Sourced shell code cannot take arguments, at least no
portable shell. This generates errors on the buildfarm sind quite a while.

13 years agotests: avoid bash in shebang and fix wrong "==" in test
Björn Jacke [Thu, 2 Dec 2010 09:20:59 +0000 (10:20 +0100)]
tests: avoid bash in shebang and fix wrong "==" in test

13 years agofix ѕome == to correct shell test in commented stuff
Björn Jacke [Thu, 2 Dec 2010 09:18:39 +0000 (10:18 +0100)]
fix ѕome == to correct shell test in commented stuff

13 years agosmbprinting: fix wrong == in shell tests
Björn Jacke [Thu, 2 Dec 2010 09:16:38 +0000 (10:16 +0100)]
smbprinting: fix wrong == in shell tests

13 years agowaf/buildtools: remove more bash shebangs and fix a == to =
Björn Jacke [Thu, 2 Dec 2010 09:14:07 +0000 (10:14 +0100)]
waf/buildtools: remove more bash shebangs and fix a == to =

13 years agowaf/buildtools: use /bin/sh instead of /bin/bash and put ^ in quotes
Björn Jacke [Thu, 2 Dec 2010 08:40:21 +0000 (09:40 +0100)]
waf/buildtools: use /bin/sh instead of /bin/bash and put ^ in quotes

- some Unix shells actually don't like grep ^foo, use grep "^foo" instead.

- bash is not installed on every system, please avoid #!/bin/bash and
  use #!/bin/sh instead

13 years agobuildtools: fix --git-local-changes option
Stefan Metzmacher [Thu, 2 Dec 2010 00:58:10 +0000 (01:58 +0100)]
buildtools: fix --git-local-changes option

If we set the GIT_DIR envvar we also need to set GIT_WORK_TREE,
otherwise we can't expect valid output from 'git diff HEAD'.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec  2 09:09:21 CET 2010 on sn-devel-104

13 years agoTurns out there are lots of places in S3 where token passed in
Jeremy Allison [Thu, 2 Dec 2010 01:39:30 +0000 (17:39 -0800)]
Turns out there are lots of places in S3 where token passed in
here can be NULL (become_root() sets the current security token to
NULL for example). Ensure we don't crash.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec  2 03:26:03 CET 2010 on sn-devel-104

13 years agoFix a typo - should be '&&' not '&' when checking for privileges.
Jeremy Allison [Thu, 2 Dec 2010 01:29:05 +0000 (17:29 -0800)]
Fix a typo - should be '&&' not '&' when checking for privileges.

Jeremy.

13 years agowintest: added README
Andrew Tridgell [Thu, 2 Dec 2010 00:13:52 +0000 (11:13 +1100)]
wintest: added README

this points at the wiki page

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Dec  2 02:05:32 CET 2010 on sn-devel-104

13 years agos3:smbd: remove some commented out legacy code
Michael Adam [Thu, 28 Oct 2010 11:58:31 +0000 (13:58 +0200)]
s3:smbd: remove some commented out legacy code

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Dec  2 01:18:19 CET 2010 on sn-devel-104

13 years agos4-ldap: removed an incorrect talloc_move()
Andrew Tridgell [Wed, 1 Dec 2010 12:54:38 +0000 (23:54 +1100)]
s4-ldap: removed an incorrect talloc_move()

the parent of this session_info is either the stream_connection, or
its a system_session(). In either case reparenting it on the
ldapsrv_connection doesn't achieve anything that I can see.

The move was causing a steal on reference error because the
session_info often has multiple references.

Thanks to Metze for spotting this.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Dec  1 22:10:42 CET 2010 on sn-devel-104

13 years agos3-waf: more krb5 configure checks.
Günther Deschner [Wed, 1 Dec 2010 14:04:55 +0000 (15:04 +0100)]
s3-waf: more krb5 configure checks.

Guenther

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

13 years agos3-waf: add configure check for dirfd and build vfs_syncops vfs_dirsort if possible.
Günther Deschner [Wed, 1 Dec 2010 12:24:55 +0000 (13:24 +0100)]
s3-waf: add configure check for dirfd and build vfs_syncops vfs_dirsort if possible.

Guenther

13 years agos3-waf: add idmap_ldap to default static module list.
Günther Deschner [Wed, 1 Dec 2010 12:02:15 +0000 (13:02 +0100)]
s3-waf: add idmap_ldap to default static module list.

Guenther

13 years agos3-waf: align some krb5/gssapi configure checks with classic build.
Günther Deschner [Wed, 1 Dec 2010 11:48:15 +0000 (12:48 +0100)]
s3-waf: align some krb5/gssapi configure checks with classic build.

Guenther

13 years agos3-waf: avoid module name uppercasing.
Günther Deschner [Wed, 1 Dec 2010 11:10:03 +0000 (12:10 +0100)]
s3-waf: avoid module name uppercasing.

This finally allows mixed case module names like the classic build
(./configure --shared_modules=charset_CP850)

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec  1 18:39:14 CET 2010 on sn-devel-104

13 years agos4:dsdb/repl/replicated_objects.c - proof if "talloc_reference" doesn't return NULL
Matthias Dieter Wallnöfer [Wed, 1 Dec 2010 15:28:57 +0000 (16:28 +0100)]
s4:dsdb/repl/replicated_objects.c - proof if "talloc_reference" doesn't return NULL

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Dec  1 17:14:01 CET 2010 on sn-devel-104

13 years agos4:dsdb/common/util.c - "samdb_msg_add_add/delval" - introduce also here the better...
Matthias Dieter Wallnöfer [Wed, 1 Dec 2010 15:22:15 +0000 (16:22 +0100)]
s4:dsdb/common/util.c - "samdb_msg_add_add/delval" - introduce also here the better memory context

"msg->elements" fits better than "msg".

13 years agoldb:ldb_msg_add_value - fix here a wrong memory context
Matthias Dieter Wallnöfer [Wed, 1 Dec 2010 15:19:17 +0000 (16:19 +0100)]
ldb:ldb_msg_add_value - fix here a wrong memory context

A value array allocation should belong to "msg->elements" not "msg" directly

13 years agos4:ranged results LDB module - cosmetic - fix some indentation
Matthias Dieter Wallnöfer [Wed, 1 Dec 2010 15:15:56 +0000 (16:15 +0100)]
s4:ranged results LDB module - cosmetic - fix some indentation

13 years agos4:ranged results LDB module - "rr_search_callback" - change some memory context
Matthias Dieter Wallnöfer [Wed, 1 Dec 2010 15:14:01 +0000 (16:14 +0100)]
s4:ranged results LDB module - "rr_search_callback" - change some memory context

"el->values" could under some circumstances be NULL (see "if" above).

13 years agos4/waf: add intl dependency for nss_winnbind
Björn Jacke [Wed, 1 Dec 2010 14:26:11 +0000 (15:26 +0100)]
s4/waf: add intl dependency for nss_winnbind

needed to fix a build issue on NetBSD and other platforms

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Wed Dec  1 16:15:19 CET 2010 on sn-devel-104

13 years agos4-test/schema: Extend the test to replicate a Class with Attribute with "mayContain...
Kamen Mazdrashki [Tue, 30 Nov 2010 10:17:03 +0000 (12:17 +0200)]
s4-test/schema: Extend the test to replicate a Class with Attribute with "mayContain" relation

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec  1 13:30:45 CET 2010 on sn-devel-104

13 years agos4-dsdb/syntax: Map remote ATTIDs for Attribute OID syntax
Kamen Mazdrashki [Tue, 30 Nov 2010 10:15:53 +0000 (12:15 +0200)]
s4-dsdb/syntax: Map remote ATTIDs for Attribute OID syntax

13 years agos4-dsdb/syntax: Implement Remote-ATTID to Local-ATTID mapping function
Kamen Mazdrashki [Tue, 30 Nov 2010 10:13:16 +0000 (12:13 +0200)]
s4-dsdb/syntax: Implement Remote-ATTID to Local-ATTID mapping function

13 years agos4-dreplsrv: Use working_schema when replicating from Schema NC
Kamen Mazdrashki [Mon, 29 Nov 2010 23:38:16 +0000 (01:38 +0200)]
s4-dreplsrv: Use working_schema when replicating from Schema NC

Schema is changed and it is quite possible we won't be able
to decode replicated objects using current Schema cache we have.

Thus, when replicating Schema, we will make a temporary Schema
cache, working_schema, so that we can fully decode objects
we recieve.

13 years agos4-dsdb/schema: Implement multi-pass working schema creation function
Kamen Mazdrashki [Mon, 29 Nov 2010 12:00:42 +0000 (14:00 +0200)]
s4-dsdb/schema: Implement multi-pass working schema creation function

It is heavily based on implementation in libnet_vampire_cb_apply_schema()
function, except that it actually creates a new copy of the supplied
initial_schema + resolving all incoming objects and add them to
supplied initial_schema.

We are going to need this 'working_schema' later so we are able
to fully resolve all objects we receive on wire during DRS replication.

Working schema created is to be used only as an index to search in.
It is not supposed to be set to an ldb_context as it doesn't
contain all information for classSchema and attributeSchema objects.

13 years agos4-dsdb/schema: Add Schema shallow copy function
Kamen Mazdrashki [Mon, 29 Nov 2010 11:28:33 +0000 (13:28 +0200)]
s4-dsdb/schema: Add Schema shallow copy function

13 years agos4-dsdb/prefixMap: Add prefixMap shallow copy function
Kamen Mazdrashki [Mon, 29 Nov 2010 11:28:00 +0000 (13:28 +0200)]
s4-dsdb/prefixMap: Add prefixMap shallow copy function

13 years agos4-repl: Let dsdb_replicated_objects_convert() to accept schema from caller
Kamen Mazdrashki [Fri, 26 Nov 2010 00:38:39 +0000 (02:38 +0200)]
s4-repl: Let dsdb_replicated_objects_convert() to accept schema from caller

This allows us to use schema that is different than the one
set to 'ldb' to decode objects.

13 years agos4-ranged_result.c: Fix memory context for ranged attributes handling
Kamen Mazdrashki [Wed, 1 Dec 2010 09:04:19 +0000 (11:04 +0200)]
s4-ranged_result.c: Fix memory context for ranged attributes handling

Pair-Programmed-With: Zahari Zahariev <zahari.zahariev@postpath.com>

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec  1 11:45:48 CET 2010 on sn-devel-104

13 years agos3 docs: Reword posix locking text to answer a common question
Kai Blin [Tue, 30 Nov 2010 14:58:05 +0000 (15:58 +0100)]
s3 docs: Reword posix locking text to answer a common question

vl recently pointed me to a valid reason to use posix locking = no.
Fix the smb.conf manpage to explain this reason, as this question
comes up on the samba mailing list from time to time as well.

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Wed Dec  1 10:37:30 CET 2010 on sn-devel-104

13 years agos3: Attempt to please autobuild
Volker Lendecke [Wed, 1 Dec 2010 06:57:38 +0000 (07:57 +0100)]
s3: Attempt to please autobuild

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Dec  1 08:43:37 CET 2010 on sn-devel-104

13 years agos3: Fix a typo
Volker Lendecke [Tue, 30 Nov 2010 21:59:13 +0000 (22:59 +0100)]
s3: Fix a typo

13 years agos3: Attempt to fix the shadow_copy2 module
Volker Lendecke [Tue, 30 Nov 2010 21:57:00 +0000 (22:57 +0100)]
s3: Attempt to fix the shadow_copy2 module

This module is from hell. Please make 100% sure that you did test it
properly when touching it! This module has probably given me more grey
hair than any other piece of Samba, so PLEASE PLEASE PLEASE be careful here!!!

13 years agos4-drs: cope with invalid NTDS DNs from DsReplicaInfo()
Andrew Tridgell [Wed, 1 Dec 2010 05:40:17 +0000 (16:40 +1100)]
s4-drs: cope with invalid NTDS DNs from DsReplicaInfo()

w2k3 sometimes returns a deleted DN

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Dec  1 07:48:19 CET 2010 on sn-devel-104

13 years agowintest: cope with w2k3 form of dcdiag output
Andrew Tridgell [Wed, 1 Dec 2010 05:34:16 +0000 (16:34 +1100)]
wintest: cope with w2k3 form of dcdiag output

13 years agowintest Move stopping of BIND into a new step
Andrew Bartlett [Wed, 1 Dec 2010 04:34:19 +0000 (15:34 +1100)]
wintest Move stopping of BIND into a new step

We must run this early, to ensure that BIND isn't alive to write to
the zone file after provision has cleaned it up.

Andrew Bartlett

13 years agos4:heimdal: import lorikeet-heimdal-201012010201 (commit 81fe27bcc0148d410ca4617f8759...
Andrew Bartlett [Mon, 29 Nov 2010 00:24:08 +0000 (11:24 +1100)]
s4:heimdal: import lorikeet-heimdal-201012010201 (commit 81fe27bcc0148d410ca4617f8759b9df1a5e935c)

13 years agowintest: make command matching case insensitive by default
Andrew Tridgell [Wed, 1 Dec 2010 05:07:56 +0000 (16:07 +1100)]
wintest: make command matching case insensitive by default

the new BASEDN changes break the RODC join otherwise

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Dec  1 06:54:13 CET 2010 on sn-devel-104

13 years agowintest: we don't need the WIN_BASEDN vars any more
Andrew Tridgell [Wed, 1 Dec 2010 04:08:33 +0000 (15:08 +1100)]
wintest: we don't need the WIN_BASEDN vars any more

they are based on the realm now

13 years agowintest: fixed formatting of wintest in emacs python mode
Andrew Tridgell [Wed, 1 Dec 2010 04:08:15 +0000 (15:08 +1100)]
wintest: fixed formatting of wintest in emacs python mode

13 years agowintest Wipe the BIND data directory just before we restart bind
Andrew Bartlett [Tue, 30 Nov 2010 23:07:38 +0000 (10:07 +1100)]
wintest Wipe the BIND data directory just before we restart bind

This will hopefully mean we don't end up with stale zone info in the
new server.

Andrew Bartlett

13 years agowintest Another way to work out if a Windows machine is a DC
Andrew Bartlett [Tue, 30 Nov 2010 10:18:34 +0000 (21:18 +1100)]
wintest Another way to work out if a Windows machine is a DC

it's not perfect (may fail on member servers) but it's picks up the
difference between standalone and DC OK.

Andrew Bartlett

13 years agowintest Add more retries and fix up RODC handling after auto-dcpromo
Andrew Bartlett [Tue, 30 Nov 2010 05:00:15 +0000 (16:00 +1100)]
wintest Add more retries and fix up RODC handling after auto-dcpromo

The extra looping allows some time for the system to settle down while
we connect to the server for the first time.

Andrew Bartlett

13 years agowintest Allow 'samba-tool newuser' to run a few times waiting for the RID Set
Andrew Bartlett [Tue, 30 Nov 2010 01:48:51 +0000 (12:48 +1100)]
wintest Allow 'samba-tool newuser' to run a few times waiting for the RID Set

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

13 years agos4-samba-tool Show when we have created the user successfully
Andrew Bartlett [Tue, 30 Nov 2010 01:48:30 +0000 (12:48 +1100)]
s4-samba-tool Show when we have created the user successfully

13 years agowintest Make the new --vms option default to running all tests.
Andrew Bartlett [Tue, 30 Nov 2010 01:37:01 +0000 (12:37 +1100)]
wintest Make the new --vms option default to running all tests.

Andrew Bartlett

13 years agowintest Set WIN_LCREALM and WIN_BASEDN automatically
Andrew Bartlett [Tue, 30 Nov 2010 00:58:05 +0000 (11:58 +1100)]
wintest Set WIN_LCREALM and WIN_BASEDN automatically

Also this uppper cases WIN_REALM, to avoid this being sensitive based
on the configuration file.

Andrew Bartlett

13 years agowintest Add a function to shut down all the managed VMs at the start
Andrew Bartlett [Tue, 30 Nov 2010 00:55:32 +0000 (11:55 +1100)]
wintest Add a function to shut down all the managed VMs at the start

This helps ensure that old virtual machines don't interfer with a new
test run.

Andrew Bartlett

13 years agowintest Fix case of BASEDN variables
Andrew Bartlett [Mon, 29 Nov 2010 11:30:41 +0000 (22:30 +1100)]
wintest Fix case of BASEDN variables

This needs to be automatically calculated.

Andrew Bartlett

13 years agowintest Add automatic dcpromo is the host isn't a DC yet
Andrew Bartlett [Mon, 29 Nov 2010 08:03:34 +0000 (19:03 +1100)]
wintest Add automatic dcpromo is the host isn't a DC yet

This is slow, and requires an extra reboot, but should be consistent
and reproducible.

Andrew Bartlett

13 years agowintest Add more VMs and correct titles
Andrew Bartlett [Mon, 29 Nov 2010 08:02:56 +0000 (19:02 +1100)]
wintest Add more VMs and correct titles

13 years agowintest: cope with delays in w2k3 starting its DRS server
Andrew Tridgell [Wed, 1 Dec 2010 04:00:50 +0000 (15:00 +1100)]
wintest: cope with delays in w2k3 starting its DRS server

w2k3 brings up its DRS server quite a long time after its other
services

13 years agos4-drs: the options attribute is optional on NTDSDSA objects
Andrew Tridgell [Wed, 1 Dec 2010 03:31:04 +0000 (14:31 +1100)]
s4-drs: the options attribute is optional on NTDSDSA objects

13 years agowintest: wait for the windows DC to register its DNS name
Andrew Tridgell [Wed, 1 Dec 2010 03:27:07 +0000 (14:27 +1100)]
wintest: wait for the windows DC to register its DNS name

after a windows DC uses dcpromo to join our domain, it can take a
while for it to register its DNS name

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

13 years agos4-provision: remove the disabled bit in the dns-$HOSTNAME account
Andrew Tridgell [Wed, 1 Dec 2010 02:54:29 +0000 (13:54 +1100)]
s4-provision: remove the disabled bit in the dns-$HOSTNAME account

13 years agowintest: fixed casefold handling in expect calls
Andrew Tridgell [Wed, 1 Dec 2010 02:24:35 +0000 (13:24 +1100)]
wintest: fixed casefold handling in expect calls

13 years agowaf: less verbose message for failing to resolve a syslib path
Andrew Tridgell [Wed, 1 Dec 2010 00:42:35 +0000 (11:42 +1100)]
waf: less verbose message for failing to resolve a syslib path

13 years agowaf: use Logs.warn() instead of print() in the symbol check code
Andrew Tridgell [Wed, 1 Dec 2010 00:28:26 +0000 (11:28 +1100)]
waf: use Logs.warn() instead of print() in the symbol check code

13 years agopygensec: Fix initialization.
Jelmer Vernooij [Wed, 1 Dec 2010 00:13:20 +0000 (01:13 +0100)]
pygensec: Fix initialization.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Dec  1 02:33:06 CET 2010 on sn-devel-104

13 years agopytalloc: Make py_talloc_default_cmp private.
Jelmer Vernooij [Tue, 30 Nov 2010 23:19:37 +0000 (00:19 +0100)]
pytalloc: Make py_talloc_default_cmp private.

13 years agopytalloc: Make py_talloc_dealloc private.
Jelmer Vernooij [Tue, 30 Nov 2010 23:14:27 +0000 (00:14 +0100)]
pytalloc: Make py_talloc_dealloc private.

13 years agopytalloc: Make py_talloc_default_repr private (now exposed by talloc.Object).
Jelmer Vernooij [Tue, 30 Nov 2010 23:07:11 +0000 (00:07 +0100)]
pytalloc: Make py_talloc_default_repr private (now exposed by talloc.Object).