Jelmer Vernooij [Mon, 20 Sep 2010 22:24:44 +0000 (15:24 -0700)]
Merge branch 'v4-0-stable' into newmaster
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
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>
Jelmer Vernooij [Mon, 20 Sep 2010 21:41:29 +0000 (14:41 -0700)]
s4-mkrelease: Update for waf.
Jelmer Vernooij [Mon, 20 Sep 2010 21:41:09 +0000 (14:41 -0700)]
wafsamba: Fix docstring for DIST_BLACKLIST.
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
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!
Kamen Mazdrashki [Mon, 20 Sep 2010 18:31:20 +0000 (21:31 +0300)]
s4-dsdb-schema_prefixmap: Print debug message when internal failure occurs
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
Günther Deschner [Thu, 26 Aug 2010 22:07:25 +0000 (00:07 +0200)]
s3-nmbd: move SYNC_DNS to nmbd.h
Guenther
Günther Deschner [Thu, 26 Aug 2010 15:21:39 +0000 (17:21 +0200)]
s3-util: use shared dom_sid_dup.
Guenther
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
Günther Deschner [Thu, 26 Aug 2010 14:41:15 +0000 (16:41 +0200)]
libcli: add dom_sid_compare_domain()
Guenther
Günther Deschner [Thu, 26 Aug 2010 12:07:20 +0000 (14:07 +0200)]
s3-build: only include smbldap.h where needed.
Guenther
Günther Deschner [Thu, 26 Aug 2010 08:14:07 +0000 (10:14 +0200)]
s3-build: only include ctdbd_conn.h where needed.
Guenther
Günther Deschner [Thu, 26 Aug 2010 07:58:09 +0000 (09:58 +0200)]
s3-build: only include async headers where needed.
Guenther
Günther Deschner [Mon, 20 Sep 2010 20:53:09 +0000 (13:53 -0700)]
s4-smbtorture: add NetRemoteTOD libnetapi torture test.
Guenther
Günther Deschner [Mon, 20 Sep 2010 20:40:55 +0000 (13:40 -0700)]
s3-waf: fix the build after registry changes.
Guenther
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>
Jelmer Vernooij [Mon, 20 Sep 2010 20:08:29 +0000 (13:08 -0700)]
wafsamba: Fix parsing of IS_GIT_VERSION.
Jelmer Vernooij [Mon, 20 Sep 2010 20:07:27 +0000 (13:07 -0700)]
s4-mkrelease: Update to use waf build.
Jelmer Vernooij [Mon, 20 Sep 2010 20:06:13 +0000 (13:06 -0700)]
Update version info.
Jelmer Vernooij [Mon, 20 Sep 2010 19:11:05 +0000 (12:11 -0700)]
Update WHATSNEW.txt.
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
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
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.
Günther Deschner [Sun, 19 Sep 2010 20:35:26 +0000 (22:35 +0200)]
s3-waf: add net.
Guenther
Günther Deschner [Mon, 20 Sep 2010 16:47:21 +0000 (09:47 -0700)]
s3-waf: add libnetapi
Anatoliy Atanasov [Mon, 20 Sep 2010 16:46:10 +0000 (09:46 -0700)]
s4/dcdiag: Handle ListRoles command for dcdiag:KnowsOfRoleHolders test
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.
Anatoliy Atanasov [Mon, 20 Sep 2010 16:41:00 +0000 (09:41 -0700)]
s4/drs: use type enum drsuapi_DsNameFormat in DsCrackNames code
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
Günther Deschner [Fri, 24 Apr 2009 11:44:54 +0000 (13:44 +0200)]
s4-smbtorture: add test_SetServiceObjectSecurity() to RPC-SVCCTL.
Guenther
Björn Jacke [Mon, 20 Sep 2010 05:57:23 +0000 (22:57 -0700)]
s3/winbind: remove unused winbindd_check_cache_size
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.
Kai Blin [Sun, 19 Sep 2010 22:41:45 +0000 (15:41 -0700)]
s3-waf: Build libwbclient as dynamic library
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
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
Günther Deschner [Mon, 20 Sep 2010 01:10:43 +0000 (03:10 +0200)]
s3-waf: fix the build after reg_api changes.
Guenther
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
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
Günther Deschner [Thu, 12 Aug 2010 13:42:16 +0000 (15:42 +0200)]
s3-waf: add rpcclient to the waf build.
Guenther
Andrew Tridgell [Sun, 19 Sep 2010 20:20:33 +0000 (13:20 -0700)]
s4-rodc: override client site from cldap response
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)
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
Andrew Tridgell [Sun, 19 Sep 2010 19:31:58 +0000 (12:31 -0700)]
s4-libnet: use the right domain name in libnet_lookup
Andrew Tridgell [Sun, 19 Sep 2010 19:31:33 +0000 (12:31 -0700)]
s4-cldap: improved debug msgs in finddcs_cldap()
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.
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>
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>
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>
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>
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.
Günther Deschner [Tue, 14 Sep 2010 15:27:55 +0000 (17:27 +0200)]
s4-smbtorture: add LOCAL-NDR-NTLMSSP.
Guenther
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
Andrew Tridgell [Sun, 19 Sep 2010 03:22:44 +0000 (20:22 -0700)]
s4-finddcs: added some debug messages on failure
Andrew Tridgell [Sun, 19 Sep 2010 03:22:23 +0000 (20:22 -0700)]
s4-pydsdb: added am_rodc() method on samdb
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
Jelmer Vernooij [Sun, 19 Sep 2010 17:42:29 +0000 (10:42 -0700)]
pytdb: Make filename argument optional.
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>
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>
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>
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>
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>
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>
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
Stefan Metzmacher [Sun, 19 Sep 2010 05:26:54 +0000 (07:26 +0200)]
waf: fix typos in GIT_COMMIT_* strings
metze
Günther Deschner [Fri, 17 Sep 2010 11:17:12 +0000 (13:17 +0200)]
s3-rpcclient: add some winreg commands.
Guenther
Günther Deschner [Fri, 17 Sep 2010 11:16:26 +0000 (13:16 +0200)]
s3-nltest: add dsregdns command to nltest.
Guenther
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
Günther Deschner [Fri, 17 Sep 2010 11:14:50 +0000 (13:14 +0200)]
libnetapi: deal with NULL data in I_NetLogonControl2().
Guenther
Volker Lendecke [Sat, 18 Sep 2010 07:31:32 +0000 (09:31 +0200)]
s3: Add a missing prototype
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.
Volker Lendecke [Fri, 17 Sep 2010 19:16:24 +0000 (21:16 +0200)]
s3: Fix some nonempty blank lines
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.
Kamen Mazdrashki [Fri, 17 Sep 2010 23:28:29 +0000 (02:28 +0300)]
werror: Add W_ERROR_HAVE_NO_MEMORY_AND_FREE() macro
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
Stefan Metzmacher [Tue, 7 Sep 2010 19:24:07 +0000 (21:24 +0200)]
s3:rpc_client: remove unused rpc_pipe_set_hnd_state()
metze
Stefan Metzmacher [Tue, 7 Sep 2010 18:52:58 +0000 (20:52 +0200)]
s3:rpc_client: use rpc_api_pipe_send() for auth3
metze
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
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
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
Björn Jacke [Fri, 17 Sep 2010 11:47:05 +0000 (13:47 +0200)]
s3: fix order of arguments in nsec_time_diff call
Kamen Mazdrashki [Fri, 17 Sep 2010 02:28:36 +0000 (05:28 +0300)]
s4-test: Add unit test for dsdb_schema_info_cmp()
Kamen Mazdrashki [Thu, 16 Sep 2010 23:54:46 +0000 (02:54 +0300)]
s4-schema: Helper func to compare schemaInfo signitures
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.
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.
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
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
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>
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>
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>
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>
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>
Günther Deschner [Fri, 17 Sep 2010 08:06:16 +0000 (10:06 +0200)]
testprogs: skip two tests in spoolss tester.
Guenther
Günther Deschner [Fri, 17 Sep 2010 08:02:13 +0000 (10:02 +0200)]
s4-smbtorture: fix winreg querymultiplevalues NDR test warning.
Guenther
Björn Jacke [Thu, 16 Sep 2010 20:18:45 +0000 (22:18 +0200)]
ѕ3: remove smb_msleep prototype from here
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
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.
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