wilco@baanhofman.nl
2c3f56098b
Add python bindings for open_hive function to be able to load REGF files.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-09-19 12:34:54 -07:00
Anatoliy Atanasov
5d807107bb
s4/fsmo: Naming master support added
...
Test suite for fsmo is extended with a test case for naming master too.
2010-09-19 12:16:04 -07:00
Günther Deschner
55f465576c
s4-smbtorture: add LOCAL-NDR-NTLMSSP.
...
Guenther
2010-09-19 20:45:19 +02:00
Andrew Tridgell
f6fa73bbd3
s4-rodc: added RODC DNS update support to samba_dnsupdate
...
for DNS updates that have a netlogon equivalent, send via netlogon
2010-09-19 11:29:32 -07:00
Andrew Tridgell
50f56c6a82
s4-finddcs: added some debug messages on failure
2010-09-19 11:29:32 -07:00
Andrew Tridgell
e72a1e2055
s4-pydsdb: added am_rodc() method on samdb
2010-09-19 11:29:32 -07:00
Andrew Tridgell
2666cc9c16
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
2010-09-19 11:29:32 -07:00
Jelmer Vernooij
7a59c90189
pytdb: Make filename argument optional.
2010-09-19 10:42:29 -07:00
Kirill Smelkov
4c72655678
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>
2010-09-19 10:03:00 -07:00
Kirill Smelkov
b3314d6ad8
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>
2010-09-19 09:35:43 -07:00
Kirill Smelkov
b826ef9697
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>
2010-09-19 09:34:33 -07:00
Kirill Smelkov
a2621034e9
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>
2010-09-19 09:31:34 -07:00
Kirill Smelkov
277a1b229c
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>
2010-09-19 09:31:20 -07:00
Kirill Smelkov
c4b1971259
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>
2010-09-19 09:31:08 -07:00
Stefan Metzmacher
92eccf89a1
waf: add a '+' to the git hash if the working tree isn't clean
...
metze
2010-09-19 07:40:39 +02:00
Stefan Metzmacher
a66db2cb78
waf: fix typos in GIT_COMMIT_* strings
...
metze
2010-09-19 07:40:14 +02:00
Günther Deschner
9e058c6e72
s3-rpcclient: add some winreg commands.
...
Guenther
2010-09-19 02:47:11 +02:00
Günther Deschner
1d8094172c
s3-nltest: add dsregdns command to nltest.
...
Guenther
2010-09-19 02:47:11 +02:00
Günther Deschner
8e73826b3c
s3-libnetapi: support NETLOGON_CONTROL_FORCE_DNS_REG in I_NetLogonControl().
...
Guenther
2010-09-19 02:47:11 +02:00
Günther Deschner
47a7a5830c
libnetapi: deal with NULL data in I_NetLogonControl2().
...
Guenther
2010-09-19 02:47:10 +02:00
Volker Lendecke
1473330bbe
s3: Add a missing prototype
2010-09-18 09:32:41 -07:00
Volker Lendecke
7fddf9c89e
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.
2010-09-18 07:44:23 -07:00
Volker Lendecke
252e8c27eb
s3: Fix some nonempty blank lines
2010-09-18 07:44:17 -07:00
Kamen Mazdrashki
d76bb4ac40
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.
2010-09-18 15:09:47 +03:00
Kamen Mazdrashki
1fac1f0d28
werror: Add W_ERROR_HAVE_NO_MEMORY_AND_FREE() macro
2010-09-18 15:09:46 +03:00
Kamen Mazdrashki
c3489a7918
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
2010-09-18 15:09:46 +03:00
Stefan Metzmacher
78b6265ac2
s3:rpc_client: remove unused rpc_pipe_set_hnd_state()
...
metze
2010-09-17 15:42:36 +02:00
Stefan Metzmacher
fde3412ccb
s3:rpc_client: use rpc_api_pipe_send() for auth3
...
metze
2010-09-17 15:42:35 +02:00
Stefan Metzmacher
6ecf8d16bc
s3:rpc_client: rpc_pipe_bind_step_one_done() doesn't need reply_pdu
...
metze
2010-09-17 15:42:35 +02:00
Stefan Metzmacher
de6254d3d6
s3:rpc_client: allow DCERPC_PKT_AUTH3 via rpc_api_pipe_send/recv
...
metze
2010-09-17 15:42:34 +02:00
Björn Jacke
1a22b1b44d
lib/util: usec_time_diff takes arguments the other way round than TvalDiff did
2010-09-17 14:05:53 +02:00
Björn Jacke
10eefd85c9
s3: fix order of arguments in nsec_time_diff call
2010-09-17 13:49:11 +02:00
Kamen Mazdrashki
311744a131
s4-test: Add unit test for dsdb_schema_info_cmp()
2010-09-17 13:53:04 +03:00
Kamen Mazdrashki
9256b5f226
s4-schema: Helper func to compare schemaInfo signitures
2010-09-17 13:53:03 +03:00
Kamen Mazdrashki
1295da92f9
s4-schema: use dsdb_schema_info_blob_is_valid() to verify schemaInfo blob
...
instead of parsing it.
2010-09-17 13:53:03 +03:00
Kamen Mazdrashki
aedefd3e99
s4-prefixMap: use dsdb_schema_info_blob_is_valid() for schemaInfo blob validation
...
This fixes a leaking dsdb_schema_info object also.
2010-09-17 13:53:03 +03:00
Kamen Mazdrashki
e691b1fd27
s4-dsdb: Add dsdb_schema_info_blob_is_valid() to verify schemaInfo blobls
2010-09-17 13:53:03 +03:00
Kamen Mazdrashki
c79861a14e
s4-pyrpc: Print location and type name we got when checking for types
2010-09-17 13:53:03 +03:00
Sumit Bose
e2d6b64219
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>
2010-09-17 11:51:56 +02:00
Andrew Tridgell
90d685afe5
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>
2010-09-17 19:02:19 +10:00
Andrew Tridgell
fb81cc080d
s4-pyrpc: allow python to access irpc interfaces
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-17 19:02:19 +10:00
Andrew Tridgell
1c7c1a86ec
idl: build python interfaces for winbind and idmap IDL
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-17 19:02:19 +10:00
Andrew Bartlett
39bd61e018
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>
2010-09-17 19:02:18 +10:00
Günther Deschner
b772f4cdff
testprogs: skip two tests in spoolss tester.
...
Guenther
2010-09-17 10:06:16 +02:00
Günther Deschner
6f5fa763c1
s4-smbtorture: fix winreg querymultiplevalues NDR test warning.
...
Guenther
2010-09-17 10:02:13 +02:00
Björn Jacke
66ad6c75e9
ѕ3: remove smb_msleep prototype from here
2010-09-16 22:18:45 +02:00
Björn Jacke
6bc68fabb8
s3: remove TvalDiff macro, we can use the shared usec_time_diff function
2010-09-16 21:38:20 +02:00
Björn Jacke
2b254c814b
s3/s4: merge msleep and smb_msleep
...
the merged variant is renamed to smb_msleep as some platforms already have a
msleep function.
2010-09-16 21:38:20 +02:00
Björn Jacke
0fd16018a1
s3: remove TspecDiff macro, we can use the shared nsec_time_diff function
2010-09-16 21:38:20 +02:00
Björn Jacke
aada719694
s3: use nsec_time_diff instead of TspecDiff
2010-09-16 21:38:20 +02:00