summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema/schema_query.c
AgeCommit message (Collapse)AuthorFilesLines
2010-06-21s4/dsdb-schema: Index attributes on msDS-IntId valueKamen Mazdrashki1-5/+3
O(n) search for dsdb_attribute by msDS-IntId value was replaced by binary-search in ordered index. I've choosen the approach of separate index on msDS-IntId values as I think it is more clear what we are searching for. And it should little bit faster as we can clearly determine in which index to perform the search based on ATTID value - ATTIDs based on prefixMap and ATTIDs based on msDS-IntId are in separate ranges. Other way to implement this index was to merge msDS-IntId values in attributeID_id index. This led me to a shorted but not so obvious implementation.
2010-03-07s4:schema - Change also here counters to "unsigned" where neededMatthias Dieter Wallnöfer1-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.
2010-02-13s4-dsdb: use TYPESAFE_QSORT() in dsdb codeAndrew Tridgell1-7/+3
2010-01-08s4-schema: added dsdb_attribute_by_lDAPDisplayName_ldb_valAndrew Tridgell1-0/+12
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-01-08s4-schema: make ldb_val to string comparison safer with nul terminationAndrew Tridgell1-1/+8
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-01-08s4/dsdb_schema: use msDS-IntId value for attribute look-upKamen Mazdrashki1-0/+9
2009-12-21s4-schema: a unsigned comparison bug in the schema codeAndrew Tridgell1-1/+2
2009-12-15Fixed a problem with duplicate values of allowedAttributesEffective.Nadezhda Ivanova1-1/+10
2009-12-10s4-schema: use binsearch.hAndrew Tridgell1-48/+21
2009-11-05Version 1.0 of the directory service acls module.Nadezhda Ivanova1-2/+12
At this point, support for checks on LDAP add, delete, rename and modify. Old kludge_acl is still there to handle the searches. This module is synchronous as the async version was impossible to debug, will be converted to async after some user testing.
2009-09-21Initial Implementation of the DS objects access checks.Nadezhda Ivanova1-0/+12
Currently disabled. The search will be greatly modified, also the object tree stuff will be simplified.
2009-08-24s4:dsdb Add constAndrew Bartlett1-2/+2
2009-08-05s4:dsdb Don't cast an ldb_val into a const char * for schema lookupsAndrew Bartlett1-28/+115
This removes a number of cases where we did a cast into a const char * of an ldb_val. While convention is to alway have an extra \0 at data[length] in the ldb_val, this is not required, and does not occour at least on build farm host 'svart'. Andrew Bartlett
2009-04-02major upgrade to the ldb attribute handlingAndrew Tridgell1-79/+66
This is all working towards supporting the full WSPP schema without a major performance penalty. We now use binary searches when looking up classes and attributes. We also avoid the loop loading the attributes into ldb, by adding a hook to override the ldb attribute search function in a module. The attributes can thus be loaded once, and then saved as part of the global schema. Also added support for a few more key attribute syntaxes, as needed for the full schema.
2009-02-02s4:dsdb/schema: s/class/sclassStefan Metzmacher1-18/+18
metze
2008-12-23Fix more compiler warnings in various places.Jelmer Vernooij1-19/+19
2008-08-20Split schema_init.c into smaller bits.Andrew Bartlett1-0/+344
This should make schema manipulation a little easier to follow. Andrew Bartlett (This used to be commit 300ed83526e75d834bd23ddd1c1c26ebe2555e0f)