1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

122 Commits

Author SHA1 Message Date
Kamen Mazdrashki
e21039110c s4/drs-tests: Add a base class to hold common functionality for all DRS python tests 2011-02-20 23:13:08 +02:00
Andrew Tridgell
8dc92c8f71 ldb: use #include <ldb.h> for ldb
thi ensures we are using the header corresponding to the version of
ldb we're linking against. Otherwise we could use the system ldb for
link and the in-tree one for include

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-10 06:51:07 +01:00
Andrew Bartlett
7faa3be453 s4-python Ensure we add the Samba python path first.
This exact form of the construction is important, and we match on it
in the installation scripts.

Andrew Bartlett
2011-02-02 15:21:12 +11:00
Kamen Mazdrashki
6e2263749a s4-test/delete_object: Remove global ldb connections
Make it more xUnit compliant

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Tue Jan 25 21:30:19 CET 2011 on sn-devel-104
2011-01-25 21:30:19 +01:00
Andrew Tridgell
87f3151047 s4-dsdb: pass parent request to dsdb_module_*() functions
this preserves the request hierarchy for dsdb_module_*() calls inside
dsdb ldb modules

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-01-17 05:23:04 +01:00
Matthias Dieter Wallnöfer
a26a48934d torture:drs/rpc/msds_intid.c - proof for the correct "intId"
"drs_attr" is uninitialised in this loop
2011-01-12 19:52:19 +01:00
Jelmer Vernooij
b5474f2441 remove unnecessary use of pass.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Jan  3 08:21:12 CET 2011 on sn-devel-104
2011-01-03 08:21:12 +01:00
Jelmer Vernooij
9fc2e6c352 Use TestCase.get_credentials() where possible. 2011-01-03 01:48:05 +01:00
Matthias Dieter Wallnöfer
912faf1b08 s4:dsdb/schema/schema_* - adaptions needed for removed "const" on OIDs 2010-12-21 15:10:37 +11:00
Kamen Mazdrashki
3bc1cf94e3 s4-test/repl_schema: remove unused and commented out code
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec 15 01:37:10 CET 2010 on sn-devel-104
2010-12-15 01:37:10 +01:00
Kamen Mazdrashki
9c78bdfd47 s4-test/repl_schema: Make sure every object is with unique name
This way, test writer don't have to be careful to choose
unique objects suffix
2010-12-15 00:51:19 +01:00
Kamen Mazdrashki
efcc3c0d79 s4-test/repl_schema: use 'top' as default base class for our test classSchema objects
Otherwise we will end up passing whole inheritance chain
every time we create some new fancy classSchema object
(as the 'cls-A' and 'cls-B' ones in test_classWithCustomAttribute test)
2010-12-15 00:51:19 +01:00
Kamen Mazdrashki
1379075762 s4-test/repl_schema: New test to test a classSchema with custom attribute
Create new Attribute and a Class,
that has value for newly created attribute.

This should check code path that searches for
AttributeID_id in Schema cacheThis test.

It also tests how we replicate a leaf classSchema that
inherits from a new classSchema with attribute added
- tests both dsdb_attribute_drsuapi_to_ldb() and
_dsdb_syntax_OID_obj_drsuapi_to_ldb() syntax handler
2010-12-15 00:51:19 +01:00
Jelmer Vernooij
35fbc7bbda s4-smbtorture: Make test names lowercase and dot-separated.
This is consistent with the test names used by selftest, should
make the names less confusing and easier to integrate with other tools.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-12-11 04:16:13 +01:00
Kamen Mazdrashki
c1fef7efc7 s4-test/repl_schema: Test class inheritance through subClassOf 2010-12-02 19:02:55 +02:00
Kamen Mazdrashki
1b7070039f s4-test/fsmo: Remove unused imports 2010-12-02 19:02:54 +02:00
Kamen Mazdrashki
ad1ea5e142 s4-test/delete_object: Remove unused imports 2010-12-02 19:02:53 +02:00
Kamen Mazdrashki
28f47112d7 s4-test/repl_schema: Make ERR_NO_SUCH_OBJECT visible to us
We've lost this import somehow, now it is back in :)
2010-12-02 19:02:53 +02:00
Kamen Mazdrashki
ebdbf9bd90 s4-test/repl_schema: Test classSchema and attributeSchema replication in separate tests 2010-12-02 19:02:52 +02:00
Kamen Mazdrashki
6803a72d15 s4-test/schema: Extend the test to replicate a Class with Attribute with "mayContain" relation
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec  1 13:30:45 CET 2010 on sn-devel-104
2010-12-01 13:30:45 +01:00
Kamen Mazdrashki
4041791d01 s4-repl: Let dsdb_replicated_objects_convert() to accept schema from caller
This allows us to use schema that is different than the one
set to 'ldb' to decode objects.
2010-12-01 13:01:16 +02:00
Andrew Tridgell
c522cd73ac s4-repl_schema: fixed ldb exception handling 2010-11-29 18:04:42 +11:00
Jelmer Vernooij
a7675bd501 s4-python: Fix formatting of docstrings for the purpose of pydoctor. 2010-11-28 05:00:06 +01:00
Matthias Dieter Wallnöfer
02addbc40d s4:torture/drs/python/fsmo.py - fix comments and an error message 2010-11-27 15:17:18 +01:00
Kamen Mazdrashki
58f6a37f64 s4-test/repl_schema: Refactor the test a little bit to
- Cleanup imports
- make sure we have testtools and subunit imported
- use dictionaries instead of LDIFs for schema modification
  so now callers for _make_class can easily add new attributes
  for created class
- simplify a little bit classSchema creation
- test attributeSchema replication

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Tue Nov 23 18:44:46 CET 2010 on sn-devel-104
2010-11-23 18:44:46 +01:00
Kamen Mazdrashki
b85dfce745 s4-test/repl_schema: Remote global ldb connections
Although unlikely, Jelmer pointed out that using persistent
SamDB connections between test may interfere with tests
behaviour (and is not xUnit compliant anyway)

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Mon Nov 22 15:24:03 CET 2010 on sn-devel-104
2010-11-22 15:24:03 +01:00
Kamen Mazdrashki
a8495d380e s4-repl: dsdb_extended_replicated_objects_convert -> dsdb_replicated_objects_convert/
It is part of dsdb_replicated_* family of functions
2010-11-11 18:54:20 +00:00
Kamen Mazdrashki
7ada90ec29 s4-test: repl_schema - Make sure LdbError and ERR_NO_SUCH_OBJECT are visible 2010-11-11 18:54:20 +00:00
Kamen Mazdrashki
ee34e2c94b s4-test: Initial implementation for Schema replication black box test 2010-11-08 22:25:08 +00:00
Matthias Dieter Wallnöfer
dbf747b6ff s4:torture/dssync.c - remove unused variable 2010-11-07 10:27:24 +01:00
Jelmer Vernooij
4217734a51 credentials: Lowercase library name,
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov  7 01:48:44 UTC 2010 on sn-devel-104
2010-11-07 01:48:44 +00:00
Jelmer Vernooij
e28cec7817 ldbsamba: Lowercase library name. 2010-11-07 01:57:34 +01:00
Jelmer Vernooij
0878399bd5 samdb: Lowercase library name. 2010-11-07 01:52:13 +01:00
Stefan Metzmacher
0980a3471e s4:DRS-RPC-DSSYNC: don't try to decrypt secret attributes twice
dsdb_extended_replicated_objects_convert() already decrypts the
attributes in place.

This fixes the usage of --option="dssync:print_pwd_blobs=yes".

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Nov  6 13:30:16 UTC 2010 on sn-devel-104
2010-11-06 13:30:15 +00:00
Matthias Dieter Wallnöfer
2a25f7515a s4:torture - suppress printf "%llu" on uint64_t variables warnings
The signed/unsignedness does match (always unsigned). The bitlength (64 bit) on
all regular platforms does also. Therefore simply add a cast to
"unsigned long long".
2010-11-01 11:31:33 +01:00
Kamen Mazdrashki
717b1158a6 idl: Use DRSUAPI_ATTID_ prefix instead of DRSUAPI_ATTRIBUTE_ for ATTID values
Those values are actually ATTID values and such, they are used
for ATTIDs for Attributes, Classes and Syntaxes.
2010-10-31 23:54:04 +00:00
Jelmer Vernooij
3deece5591 s4: Remove the old perl/m4/make/mk-based build system.
The new waf-based build system now has all the same functionality, and
the old build system has been broken for quite some time.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
2010-10-31 02:01:44 +00:00
Andrew Tridgell
256349d827 s4-torture: simplify the depenencies for TORTURE_DRS
it doesn't need to depend on the kitchen sink

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-30 23:49:01 +11:00
Kamen Mazdrashki
c5c69359d9 s4-drs_tests: drs_util_DsAttributeId_to_string() is not used anymore
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Fri Oct 29 09:54:01 UTC 2010 on sn-devel-104
2010-10-29 09:54:01 +00:00
Kamen Mazdrashki
72189aef8d s4-pfm_test: Use single instance of global testing data to test with 2010-10-29 02:31:16 +03:00
Kamen Mazdrashki
fbc3fc2e5f s4-pfm-test: Enrich and fix comment primary for testing data 2010-10-29 02:31:16 +03:00
Kai Blin
b73a05e4e1 s4 net: rename to samba-tool in order to not clash with s3 net
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Oct 28 07:25:16 UTC 2010 on sn-devel-104
2010-10-28 07:25:16 +00:00
Kamen Mazdrashki
6a6c7c9aa2 s4-pfm_test: no need to test created prefixMap contents here - it already tested 2010-10-26 22:17:41 +03:00
Kamen Mazdrashki
45e1c0c151 s4-pfm_test: Tests for dsdb_schema_pfm_attid_from_oid() 2010-10-26 22:17:41 +03:00
Jelmer Vernooij
a74e8be6d1 waf: Stop automaticaly changing dashes to underscores in library names. 2010-10-26 10:17:18 -07:00
Jelmer Vernooij
d9cbcdd410 s4: Drop duplicate 'lib' prefix for private libraries. 2010-10-26 10:17:16 -07:00
Kamen Mazdrashki
8bc2b54c72 s4-test: Extend DRS-msDSIntId test to verify Configuration NC replica also
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Mon Oct 25 13:13:48 UTC 2010 on sn-devel-104
2010-10-25 13:13:48 +00:00
Kamen Mazdrashki
9e7bcaab2d s4-test: Print correct partition DN in msDSIntId test
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sun Oct 24 20:45:21 UTC 2010 on sn-devel-104
2010-10-24 20:45:21 +00:00
Jelmer Vernooij
833480d3ad s4: Rename LIBSAMBA-* to libsamba-* 2010-10-24 00:20:04 +00:00
Jelmer Vernooij
bc44fcc6fb s4: Rename NDR_TABLE to ndr_table. 2010-10-23 22:24:06 +00:00