kamenim/samba.git
13 years agoWIP: s4-libnet_vampire: Delay resolving for certain attributes while libnet-vampire-exchange
Kamen Mazdrashki [Sun, 5 Dec 2010 21:15:19 +0000 (23:15 +0200)]
WIP: s4-libnet_vampire: Delay resolving for certain attributes while

building working Schema.
We don't need all attribute values at this stage as
we are going to do another conversion cycle later.

13 years agoECLIPSE + PyDev Project - 10.04
Kamen Mazdrashki [Wed, 6 Jan 2010 11:36:27 +0000 (13:36 +0200)]
ECLIPSE + PyDev Project - 10.04

13 years agoUpdated french translations from Jean Delvare <jdelvare@suse.de>
Holger Hetterich [Sat, 4 Dec 2010 16:28:12 +0000 (11:28 -0500)]
Updated french translations from Jean Delvare <jdelvare@suse.de>

Autobuild-User: Jim McDonough <jmcd@samba.org>
Autobuild-Date: Sat Dec  4 18:23:54 CET 2010 on sn-devel-104

13 years agos4:dsdb/samdb/cracknames.c - fix another memory leak
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 15:39:01 +0000 (16:39 +0100)]
s4:dsdb/samdb/cracknames.c - fix another memory leak

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

13 years agos4:kdc/kpasswdd.c - fix memory leaks
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 15:38:45 +0000 (16:38 +0100)]
s4:kdc/kpasswdd.c - fix memory leaks

13 years agos4:auth/gensec/gensec_krb5.c - fix/reorder memory free operations
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 15:38:02 +0000 (16:38 +0100)]
s4:auth/gensec/gensec_krb5.c - fix/reorder memory free operations

To prevent memory leaks

13 years agos4:auth/gensec/gensec_krb5.c - remove a pointless "nt_status" test
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 15:36:27 +0000 (16:36 +0100)]
s4:auth/gensec/gensec_krb5.c - remove a pointless "nt_status" test

There is no operation which sets the "nt_status" before the "if".

13 years agos4:auth/kerberos/kerberos_pac.c - fix another memory leak regarding the KRB principal
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 13:24:43 +0000 (14:24 +0100)]
s4:auth/kerberos/kerberos_pac.c - fix another memory leak regarding the KRB principal

In addition fix a counter type

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

13 years agos4:dsdb/common/util_samr.c and auth/sam.c - fix error message
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 11:31:34 +0000 (12:31 +0100)]
s4:dsdb/common/util_samr.c and auth/sam.c - fix error message

13 years agolib/torture: add torture_assert_u64_equal_goto()
Stefan Metzmacher [Mon, 22 Nov 2010 11:38:41 +0000 (12:38 +0100)]
lib/torture: add torture_assert_u64_equal_goto()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Dec  4 12:55:44 CET 2010 on sn-devel-104

13 years agotls_tstream: use a dynamic buffer for the push case
Stefan Metzmacher [Mon, 29 Nov 2010 11:27:11 +0000 (12:27 +0100)]
tls_tstream: use a dynamic buffer for the push case

Some versions of gnutls doesn't handle EAGAIN correctly,
so we better allow sending buffers without a low size limitation,
the limit is now UINT16_MAX (0xFFFF) and we allocate the buffer
with talloc each time.

metze

13 years agotls_tstream: increase the buffer size
Matthieu Patou [Thu, 18 Nov 2010 07:35:06 +0000 (10:35 +0300)]
tls_tstream: increase the buffer size

The problem is that with certain version of gnutls are not working
properly if the server is sending in different packet things like (at
least)

* Certificate
* Server Key exchange
* Client certificate

Somehow it really expect this to be done in one packet as some
structures used _gnutls_send_handshake are reinitialized at every
packet exchange and intermediate steps didn't expect it

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos4:samr RPC server - dcesrv_samr_GetBootKeyInformation - return NOT_SUPPORTED
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 09:34:05 +0000 (10:34 +0100)]
s4:samr RPC server - dcesrv_samr_GetBootKeyInformation - return NOT_SUPPORTED

Windows Server 2008 does this

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Dec  4 12:11:47 CET 2010 on sn-devel-104

13 years agos4:dsdb/common/util_samr.c - "dsdb_enum_group_mem" - fix it up regarding non SAM...
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 09:24:30 +0000 (10:24 +0100)]
s4:dsdb/common/util_samr.c - "dsdb_enum_group_mem" - fix it up regarding non SAM members

For example contacts.

13 years agos4:torture/rpc/samr.c - fix output message
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 09:07:25 +0000 (10:07 +0100)]
s4:torture/rpc/samr.c - fix output message

13 years agoFix bug #3185 - testparm exits 0 if it can read the config file regardless of errors
Holger Hetterich [Sat, 4 Dec 2010 00:43:47 +0000 (16:43 -0800)]
Fix bug #3185 - testparm exits 0 if it can read the config file regardless of errors

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec  4 02:30:00 CET 2010 on sn-devel-104

13 years agos4/kdc - fix a warning regarding a changed parameter type (kvno)
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 22:06:53 +0000 (23:06 +0100)]
s4/kdc - fix a warning regarding a changed parameter type (kvno)

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

13 years agos3/s4:lsa.idl - QueryDomainInformationPolicy - the "unknown6" field is called "reserved"
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 21:56:19 +0000 (22:56 +0100)]
s3/s4:lsa.idl - QueryDomainInformationPolicy - the "unknown6" field is called "reserved"

MS-LSAD 3.1.1.1 - http://msdn.microsoft.com/en-us/library/cc234319(v=PROT.13).aspx

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>