amitay/samba.git
10 years agos3:services_db: untangle assignments from check in construct_service_sd().
Michael Adam [Sun, 19 Sep 2010 22:40:44 +0000 (00:40 +0200)]
s3:services_db: untangle assignments from check in construct_service_sd().

10 years agos4-drepl: use the partition UDV and hwm for extended getncchanges ops
Andrew Tridgell [Tue, 21 Sep 2010 03:36:36 +0000 (20:36 -0700)]
s4-drepl: use the partition UDV and hwm for extended getncchanges ops

we find the NC root then load the uptodateness vector and highwater
mark, if available, from there

10 years agos3-libnetapi: Fix Bug #7665, memory leak in netapi connection manager.
Günther Deschner [Tue, 21 Sep 2010 04:05:37 +0000 (21:05 -0700)]
s3-libnetapi: Fix Bug #7665, memory leak in netapi connection manager.

Guenther

10 years agos4-smbtorture: print SVCCTL security descriptor in test_QueryServiceObjectSecurity().
Günther Deschner [Tue, 21 Sep 2010 00:41:18 +0000 (17:41 -0700)]
s4-smbtorture: print SVCCTL security descriptor in test_QueryServiceObjectSecurity().

Guenther

10 years agolib/tdb: fix c++ build warning in tdb_header_hash().
Günther Deschner [Mon, 20 Sep 2010 23:01:51 +0000 (16:01 -0700)]
lib/tdb: fix c++ build warning in tdb_header_hash().

Guenther

10 years agos3-lib/util Remove unused smb_uuid_unpack()
Andrew Bartlett [Fri, 17 Sep 2010 08:06:05 +0000 (18:06 +1000)]
s3-lib/util Remove unused smb_uuid_unpack()

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
10 years agos3-libads call common GUID_from_ndr_blob()
Andrew Bartlett [Fri, 17 Sep 2010 08:04:05 +0000 (18:04 +1000)]
s3-libads call common GUID_from_ndr_blob()

This does a length-limited check, and so avoids reading beyond the
allocated memory if the server sends less than 16 bytes.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
10 years agos3-uuid Remove unused smb_uuid_pack()
Andrew Bartlett [Fri, 17 Sep 2010 07:46:51 +0000 (17:46 +1000)]
s3-uuid Remove unused smb_uuid_pack()

Signed-off-by: Günther Deschner <gd@samba.org>
10 years agos3: Replace sid_binstring and sid_guidstring with PIDL-based alternatives
Andrew Bartlett [Fri, 17 Sep 2010 02:33:44 +0000 (12:33 +1000)]
s3: Replace sid_binstring and sid_guidstring with PIDL-based alternatives

This reduces the manual marshalling of these structures by removing
the duplication here.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
10 years agoOpen alpha 14.
Jelmer Vernooij [Mon, 20 Sep 2010 22:46:41 +0000 (15:46 -0700)]
Open alpha 14.

10 years agos4-pyrpc: fixed build on python 2.4
Andrew Tridgell [Mon, 20 Sep 2010 19:16:09 +0000 (12:16 -0700)]
s4-pyrpc: fixed build on python 2.4

Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>

10 years agos4-rodc: fixed repsFrom store on RODC
Andrew Tridgell [Mon, 20 Sep 2010 04:49:00 +0000 (21:49 -0700)]
s4-rodc: fixed repsFrom store on RODC

We were disallowing repsFrom store as a RODC on the basis that it is a
write to the directory. It should be allowed, as its is a
non-replicated attribute.

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

10 years agos4-kcc: a bit more debug info on repsFrom creation
Andrew Tridgell [Mon, 20 Sep 2010 04:48:35 +0000 (21:48 -0700)]
s4-kcc: a bit more debug info on repsFrom creation

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

10 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

10 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

10 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>
10 years agos4-mkrelease: Update for waf. release-4-0-0alpha13 samba-4.0.0alpha13
Jelmer Vernooij [Mon, 20 Sep 2010 21:41:29 +0000 (14:41 -0700)]
s4-mkrelease: Update for waf.

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

10 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

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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

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

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

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

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

10 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

10 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

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

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

Guenther

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

10 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

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

10 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

10 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

10 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

10 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

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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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)

10 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

10 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

10 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()

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

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

10 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

10 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

10 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

10 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

10 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

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

10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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

10 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

10 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

10 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

10 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

10 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

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

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

10 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

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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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()

10 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

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

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