summaryrefslogtreecommitdiff
path: root/source4/torture/drs/unit
Commit message (Collapse)AuthorAgeFilesLines
* werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in ↵Günther Deschner2016-09-281-2/+2
| | | | | | | | | source4/torture/drs/unit/prefixmap_tests.c Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:dsdb/schema: don't update the in memory schema->prefixmap without ↵Stefan Metzmacher2016-08-111-21/+36
| | | | | | | | | reloading the schema! BUG: https://bugzilla.samba.org/show_bug.cgi?id=12128 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:dsdb/schema: don't treat an older remote schema as SCHEMA_MISMATCHStefan Metzmacher2016-08-111-2/+69
| | | | | | | | | | | | | It's perfectly valid to replicate from a partner with an older schema version, otherwise schema changes would block any other replication until every dc in the forest has the schema changes. The avoids an endless loop trying to get schema in sync with the partner. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12115 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:dsdb/schema: store struct dsdb_schema_info instead of a hexstringStefan Metzmacher2016-08-112-30/+31
| | | | | | | | | This will simplify the schema checking in future. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12115 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* source4/torture: Fix prototypes for all functions.Jelmer Vernooij2011-03-191-0/+2
|
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-101-1/+1
| | | | | | | | 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>
* s4-dsdb: pass parent request to dsdb_module_*() functions Andrew Tridgell2011-01-171-4/+4
| | | | | | | this preserves the request hierarchy for dsdb_module_*() calls inside dsdb ldb modules Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-112-2/+2
| | | | | | | | 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
* s4-pfm_test: Use single instance of global testing data to test withKamen Mazdrashki2010-10-291-52/+24
|
* s4-pfm-test: Enrich and fix comment primary for testing dataKamen Mazdrashki2010-10-291-5/+12
|
* s4-pfm_test: no need to test created prefixMap contents here - it already testedKamen Mazdrashki2010-10-261-3/+0
|
* s4-pfm_test: Tests for dsdb_schema_pfm_attid_from_oid()Kamen Mazdrashki2010-10-261-0/+117
|
* s4-dsdb: moved a bunch of fuctions from schema/schema_info_attr.c to ↵Andrew Tridgell2010-10-211-14/+15
| | | | | | | | | | | | | | samdb/ldb_modules/schema_util.c these functions operate on ldb_modules, so they should be in the ldb_modules directory. They also should return ldb errors codes, not WERROR codes, as otherwise the error can be hidden from the ldap caller This re-arrangement fixes a dependency loop in the schema/samdb code. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Kamen Mazdrashki <kamenim@samba.org>
* s4-test: yet another test for ATTID-ot-OID conversionKamen Mazdrashki2010-09-211-2/+7
| | | | | | Test with a valid ATTID for prefixMap lookups, but supplied ATTID is with index not to be found in the test prefixMap
* s4-test: Add unit test for dsdb_schema_info_cmp()Kamen Mazdrashki2010-09-171-0/+81
|
* s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.Stefan Metzmacher2010-06-161-1/+1
| | | | | | | | | This is needed to remove samba specifc symbols from the bundled ldb, in order to get the ABI right. metze Signed-off-by: Andreas Schneider <asn@samba.org>
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-182-4/+4
|
* s4/tort: Add simple unit test for dsdb_schema_info object creationKamen Mazdrashki2010-04-291-0/+35
|
* s4/dsdb: schemaInfo revision may be 0Kamen Mazdrashki2010-04-291-19/+10
| | | | | In case schemaInfo value is still not set, WinAD supplies schemaInfo blob with revision = 0 and GUID_ZERO
* s4/dsdb: remove unused dsdb_schema_info_create() functionKamen Mazdrashki2010-04-291-25/+0
|
* s4-drs: accept zero revision in drs selftestAndrew Tridgell2010-04-211-0/+5
| | | | | | | Kamen, please have a look at this. We need to accept revision zero as w2k8r2 sends it during initial schema replication Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* Revert "s4:prefer "samdb_*_dn" basedn calls over the "ldb_get_*_dn" functions"Matthias Dieter Wallnöfer2010-04-132-2/+2
| | | | | We should use the "ldb_get_*_basedn" calls since they are available in the LDB library.
* s4/dsdb: Let caller to control if valid invocationId is critical or ↵Kamen Mazdrashki2010-04-091-1/+1
| | | | zero-guid is acceptable
* s4/test: Use drsut_schemainfo_new() instead of SCHEMA_INFO_DEFAULT local defineKamen Mazdrashki2010-04-091-18/+30
|
* s4/tort: Unit test for schemaInfo implementationKamen Mazdrashki2010-04-091-0/+579
|
* s4-tort: Test handling of different ATTID values in prefixMap interface.Kamen Mazdrashki2009-12-211-0/+44
| | | | | | | It turns out ATTID values are separated in ranges. Ref: MS-ADTS, 3.1.1.2.6 ATTRTYP Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-drstest: Don't remove temp LDB so it can be reviewed if necessaryKamen Mazdrashki2009-12-211-1/+0
| | | | | | | This test makes temp directory which is not removed so why not just leave LDB also. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-drstest: don't use getenv("LDB_URL") in test suitesAndrew Tridgell2009-11-271-18/+7
| | | | | | | I was stumped for a while as to why the drs test suite was failing for me. It turned out that it looked for LDB_URL in the environment, and used it if set. I had it set in my terminal, and it was happily munching on my sam.ldb while testing. Quite a cute bug really :-)
* s4/drs(tort): _torture_drs_pfm_compare_same() should not fail tctx by itselfKamen Mazdrashki2009-11-061-19/+35
| | | | | | | | The responsibility for failing torture_context sould be for the caller. This gives better control in for test case driver function. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs(tort): Test case for dsdb_create_prefix_mapping() implementedKamen Mazdrashki2009-11-061-0/+88
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs(tort): refactor - SCHEMA_INFO_DEFAULT defined on file scopeKamen Mazdrashki2009-11-061-9/+11
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs(tort): prefixMap read/write in LDB test caseKamen Mazdrashki2009-11-061-0/+43
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs(tort): Create temporary LDB for testing purposesKamen Mazdrashki2009-11-061-0/+67
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs(tort): prefixMap to/from ldb_val serialization test caseKamen Mazdrashki2009-11-061-2/+61
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs: dsdb_schema_pfm_from_drsuapi_pfm() to accept partial drsuapi_prefixMapKamen Mazdrashki2009-11-061-1/+11
| | | | | | | | | | "partial drsuapi_prefixMap" is a prefix map without last entry being special - i.e. map that does not contains schema_info entry. Test for dsdb_schema_pfm_from_drsuapi_pfm() were also extended to cover both 'full' and 'partial' map conversion. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs(tort): test for schema_prefixMap to/from drsuapi_prefixMap conversionKamen Mazdrashki2009-11-061-0/+51
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs(tort): implement prefixMap comparison functionKamen Mazdrashki2009-11-061-13/+23
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture/drs: move intern/ => unit/Stefan Metzmacher2009-11-061-0/+400
metze