summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema/tests
Commit message (Collapse)AuthorAgeFilesLines
* schema: Make writing indices flag an enum for a new stateGarming Sam2017-11-241-1/+1
| | | | | | | | | | In schema_load_init, we find that the writing of indices is not locked in any way. This leads to race conditions. To resolve this, we need to have a new state (SCHEMA_COMPARE) which can report to the caller that we need to open a transaction to write the indices. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* dsdb: Do not write the @INDEXLIST or @ATTRIBUTES records during schema refreshAndrew Bartlett2017-05-231-1/+1
| | | | | | | | Instead, write it once in the module init, if required, and after a modify to the schema partition is detected Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* s4-schema: rename dsdb_attribute_from_ldb to dsdb_set_attribute_from_ldb ↵Matthieu Patou2012-04-181-2/+2
| | | | and dsdb_class_from_ldb to dsdb_set_class_from_ldb
* s4:param/provision: pass schema_dn to provision_get_schema()Stefan Metzmacher2011-11-151-1/+1
| | | | metze
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-101-2/+2
| | | | | | | | 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-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-1/+1
| | | | | | | | 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-dsdb: Use dsdb_syntax_ctx in *_drsuapi_to_ldb functionsKamen Mazdrashki2010-08-191-1/+1
|
* s4-dsdb: Use dsdb_syntax_ctx in *_ldb_to_drsuapi functionsKamen Mazdrashki2010-08-191-1/+5
|
* s4:provision Allow a specific prefix map to be loaded into a new schema ↵Andrew Bartlett2010-06-151-1/+1
| | | | | | | | | | | | provision This allows the prefixMap from a DRS server to be used when loading the schema from the local files. This helps us then import other schema with this map in place. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
* s4:dsdb Change dsdb_get_schema() callers to use new talloc argumentAndrew Bartlett2010-03-161-1/+1
| | | | | | | | This choses an appropriate talloc context to attach the schema too, long enough lived to ensure it does not go away before the operation compleates. Andrew Bartlett
* s4/schema(tort): Refactor DSDB-SYNTAX test for better performanceKamen Mazdrashki2009-11-231-35/+86
| | | | | | | Test was implemented as a test fixture so that setup/teardown occurs only once. This should impact test performace as long as provision_get_schema() is a slow function (especially when debugging)
* s4/schema(tort): Inject authOrig attribute into schema loaded for testsKamen Mazdrashki2009-11-231-1/+44
|
* s4/schema(tort): Add test for Object(OR-Name) syntaxKamen Mazdrashki2009-11-231-0/+8
|
* s4/schema(tort): Test LDB_SYNTAX_DN with extended_dn in [GUID;SID;DN] formKamen Mazdrashki2009-11-231-1/+9
|
* s4:dsdb/schema Add more unit tests for DN+Binary syntaxesAndrew Bartlett2009-11-121-4/+9
|
* s4:dsdb Add expected value tests for most DRS syntax conversionsAndrew Bartlett2009-11-121-0/+149
I've left out those for which I could not find an expected value in my default Windows 2003 server's database, and the values that rely on the current prefix map at the time. Andrew Bartlett