kai/samba.git
9 years agos3:services_db: rewrite svcctl_init_keys() to use reg_api calls instead of legacy
Michael Adam [Tue, 21 Sep 2010 04:48:19 +0000 (06:48 +0200)]
s3:services_db: rewrite svcctl_init_keys() to use reg_api calls instead of legacy

9 years agos3:services_db: extract core of svcctl_set_secdesc to _internal version
Michael Adam [Tue, 21 Sep 2010 01:11:43 +0000 (03:11 +0200)]
s3:services_db: extract core of svcctl_set_secdesc to _internal version

The internal version operates on an already opened key.

9 years agos3:services_db: create the "Security" subkey if it does not exist in svcctl_set_secdesc()
Michael Adam [Tue, 21 Sep 2010 01:00:29 +0000 (03:00 +0200)]
s3:services_db: create the "Security" subkey if it does not exist in svcctl_set_secdesc()

Windows behaves like this. - Tests will follow.

9 years agos3:services_db: remove bogus comments
Michael Adam [Mon, 20 Sep 2010 09:24:36 +0000 (11:24 +0200)]
s3:services_db: remove bogus comments

(from copy and paste probably...)

9 years agos3:services_db: remove unused legacy function svcctl_fetch_regvalues().
Michael Adam [Mon, 20 Sep 2010 09:20:37 +0000 (11:20 +0200)]
s3:services_db: remove unused legacy function svcctl_fetch_regvalues().

9 years agos3:rpc_server:ntsvcs: registry is not directly used an more.
Michael Adam [Mon, 20 Sep 2010 09:18:33 +0000 (11:18 +0200)]
s3:rpc_server:ntsvcs: registry is not directly used an more.

9 years agos3:rpc_server:ntsvcs: use svcctl_lookup_dispname instead of legacy svcctl in _PNP_Get...
Michael Adam [Mon, 20 Sep 2010 09:17:38 +0000 (11:17 +0200)]
s3:rpc_server:ntsvcs: use svcctl_lookup_dispname instead of legacy svcctl in _PNP_GetDeviceRegProp

9 years agos3:rpc_server: registry is not direclty used in the svcctl server any more
Michael Adam [Mon, 20 Sep 2010 08:57:53 +0000 (10:57 +0200)]
s3:rpc_server: registry is not direclty used in the svcctl server any more

9 years agos3:srv_ntsvcs_nt: make fill_svc_config() use svcctl_get_string_value()
Michael Adam [Mon, 20 Sep 2010 08:30:30 +0000 (10:30 +0200)]
s3:srv_ntsvcs_nt: make fill_svc_config() use svcctl_get_string_value()

instead of using legacy svcctl_fetch_regvalues()

9 years agos3:services_db: publish svcctl_get_string_value()
Michael Adam [Mon, 20 Sep 2010 08:27:56 +0000 (10:27 +0200)]
s3:services_db: publish svcctl_get_string_value()

9 years agos3:services_db: factor out common code of lookup_dispname and lookup_description
Michael Adam [Mon, 20 Sep 2010 06:06:30 +0000 (08:06 +0200)]
s3:services_db: factor out common code of lookup_dispname and lookup_description

into a new function svcctl_get_string_value()

9 years agos3:services_db: change svcctl_lookup_description() to use reg_api functions
Michael Adam [Mon, 20 Sep 2010 04:19:57 +0000 (06:19 +0200)]
s3:services_db: change svcctl_lookup_description() to use reg_api functions

9 years agos3:services_db: rewrite svcctl_lookup_description() to use a tmp talloc ctx
Michael Adam [Mon, 20 Sep 2010 04:03:58 +0000 (06:03 +0200)]
s3:services_db: rewrite svcctl_lookup_description() to use a tmp talloc ctx

Also remove a possible memory by tallocing the result string
also in a default case, where a string constant was returned before.

9 years agos3:services_db: change svcctl_lookup_dispname() to use reg_api functions
Michael Adam [Mon, 20 Sep 2010 06:11:07 +0000 (08:11 +0200)]
s3:services_db: change svcctl_lookup_dispname() to use reg_api functions

9 years agos3:services_db: make svcctl_lookup_dispname() use a temp talloc ctx
Michael Adam [Mon, 20 Sep 2010 02:58:27 +0000 (04:58 +0200)]
s3:services_db: make svcctl_lookup_dispname() use a temp talloc ctx

9 years agos3:services_db: change svcctl_get_secdesc() to use reg_api functions
Michael Adam [Mon, 20 Sep 2010 02:41:59 +0000 (04:41 +0200)]
s3:services_db: change svcctl_get_secdesc() to use reg_api functions

9 years agos3:services_db: use temp talloc ctx in svcctl_get_secdesc()
Michael Adam [Mon, 20 Sep 2010 02:12:42 +0000 (04:12 +0200)]
s3:services_db: use temp talloc ctx in svcctl_get_secdesc()

9 years agos3:services_db: remove the TALLOC_CTX argument from svcctl_set_secdesc
Michael Adam [Mon, 20 Sep 2010 01:38:45 +0000 (03:38 +0200)]
s3:services_db: remove the TALLOC_CTX argument from svcctl_set_secdesc

9 years agos3:services_db: fix a debug message
Michael Adam [Mon, 20 Sep 2010 01:36:23 +0000 (03:36 +0200)]
s3:services_db: fix a debug message

9 years agos3:services_db: rewrite svcctl_set_secdesc to use tmp talloc ctx
Michael Adam [Mon, 20 Sep 2010 01:34:49 +0000 (03:34 +0200)]
s3:services_db: rewrite svcctl_set_secdesc to use tmp talloc ctx

and add a common exit point

9 years agos3:services_db: rewrite svcctl_set_secdesc() using reg_api calls instead of legacy
Michael Adam [Mon, 20 Sep 2010 00:43:33 +0000 (02:43 +0200)]
s3:services_db: rewrite svcctl_set_secdesc() using reg_api calls instead of legacy

9 years agos3:services_db: untanlge assignments from check in read_init_file().
Michael Adam [Sun, 19 Sep 2010 22:46:59 +0000 (00:46 +0200)]
s3:services_db: untanlge assignments from check in read_init_file().

9 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().

9 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

9 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

9 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

9 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

9 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>
9 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>
9 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>
9 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>
9 years agoOpen alpha 14.
Jelmer Vernooij [Mon, 20 Sep 2010 22:46:41 +0000 (15:46 -0700)]
Open alpha 14.

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

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

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

9 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

9 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

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

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

9 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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

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

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

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

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

9 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

9 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

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

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

Guenther

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

9 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

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

9 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

9 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

9 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

9 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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

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

9 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

9 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

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

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

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

9 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

9 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

9 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

9 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

9 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

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

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