summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema/schema_inferiors.c
Commit message (Collapse)AuthorAgeFilesLines
* dsdb-schema: schema_fill_possible_inferiors() should rebuild everthingStefan Metzmacher2013-05-231-2/+2
| | | | | | | | | commit cd7f3fd07215a7b8372b6b623faed02ae1310cb1 reverted the change of commit c2853f55fc603d4875bb1e50a1cbf409df0421ea. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* dsdb-schema: remove looping on all schema classes for system_possible_inferriorMatthieu Patou2013-05-201-34/+19
| | | | | | | | The logic to populate possible inferriors and system possible inferriors is the same so instead of looping twice we do both attributes (depending on the type of the class) in the same loop Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* dsdb-schema: make sure we build [system]PossibleInferiors completelyStefan Metzmacher2013-01-211-0/+4
| | | | | | | | | Otherwise callers like dsdb_schema_copy_shallow() will corrupt the talloc hierarchie. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* dsdb-schema: make sure use clean caches in schema_inferiors.cStefan Metzmacher2013-01-211-24/+25
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* dsdb-schema: make schema_subclasses_order_recurse() staticStefan Metzmacher2013-01-211-3/+3
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: ensure we setup the dn_format field in schema attributesAndrew Tridgell2011-08-091-31/+0
| | | | | | this ensures we setup dn_format when we do runtime schema changes Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added dn_format attribute of a dsdb_attributeAndrew Tridgell2011-08-041-2/+5
| | | | | | | this is faster than string comparisons during searches at runtime Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* s4-dsdb: setup a one_way_link attribute on schema attributesAndrew Tridgell2011-08-041-0/+28
| | | | | | | this allows us to quickly determine if a DN is a one way link Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* s4-schema: More verbose error log when subClassOf is not found in schemaKamen Mazdrashki2010-08-031-1/+3
| | | | | | Error message show failing classSchema object but not the specific value for the failure, which makes diagnostics by log files really hard.
* s4: fix comment typosKamen Mazdrashki2010-08-031-3/+3
|
* s4:schema - Change also here counters to "unsigned" where neededMatthias Dieter Wallnöfer2010-03-071-6/+6
| | | | | | Counters which are used in the way "for (i = 0; array[i] != NULL; i++)" I modified to "unsigned" since for sure we don't want to have negative array indexes there.
* s4:schema - Make some more (result) variables const and fix up warnings with ↵Matthias Dieter Wallnöfer2009-12-011-49/+68
| | | | "discard_const_p"
* s4:dsdb/schema: let schema_supclasses() return the correct pointerStefan Metzmacher2009-11-171-2/+2
| | | | | | str_list_unique() changes the pointer via talloc_realloc(). metze
* s4:schema Add some error checking to the schema loadAndrew Bartlett2009-10-121-6/+21
|
* s4:schema_inferiors - Fix wrong checkMatthias Dieter Wallnöfer2009-10-031-1/+1
|
* s4:dsdb add systemPossibleInferiors to schema codeAndrew Bartlett2009-10-031-0/+20
| | | | | | | This allows us to figure out what the system can add, which will not be in possibleInferiors due to the systemOnly flag. Andrew Bartlett
* Handle dsdb_class_by_lDAPDisplayName returned values in schema_inferiors.cAnatoliy Atanasov2009-09-191-0/+8
|
* s4:schema Add code to provide an index into the subClass treeAndrew Bartlett2009-09-151-1/+20
| | | | | | | In time, this should avoid the astounding (order) complexity of the objectclass sorting in objectclass.c eventually. Andrew Bartlett
* s4/schema: don't crash if we don't have subClassOfAndrew Tridgell2009-09-101-2/+7
|
* fixed the pull of drs schema elementsAndrew Tridgell2009-07-021-0/+79
| | | | | | | | The previous code incorrectly assumed that attributes such as subClassOf come over the wire as strings. In fact they come over as 32 bit integers which refer to goversIDs. We have to post-process these as it sometimes happens that a governsID comes over the wire before the record that defines what it means.
* dsdb:schema Use str_list_make_empty() to create an empty listAndrew Bartlett2009-05-141-5/+5
|
* make the memory usage of possibleInferiors much more efficientAndrew Tridgell2009-04-091-20/+31
|
* fixed the possibleInferiors calculation so it now passes the testAndrew Tridgell2009-04-091-26/+28
| | | | | We are probably still using more memory here than we need to. That needs to be looked at.
* Make the schema_inferiors generation code to compileAndrew Bartlett2009-04-081-69/+74
| | | | | | Sadly it still segfaults at this stage Andrew Bartlett
* first cut at a C version of the possible inferiors codeAndrew Tridgell2009-04-071-0/+172