Björn Jacke [Thu, 2 Dec 2010 09:18:39 +0000 (10:18 +0100)]
fix ѕome == to correct shell test in commented stuff
Björn Jacke [Thu, 2 Dec 2010 09:16:38 +0000 (10:16 +0100)]
smbprinting: fix wrong == in shell tests
Björn Jacke [Thu, 2 Dec 2010 09:14:07 +0000 (10:14 +0100)]
waf/buildtools: remove more bash shebangs and fix a == to =
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
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
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
Jeremy Allison [Thu, 2 Dec 2010 01:29:05 +0000 (17:29 -0800)]
Fix a typo - should be '&&' not '&' when checking for privileges.
Jeremy.
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
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
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
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
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
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
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
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
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
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".
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
Matthias Dieter Wallnöfer [Wed, 1 Dec 2010 15:15:56 +0000 (16:15 +0100)]
s4:ranged results LDB module - cosmetic - fix some indentation
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).
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
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
Kamen Mazdrashki [Tue, 30 Nov 2010 10:15:53 +0000 (12:15 +0200)]
s4-dsdb/syntax: Map remote ATTIDs for Attribute OID syntax
Kamen Mazdrashki [Tue, 30 Nov 2010 10:13:16 +0000 (12:13 +0200)]
s4-dsdb/syntax: Implement Remote-ATTID to Local-ATTID mapping function
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.
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.
Kamen Mazdrashki [Mon, 29 Nov 2010 11:28:33 +0000 (13:28 +0200)]
s4-dsdb/schema: Add Schema shallow copy function
Kamen Mazdrashki [Mon, 29 Nov 2010 11:28:00 +0000 (13:28 +0200)]
s4-dsdb/prefixMap: Add prefixMap shallow copy function
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.
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
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
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
Volker Lendecke [Tue, 30 Nov 2010 21:59:13 +0000 (22:59 +0100)]
s3: Fix a typo
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!!!
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
Andrew Tridgell [Wed, 1 Dec 2010 05:34:16 +0000 (16:34 +1100)]
wintest: cope with w2k3 form of dcdiag output
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
Andrew Bartlett [Mon, 29 Nov 2010 00:24:08 +0000 (11:24 +1100)]
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
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
Andrew Tridgell [Wed, 1 Dec 2010 04:08:15 +0000 (15:08 +1100)]
wintest: fixed formatting of wintest in emacs python mode
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
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
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
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>
Andrew Bartlett [Tue, 30 Nov 2010 01:48:30 +0000 (12:48 +1100)]
s4-samba-tool Show when we have created the user successfully
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
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
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
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
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
Andrew Bartlett [Mon, 29 Nov 2010 08:02:56 +0000 (19:02 +1100)]
wintest Add more VMs and correct titles
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
Andrew Tridgell [Wed, 1 Dec 2010 03:31:04 +0000 (14:31 +1100)]
s4-drs: the options attribute is optional on NTDSDSA objects
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>
Andrew Tridgell [Wed, 1 Dec 2010 02:54:29 +0000 (13:54 +1100)]
s4-provision: remove the disabled bit in the dns-$HOSTNAME account
Andrew Tridgell [Wed, 1 Dec 2010 02:24:35 +0000 (13:24 +1100)]
wintest: fixed casefold handling in expect calls
Andrew Tridgell [Wed, 1 Dec 2010 00:42:35 +0000 (11:42 +1100)]
waf: less verbose message for failing to resolve a syslib path
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
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
Jelmer Vernooij [Tue, 30 Nov 2010 23:19:37 +0000 (00:19 +0100)]
pytalloc: Make py_talloc_default_cmp private.
Jelmer Vernooij [Tue, 30 Nov 2010 23:14:27 +0000 (00:14 +0100)]
pytalloc: Make py_talloc_dealloc private.
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).
Jelmer Vernooij [Tue, 30 Nov 2010 23:05:05 +0000 (00:05 +0100)]
pyparam: Use talloc.Object.
Jelmer Vernooij [Tue, 30 Nov 2010 23:03:08 +0000 (00:03 +0100)]
pyregistry: Use talloc.Object.
Jelmer Vernooij [Tue, 30 Nov 2010 23:03:00 +0000 (00:03 +0100)]
pyauth: Use talloc.Object.
Jelmer Vernooij [Tue, 30 Nov 2010 23:02:53 +0000 (00:02 +0100)]
pygensec: Use talloc.Object.
Jelmer Vernooij [Tue, 30 Nov 2010 23:02:19 +0000 (00:02 +0100)]
pycredentials: Use talloc.Object.
Jelmer Vernooij [Tue, 30 Nov 2010 23:01:51 +0000 (00:01 +0100)]
pytalloc: Expose PyTalloc_GetObjectType
Jelmer Vernooij [Tue, 30 Nov 2010 22:48:46 +0000 (23:48 +0100)]
pidl/python: Allow import of talloc, even though it doesn't live in the
samba.dcerpc. namespace.
Jelmer Vernooij [Tue, 30 Nov 2010 22:06:32 +0000 (23:06 +0100)]
pidl: Allow more flexibility importing modules using convenience function.
Jelmer Vernooij [Tue, 30 Nov 2010 21:59:51 +0000 (22:59 +0100)]
pytalloc: Add convenience function for checking if something is a talloc
object.
Jelmer Vernooij [Tue, 30 Nov 2010 21:59:32 +0000 (22:59 +0100)]
pidl: Base new objects off of talloc object.
Andrew Tridgell [Tue, 30 Nov 2010 22:57:50 +0000 (09:57 +1100)]
waf: added a help target for the other waf builds
this lets the s3 waf build use "make help"
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Dec 1 01:47:50 CET 2010 on sn-devel-104
Andrew Tridgell [Tue, 30 Nov 2010 22:56:29 +0000 (09:56 +1100)]
s4-build: added a 'make help' target
Andrew Tridgell [Tue, 30 Nov 2010 02:24:01 +0000 (13:24 +1100)]
s4-provision: fixed check for missing msDS-SupportedEncryptionTypes
thanks to Jelmer for spotting this
Andrew Tridgell [Tue, 30 Nov 2010 00:55:48 +0000 (11:55 +1100)]
wintest: make expect calls case insensitive by default
Andrew Tridgell [Tue, 30 Nov 2010 00:54:55 +0000 (11:54 +1100)]
wintest: added --vms option
this allows you to run tests associated with a specified list of VMs
Andrew Tridgell [Mon, 29 Nov 2010 22:56:30 +0000 (09:56 +1100)]
heimdal: fix for w2000 from lha
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Dec 1 00:59:59 CET 2010 on sn-devel-104
Andrew Tridgell [Tue, 30 Nov 2010 04:23:39 +0000 (15:23 +1100)]
s4-dns: catch all DNS exceptions in samba_dnsupdate
Andrew Bartlett [Tue, 30 Nov 2010 07:04:42 +0000 (18:04 +1100)]
s4-smb_server Return why the ntvfs_connect() failed.
Andrew Bartlett
Andrew Bartlett [Tue, 30 Nov 2010 04:59:04 +0000 (15:59 +1100)]
s4-librpc Handle all types of GUID in the GUID() initialiser
By taking a length-limited string, we can parse binary and string GUID
values, which is particularly useful when reading from ldb.
Andrew Bartlett
Günther Deschner [Tue, 30 Nov 2010 22:06:53 +0000 (23:06 +0100)]
s3-waf: convert RPC_LSARPC into a subsystem.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 1 00:13:58 CET 2010 on sn-devel-104
Günther Deschner [Tue, 30 Nov 2010 22:04:23 +0000 (23:04 +0100)]
s3-waf: convert RPC_SAMR into a subsystem.
Guenther
Günther Deschner [Tue, 30 Nov 2010 21:41:41 +0000 (22:41 +0100)]
s3-waf: convert INIT_SAMR into a subsystem.
Guenther
Günther Deschner [Tue, 30 Nov 2010 21:37:37 +0000 (22:37 +0100)]
s3-waf: convert INIT_NETLOGON into a subsystem.
Guenther
Günther Deschner [Tue, 30 Nov 2010 21:34:54 +0000 (22:34 +0100)]
s3-waf: convert INIT_LSA into a subsystem.
Guenther
Jelmer Vernooij [Tue, 30 Nov 2010 21:22:15 +0000 (22:22 +0100)]
talloc: Add talloc object.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Nov 30 23:26:56 CET 2010 on sn-devel-104
Günther Deschner [Tue, 30 Nov 2010 20:50:56 +0000 (21:50 +0100)]
s3-waf: fix LIBNBT deps.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Nov 30 22:39:05 CET 2010 on sn-devel-104
Günther Deschner [Tue, 30 Nov 2010 20:46:31 +0000 (21:46 +0100)]
s3-waf: convert IDMAP_AD into a subsystem.
Guenther
Günther Deschner [Tue, 30 Nov 2010 20:44:25 +0000 (21:44 +0100)]
s3-waf: convert IDMAP_HASH into a subsystem.
Guenther
Günther Deschner [Tue, 30 Nov 2010 20:42:17 +0000 (21:42 +0100)]
s3-waf: convert IDMAP_ADEX into a subsystem.
Guenther
Günther Deschner [Tue, 30 Nov 2010 18:05:36 +0000 (19:05 +0100)]
s3-waf: no need to compile ../librpc/ndr/ndr_compression.c twice.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Nov 30 19:52:59 CET 2010 on sn-devel-104
Günther Deschner [Tue, 30 Nov 2010 18:00:09 +0000 (19:00 +0100)]
s3-waf: use LIBCLI_NDR_NETLOGON.
Guenther
Günther Deschner [Tue, 30 Nov 2010 17:56:26 +0000 (18:56 +0100)]
s3-waf: convert LIBNBT into a subsystem.
Guenther
Günther Deschner [Tue, 30 Nov 2010 17:52:21 +0000 (18:52 +0100)]
s3-waf: convert SPNEGO_PARSE into a subsystem.
Guenther
Günther Deschner [Tue, 30 Nov 2010 17:48:38 +0000 (18:48 +0100)]
s3-waf: use SLCACHE in ntlm_auth.
Guenther
Günther Deschner [Tue, 30 Nov 2010 17:40:30 +0000 (18:40 +0100)]
s3-waf: use TLDAP in smbtorture.
Guenther
Günther Deschner [Tue, 30 Nov 2010 17:17:40 +0000 (18:17 +0100)]
s3-waf: convert NPA_TSTREAM into a subsystem.
Guenther
Günther Deschner [Tue, 30 Nov 2010 17:07:21 +0000 (18:07 +0100)]
s3-waf: add LIBDRSUAPI subsystem.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Nov 30 18:58:42 CET 2010 on sn-devel-104