kai/samba.git
13 years agoMerge branch 'v4-0-stable' into newmaster
Jelmer Vernooij [Mon, 20 Sep 2010 22:24:44 +0000 (15:24 -0700)]
Merge branch 'v4-0-stable' into newmaster

13 years agos3-build: try to fix the non-ldap build.
Günther Deschner [Mon, 20 Sep 2010 22:03:56 +0000 (15:03 -0700)]
s3-build: try to fix the non-ldap build.

ldapsam_search_suffix_by_name is already prototyped in smbldap.h.

Guenther

13 years agolibcli/ldap Add const to ldap_encode_ndr_dom_sid()
Andrew Bartlett [Fri, 17 Sep 2010 01:15:28 +0000 (11:15 +1000)]
libcli/ldap Add const to ldap_encode_ndr_dom_sid()

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agos4-mkrelease: Update for waf. save-diskspace-tags/samba-4.0.0alpha13
Jelmer Vernooij [Mon, 20 Sep 2010 21:41:29 +0000 (14:41 -0700)]
s4-mkrelease: Update for waf.

13 years agowafsamba: Fix docstring for DIST_BLACKLIST.
Jelmer Vernooij [Mon, 20 Sep 2010 21:41:09 +0000 (14:41 -0700)]
wafsamba: Fix docstring for DIST_BLACKLIST.

13 years agos4-test: yet another test for ATTID-ot-OID conversion
Kamen Mazdrashki [Mon, 20 Sep 2010 18:28:06 +0000 (21:28 +0300)]
s4-test: yet another test for ATTID-ot-OID conversion

Test with a valid ATTID for prefixMap lookups,
but supplied ATTID is with index not to be found
in the test prefixMap

13 years agos4-dsdb-schema_prefixmap: return WERR_DS_NO_ATTRIBUTE_OR_VALUE when ATTID is not...
Kamen Mazdrashki [Mon, 20 Sep 2010 17:52:48 +0000 (20:52 +0300)]
s4-dsdb-schema_prefixmap: return WERR_DS_NO_ATTRIBUTE_OR_VALUE when ATTID is not found

rather than WERR_INTERNAL_ERROR - it is not internal error!

13 years agos4-dsdb-schema_prefixmap: Print debug message when internal failure occurs
Kamen Mazdrashki [Mon, 20 Sep 2010 18:31:20 +0000 (21:31 +0300)]
s4-dsdb-schema_prefixmap: Print debug message when internal failure occurs

13 years agos4-devel-getncchanges: Add common Samba options as a group to be displayed
Kamen Mazdrashki [Mon, 20 Sep 2010 18:31:11 +0000 (21:31 +0300)]
s4-devel-getncchanges: Add common Samba options as a group to be displayed

Those options are processed but never shown with --help argument

13 years agos3-nmbd: move SYNC_DNS to nmbd.h
Günther Deschner [Thu, 26 Aug 2010 22:07:25 +0000 (00:07 +0200)]
s3-nmbd: move SYNC_DNS to nmbd.h

Guenther

13 years agos3-util: use shared dom_sid_dup.
Günther Deschner [Thu, 26 Aug 2010 15:21:39 +0000 (17:21 +0200)]
s3-util: use shared dom_sid_dup.

Guenther

13 years agos3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.
Günther Deschner [Thu, 26 Aug 2010 13:48:50 +0000 (15:48 +0200)]
s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.

Guenther

13 years agolibcli: add dom_sid_compare_domain()
Günther Deschner [Thu, 26 Aug 2010 14:41:15 +0000 (16:41 +0200)]
libcli: add dom_sid_compare_domain()

Guenther

13 years agos3-build: only include smbldap.h where needed.
Günther Deschner [Thu, 26 Aug 2010 12:07:20 +0000 (14:07 +0200)]
s3-build: only include smbldap.h where needed.

Guenther

13 years agos3-build: only include ctdbd_conn.h where needed.
Günther Deschner [Thu, 26 Aug 2010 08:14:07 +0000 (10:14 +0200)]
s3-build: only include ctdbd_conn.h where needed.

Guenther

13 years agos3-build: only include async headers where needed.
Günther Deschner [Thu, 26 Aug 2010 07:58:09 +0000 (09:58 +0200)]
s3-build: only include async headers where needed.

Guenther

13 years agos4-smbtorture: add NetRemoteTOD libnetapi torture test.
Günther Deschner [Mon, 20 Sep 2010 20:53:09 +0000 (13:53 -0700)]
s4-smbtorture: add NetRemoteTOD libnetapi torture test.

Guenther

13 years agos3-waf: fix the build after registry changes.
Günther Deschner [Mon, 20 Sep 2010 20:40:55 +0000 (13:40 -0700)]
s3-waf: fix the build after registry changes.

Guenther

13 years agoReally enable core dumps in Linux
Rusty Russell [Mon, 20 Sep 2010 04:19:19 +0000 (13:49 +0930)]
Really enable core dumps in Linux

commit e1f1ce68e1f685400a8c68bcec14018e3d1fc29d
Author: Rusty Russell <rusty@rustcorp.com.au>
Date:   Mon Sep 20 13:33:30 2010 +0930

    source3: dump core on Linux, even after seteuid/etc.

    The "dumpable" flag is reset on every call to set*uid, so we need to
    reset it to 1 in the signal handler itself.

    This code dates back to commit ac01fda2b97b 6 years ago :(

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jeremy Allison <jra@samba.org>
13 years agowafsamba: Fix parsing of IS_GIT_VERSION.
Jelmer Vernooij [Mon, 20 Sep 2010 20:08:29 +0000 (13:08 -0700)]
wafsamba: Fix parsing of IS_GIT_VERSION.

13 years agos4-mkrelease: Update to use waf build.
Jelmer Vernooij [Mon, 20 Sep 2010 20:07:27 +0000 (13:07 -0700)]
s4-mkrelease: Update to use waf build.

13 years agoUpdate version info.
Jelmer Vernooij [Mon, 20 Sep 2010 20:06:13 +0000 (13:06 -0700)]
Update version info.

13 years agoUpdate WHATSNEW.txt.
Jelmer Vernooij [Mon, 20 Sep 2010 19:11:05 +0000 (12:11 -0700)]
Update WHATSNEW.txt.

13 years agos3:registry: move prototypes of unused hilvl functions to ret_api_util.h and comment...
Michael Adam [Mon, 20 Sep 2010 17:32:28 +0000 (19:32 +0200)]
s3:registry: move prototypes of unused hilvl functions to ret_api_util.h and comment them out

13 years agos3:registry: move (commented out) hilvl util functions to reg_api_util.c
Michael Adam [Mon, 20 Sep 2010 17:30:58 +0000 (19:30 +0200)]
s3:registry: move (commented out) hilvl util functions to reg_api_util.c

13 years agos3:registry: move higher level function reg_open_path to new module reg_api_util
Michael Adam [Mon, 20 Sep 2010 00:42:10 +0000 (02:42 +0200)]
s3:registry: move higher level function reg_open_path to new module reg_api_util

The reg_api.c code should just export functions that direclty relate to winreg
api calls.

13 years agos3-waf: add net.
Günther Deschner [Sun, 19 Sep 2010 20:35:26 +0000 (22:35 +0200)]
s3-waf: add net.

Guenther

13 years agos3-waf: add libnetapi
Günther Deschner [Mon, 20 Sep 2010 16:47:21 +0000 (09:47 -0700)]
s3-waf: add libnetapi

13 years agos4/dcdiag: Handle ListRoles command for dcdiag:KnowsOfRoleHolders test
Anatoliy Atanasov [Mon, 20 Sep 2010 16:46:10 +0000 (09:46 -0700)]
s4/dcdiag: Handle ListRoles command for dcdiag:KnowsOfRoleHolders test

13 years agos4/fsmo: Create separate function for retrieving fsmo role dn and owner dn.
Anatoliy Atanasov [Mon, 20 Sep 2010 16:44:19 +0000 (09:44 -0700)]
s4/fsmo: Create separate function for retrieving fsmo role dn and owner dn.

This functionality is needed for DsCrackNames ListRoles command also.

13 years agos4/drs: use type enum drsuapi_DsNameFormat in DsCrackNames code
Anatoliy Atanasov [Mon, 20 Sep 2010 16:41:00 +0000 (09:41 -0700)]
s4/drs: use type enum drsuapi_DsNameFormat in DsCrackNames code

13 years agos4/drs: Added the rest of the enum drsuapi_DsNameFormat values
Anatoliy Atanasov [Mon, 20 Sep 2010 16:39:44 +0000 (09:39 -0700)]
s4/drs: Added the rest of the enum drsuapi_DsNameFormat values

According to documentation - [MS-DRSR] 4.1.4.1.2 and 4.1.4.1.3

13 years agos4-smbtorture: add test_SetServiceObjectSecurity() to RPC-SVCCTL.
Günther Deschner [Fri, 24 Apr 2009 11:44:54 +0000 (13:44 +0200)]
s4-smbtorture: add test_SetServiceObjectSecurity() to RPC-SVCCTL.

Guenther

13 years agos3/winbind: remove unused winbindd_check_cache_size
Björn Jacke [Mon, 20 Sep 2010 05:57:23 +0000 (22:57 -0700)]
s3/winbind: remove unused winbindd_check_cache_size

13 years agos3: Fix the charset_pull routine (bug 7531)
Volker Lendecke [Mon, 6 Sep 2010 13:13:48 +0000 (15:13 +0200)]
s3: Fix the charset_pull routine (bug 7531)

In the push routine we do the SVAL, so we should do the SSVAL here.

13 years agos3-waf: Build libwbclient as dynamic library
Kai Blin [Sun, 19 Sep 2010 22:41:45 +0000 (15:41 -0700)]
s3-waf: Build libwbclient as dynamic library

13 years agos4-rootdse: mark registered controls as non-critical
Andrew Tridgell [Sun, 19 Sep 2010 23:11:57 +0000 (16:11 -0700)]
s4-rootdse: mark registered controls as non-critical

this is needed for clients that may include unnecessary controls in
requests and mark them as non-critical

13 years agos3-waf: fix the file locations of gen_ndr'ed files.
Günther Deschner [Mon, 20 Sep 2010 01:18:49 +0000 (03:18 +0200)]
s3-waf: fix the file locations of gen_ndr'ed files.

Guenther

13 years agos3-waf: fix the build after reg_api changes.
Günther Deschner [Mon, 20 Sep 2010 01:10:43 +0000 (03:10 +0200)]
s3-waf: fix the build after reg_api changes.

Guenther

13 years agos3-registry: move regf based reg_api calls into own file.
Günther Deschner [Mon, 20 Sep 2010 00:10:43 +0000 (02:10 +0200)]
s3-registry: move regf based reg_api calls into own file.

Guenther

13 years agos3-registry: add reg_querymultiplevalues to reg_api matching table.
Günther Deschner [Sun, 19 Sep 2010 23:51:54 +0000 (01:51 +0200)]
s3-registry: add reg_querymultiplevalues to reg_api matching table.

Guenther

13 years agos3-waf: add rpcclient to the waf build.
Günther Deschner [Thu, 12 Aug 2010 13:42:16 +0000 (15:42 +0200)]
s3-waf: add rpcclient to the waf build.

Guenther

13 years agos4-rodc: override client site from cldap response
Andrew Tridgell [Sun, 19 Sep 2010 20:20:33 +0000 (13:20 -0700)]
s4-rodc: override client site from cldap response

13 years agos4-dns: fixed the dns_domain_info_type for netlogon DNS calls
Andrew Tridgell [Sun, 19 Sep 2010 20:02:40 +0000 (13:02 -0700)]
s4-dns: fixed the dns_domain_info_type for netlogon DNS calls

w2k8r2 does check this field (WSPP docs need an update)

13 years agos4-dns: added --all-names option to samba_dnsupdate
Andrew Tridgell [Sun, 19 Sep 2010 20:02:05 +0000 (13:02 -0700)]
s4-dns: added --all-names option to samba_dnsupdate

this forces the re-registration of all names

13 years agos4-libnet: use the right domain name in libnet_lookup
Andrew Tridgell [Sun, 19 Sep 2010 19:31:58 +0000 (12:31 -0700)]
s4-libnet: use the right domain name in libnet_lookup

13 years agos4-cldap: improved debug msgs in finddcs_cldap()
Andrew Tridgell [Sun, 19 Sep 2010 19:31:33 +0000 (12:31 -0700)]
s4-cldap: improved debug msgs in finddcs_cldap()

13 years agotesttools: Import newer upstream revision.
Jelmer Vernooij [Sun, 19 Sep 2010 19:29:42 +0000 (12:29 -0700)]
testtools: Import newer upstream revision.

This fixes (among other things) a warning during 'make test' on systems with Python 2.6.

13 years agoFix regf.idl, subkey and rootkey types were switched.
wilco@baanhofman.nl [Mon, 30 Aug 2010 10:17:41 +0000 (12:17 +0200)]
Fix regf.idl, subkey and rootkey types were switched.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
13 years agoFix file corruption (non-updated header) on new allocation.
wilco@baanhofman.nl [Mon, 26 Jul 2010 21:00:43 +0000 (23:00 +0200)]
Fix file corruption (non-updated header) on new allocation.

Also fixes debug messages to use hex offsets.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
13 years agoFix crash when no subkeys exist. Fix writing outside of buffer error by regf backend.
wilco@baanhofman.nl [Mon, 26 Jul 2010 18:13:22 +0000 (20:13 +0200)]
Fix crash when no subkeys exist. Fix writing outside of buffer error by regf backend.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
13 years agoAdd python bindings for open_hive function to be able to load REGF files.
wilco@baanhofman.nl [Mon, 26 Jul 2010 10:32:32 +0000 (12:32 +0200)]
Add python bindings for open_hive function to be able to load REGF files.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
13 years agos4/fsmo: Naming master support added
Anatoliy Atanasov [Sun, 19 Sep 2010 17:48:31 +0000 (10:48 -0700)]
s4/fsmo: Naming master support added

Test suite for fsmo is extended with a test case for naming master too.

13 years agos4-smbtorture: add LOCAL-NDR-NTLMSSP.
Günther Deschner [Tue, 14 Sep 2010 15:27:55 +0000 (17:27 +0200)]
s4-smbtorture: add LOCAL-NDR-NTLMSSP.

Guenther

13 years agos4-rodc: added RODC DNS update support to samba_dnsupdate
Andrew Tridgell [Sun, 19 Sep 2010 03:57:26 +0000 (20:57 -0700)]
s4-rodc: added RODC DNS update support to samba_dnsupdate

for DNS updates that have a netlogon equivalent, send via netlogon

13 years agos4-finddcs: added some debug messages on failure
Andrew Tridgell [Sun, 19 Sep 2010 03:22:44 +0000 (20:22 -0700)]
s4-finddcs: added some debug messages on failure

13 years agos4-pydsdb: added am_rodc() method on samdb
Andrew Tridgell [Sun, 19 Sep 2010 03:22:23 +0000 (20:22 -0700)]
s4-pydsdb: added am_rodc() method on samdb

13 years agos4-pydsdb: don't force am_rodc unless it is set by caller
Andrew Tridgell [Sun, 19 Sep 2010 02:28:05 +0000 (19:28 -0700)]
s4-pydsdb: don't force am_rodc unless it is set by caller

we should normally get the rodc flag by looking at the database, not
by forcing it in the database connect

13 years agopytdb: Make filename argument optional.
Jelmer Vernooij [Sun, 19 Sep 2010 17:42:29 +0000 (10:42 -0700)]
pytdb: Make filename argument optional.

13 years agopytdb: Add support for tdb_freelist_size()
Kirill Smelkov [Sun, 19 Sep 2010 09:53:29 +0000 (13:53 +0400)]
pytdb: Add support for tdb_freelist_size()

Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
13 years agopytdb: Add support for tdb_transaction_prepare_commit()
Kirill Smelkov [Sun, 19 Sep 2010 09:53:32 +0000 (13:53 +0400)]
pytdb: Add support for tdb_transaction_prepare_commit()

Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
13 years agopytdb: Add support for tdb_enable_seqnum, tdb_get_seqnum and tdb_increment_seqnum_non...
Kirill Smelkov [Sun, 19 Sep 2010 16:34:33 +0000 (09:34 -0700)]
pytdb: Add support for tdb_enable_seqnum, tdb_get_seqnum and tdb_increment_seqnum_nonblock

Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
13 years agopytdb: Update open flags to match those for tdb_open() in tdb.h
Kirill Smelkov [Sun, 19 Sep 2010 09:53:19 +0000 (13:53 +0400)]
pytdb: Update open flags to match those for tdb_open() in tdb.h

Namely TDB_NOSYNC, TDB_SEQNUM, TDB_VOLATILE, TDB_ALLOW_NESTING and
TDB_DISALLOW_NESTING were missing.

Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
13 years agopytdb: Fix repr segfault for internal db
Kirill Smelkov [Sun, 19 Sep 2010 09:53:21 +0000 (13:53 +0400)]
pytdb: Fix repr segfault for internal db

The problem was tdb->name is NULL for TDB_INTERNAL databases, and
so it was crashing ...

    #0  0xb76944f3 in strlen () from /lib/i686/cmov/libc.so.6
    #1  0x0809862b in PyString_FromFormatV (format=0xb72b6a26 "Tdb('%s')", vargs=0xbfc26a94 "")
        at ../Objects/stringobject.c:211
    #2  0x08098888 in PyString_FromFormat (format=0xb72b6a26 "Tdb('%s')") at ../Objects/stringobject.c:358
    #3  0xb72b65f2 in tdb_object_repr (self=0xb759e060) at ./pytdb.c:439

Cc: 597089@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
13 years agopytdb: Add support for tdb_add_flags() & tdb_remove_flags()
Kirill Smelkov [Sun, 19 Sep 2010 09:53:20 +0000 (13:53 +0400)]
pytdb: Add support for tdb_add_flags() & tdb_remove_flags()

Note, unlike tdb_open where flags is `int', tdb_{add,remove}_flags want
flags as `unsigned', so instead of "i" I used "I" in PyArg_ParseTuple.

Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
13 years agowaf: add a '+' to the git hash if the working tree isn't clean
Stefan Metzmacher [Sat, 18 Sep 2010 16:45:41 +0000 (18:45 +0200)]
waf: add a '+' to the git hash if the working tree isn't clean

metze

13 years agowaf: fix typos in GIT_COMMIT_* strings
Stefan Metzmacher [Sun, 19 Sep 2010 05:26:54 +0000 (07:26 +0200)]
waf: fix typos in GIT_COMMIT_* strings

metze

13 years agos3-rpcclient: add some winreg commands.
Günther Deschner [Fri, 17 Sep 2010 11:17:12 +0000 (13:17 +0200)]
s3-rpcclient: add some winreg commands.

Guenther

13 years agos3-nltest: add dsregdns command to nltest.
Günther Deschner [Fri, 17 Sep 2010 11:16:26 +0000 (13:16 +0200)]
s3-nltest: add dsregdns command to nltest.

Guenther

13 years agos3-libnetapi: support NETLOGON_CONTROL_FORCE_DNS_REG in I_NetLogonControl().
Günther Deschner [Fri, 17 Sep 2010 11:15:35 +0000 (13:15 +0200)]
s3-libnetapi: support NETLOGON_CONTROL_FORCE_DNS_REG in I_NetLogonControl().

Guenther

13 years agolibnetapi: deal with NULL data in I_NetLogonControl2().
Günther Deschner [Fri, 17 Sep 2010 11:14:50 +0000 (13:14 +0200)]
libnetapi: deal with NULL data in I_NetLogonControl2().

Guenther

13 years agos3: Add a missing prototype
Volker Lendecke [Sat, 18 Sep 2010 07:31:32 +0000 (09:31 +0200)]
s3: Add a missing prototype

13 years agos3: Fix bug 7688, rpcclient command line completion crashing
Volker Lendecke [Sat, 18 Sep 2010 14:37:04 +0000 (07:37 -0700)]
s3: Fix bug 7688, rpcclient command line completion crashing

We've grown more than 100 rpcclient commands by now, so this would overwrite
the array of 100 completions. There's nicer ways to fix this problem, but 1000
rpcclient commands should be at least a bit away.

13 years agos3: Fix some nonempty blank lines
Volker Lendecke [Fri, 17 Sep 2010 19:16:24 +0000 (21:16 +0200)]
s3: Fix some nonempty blank lines

13 years agos4-drs: Check for schema changes only in case we are *not* applying Schema replica
Kamen Mazdrashki [Sat, 18 Sep 2010 12:09:22 +0000 (15:09 +0300)]
s4-drs: Check for schema changes only in case we are *not* applying Schema replica

This fixes the problem when we fail to replicate with
a partner DC that has a newer Schema with attributeSchema
objects with OIDs that we don't have in our local prefixMap.

13 years agowerror: Add W_ERROR_HAVE_NO_MEMORY_AND_FREE() macro
Kamen Mazdrashki [Fri, 17 Sep 2010 23:28:29 +0000 (02:28 +0300)]
werror: Add W_ERROR_HAVE_NO_MEMORY_AND_FREE() macro

13 years agos4-ldapcmp: Fix options parsing for common Samba options
Kamen Mazdrashki [Fri, 17 Sep 2010 21:44:17 +0000 (00:44 +0300)]
s4-ldapcmp: Fix options parsing for common Samba options

And also set 'creds2' to be equal to 'creds' in case
username2 paramater is not supplied on cmd line

13 years agos3:rpc_client: remove unused rpc_pipe_set_hnd_state()
Stefan Metzmacher [Tue, 7 Sep 2010 19:24:07 +0000 (21:24 +0200)]
s3:rpc_client: remove unused rpc_pipe_set_hnd_state()

metze

13 years agos3:rpc_client: use rpc_api_pipe_send() for auth3
Stefan Metzmacher [Tue, 7 Sep 2010 18:52:58 +0000 (20:52 +0200)]
s3:rpc_client: use rpc_api_pipe_send() for auth3

metze

13 years agos3:rpc_client: rpc_pipe_bind_step_one_done() doesn't need reply_pdu
Stefan Metzmacher [Tue, 7 Sep 2010 18:51:38 +0000 (20:51 +0200)]
s3:rpc_client: rpc_pipe_bind_step_one_done() doesn't need reply_pdu

metze

13 years agos3:rpc_client: allow DCERPC_PKT_AUTH3 via rpc_api_pipe_send/recv
Stefan Metzmacher [Tue, 7 Sep 2010 18:39:20 +0000 (20:39 +0200)]
s3:rpc_client: allow DCERPC_PKT_AUTH3 via rpc_api_pipe_send/recv

metze

13 years agolib/util: usec_time_diff takes arguments the other way round than TvalDiff did
Björn Jacke [Fri, 17 Sep 2010 12:05:53 +0000 (14:05 +0200)]
lib/util: usec_time_diff takes arguments the other way round than TvalDiff did

13 years agos3: fix order of arguments in nsec_time_diff call
Björn Jacke [Fri, 17 Sep 2010 11:47:05 +0000 (13:47 +0200)]
s3: fix order of arguments in nsec_time_diff call

13 years agos4-test: Add unit test for dsdb_schema_info_cmp()
Kamen Mazdrashki [Fri, 17 Sep 2010 02:28:36 +0000 (05:28 +0300)]
s4-test: Add unit test for dsdb_schema_info_cmp()

13 years agos4-schema: Helper func to compare schemaInfo signitures
Kamen Mazdrashki [Thu, 16 Sep 2010 23:54:46 +0000 (02:54 +0300)]
s4-schema: Helper func to compare schemaInfo signitures

13 years agos4-schema: use dsdb_schema_info_blob_is_valid() to verify schemaInfo blob
Kamen Mazdrashki [Thu, 16 Sep 2010 23:48:50 +0000 (02:48 +0300)]
s4-schema: use dsdb_schema_info_blob_is_valid() to verify schemaInfo blob

instead of parsing it.

13 years agos4-prefixMap: use dsdb_schema_info_blob_is_valid() for schemaInfo blob validation
Kamen Mazdrashki [Thu, 16 Sep 2010 23:45:59 +0000 (02:45 +0300)]
s4-prefixMap: use dsdb_schema_info_blob_is_valid() for schemaInfo blob validation

This fixes a leaking dsdb_schema_info object also.

13 years agos4-dsdb: Add dsdb_schema_info_blob_is_valid() to verify schemaInfo blobls
Kamen Mazdrashki [Thu, 16 Sep 2010 23:37:46 +0000 (02:37 +0300)]
s4-dsdb: Add dsdb_schema_info_blob_is_valid() to verify schemaInfo blobls

13 years agos4-pyrpc: Print location and type name we got when checking for types
Kamen Mazdrashki [Wed, 15 Sep 2010 23:17:34 +0000 (02:17 +0300)]
s4-pyrpc: Print location and type name we got when checking for types

13 years agoFix array size of a memmber of struct cli_ulogoff_state
Sumit Bose [Fri, 17 Sep 2010 08:33:08 +0000 (10:33 +0200)]
Fix array size of  a memmber of struct cli_ulogoff_state

The too small array makes UID-REGRESSION-FIX fail on 32bit
architectures.

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agos4-devel: developer script for adding DNS entries via netlogon RPC
Andrew Tridgell [Fri, 17 Sep 2010 07:06:29 +0000 (17:06 +1000)]
s4-devel: developer script for adding DNS entries via netlogon RPC

this calls the netlogon DsrUpdateReadOnlyServerDnsRecords call to add
DNS entries for a RODC via RPC calls. The call is routed via a IRPC
call to winbind, as winbind is the one with the schannel credential
chaining setup.

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

13 years agos4-pyrpc: allow python to access irpc interfaces
Andrew Tridgell [Fri, 17 Sep 2010 07:04:28 +0000 (17:04 +1000)]
s4-pyrpc: allow python to access irpc interfaces

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

13 years agoidl: build python interfaces for winbind and idmap IDL
Andrew Tridgell [Fri, 17 Sep 2010 07:03:54 +0000 (17:03 +1000)]
idl: build python interfaces for winbind and idmap IDL

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

13 years agos4-winbind Add a proxy method to update DNS records with a read-write DC
Andrew Bartlett [Fri, 17 Sep 2010 00:11:48 +0000 (10:11 +1000)]
s4-winbind Add a proxy method to update DNS records with a read-write DC

This must be done in winbindd as it already has the schannel connection
and the credential chain.  If we re-established that elsewhere, we
would break the chain in winbindd.

Andrew Bartlett

Signed-Off-By: Andrew Tridgell <tridge@samba.org>
13 years agotestprogs: skip two tests in spoolss tester.
Günther Deschner [Fri, 17 Sep 2010 08:06:16 +0000 (10:06 +0200)]
testprogs: skip two tests in spoolss tester.

Guenther

13 years agos4-smbtorture: fix winreg querymultiplevalues NDR test warning.
Günther Deschner [Fri, 17 Sep 2010 08:02:13 +0000 (10:02 +0200)]
s4-smbtorture: fix winreg querymultiplevalues NDR test warning.

Guenther

13 years agoѕ3: remove smb_msleep prototype from here
Björn Jacke [Thu, 16 Sep 2010 20:18:45 +0000 (22:18 +0200)]
ѕ3: remove smb_msleep prototype from here

13 years agos3: remove TvalDiff macro, we can use the shared usec_time_diff function
Björn Jacke [Thu, 16 Sep 2010 19:36:00 +0000 (21:36 +0200)]
s3: remove TvalDiff macro, we can use the shared usec_time_diff function

13 years agos3/s4: merge msleep and smb_msleep
Björn Jacke [Thu, 16 Sep 2010 19:36:37 +0000 (21:36 +0200)]
s3/s4: merge msleep and smb_msleep

the merged variant is renamed to smb_msleep as some platforms already have a
msleep function.

13 years agos3: remove TspecDiff macro, we can use the shared nsec_time_diff function
Björn Jacke [Thu, 16 Sep 2010 17:45:43 +0000 (19:45 +0200)]
s3: remove TspecDiff macro, we can use the shared nsec_time_diff function