r8037: a fairly major update to the internals of ldb. Changes are:
authorAndrew Tridgell <tridge@samba.org>
Fri, 1 Jul 2005 06:21:26 +0000 (06:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:19:01 +0000 (13:19 -0500)
commit944c5844ab441b96d8e5d7b2d151982139d1fab9
treece8fb0ef74253d409567fb6010f9cc54619636d4
parent66d6b1d5783cba98f2f8e1c8eed1bdc26a5bad4f
r8037: a fairly major update to the internals of ldb. Changes are:

 - moved the knowledge of attribute types out of ldb_tdb and into the
   generic ldb code. This allows the ldb_match() message match logic
   to be generic, so it can be used by other backend

 - added the generic ability to load attribute handlers, for
   canonicalisation, compare, ldif read and ldif write. In the future
   this will be used by the schema module to allow us to correctly
   obey the attributetype schema elements

 - added attribute handlers for some of the core ldap attribute types,
   Integer, DirectoryString, DN, ObjectClass etc

 - added automatic registration of attribute handlers for well-known
   attribute names 'cn', 'dc', 'dn', 'ou' and 'objectClass'

 - converted the objectSid special handlers for Samba to the new system

 - added more correct handling of indexing in tdb backend based on the
   attribute canonicalisation function

 - added generic support for subclasses, moving it out of the tdb
   backend. This will be used in future by the schema module

 - fixed several bugs in the dn_explode code. It still needs more
   work, but doesn't corrupt ldb dbs any more.
19 files changed:
source/lib/ldb/Makefile.in
source/lib/ldb/common/attrib_handlers.c [new file with mode: 0644]
source/lib/ldb/common/ldb.c
source/lib/ldb/common/ldb_attributes.c [new file with mode: 0644]
source/lib/ldb/common/ldb_dn.c
source/lib/ldb/common/ldb_ldif.c
source/lib/ldb/common/ldb_match.c [new file with mode: 0644]
source/lib/ldb/common/ldb_utf8.c
source/lib/ldb/config.mk
source/lib/ldb/include/ldb.h
source/lib/ldb/include/ldb_dn.h
source/lib/ldb/include/ldb_private.h
source/lib/ldb/ldb_tdb/ldb_cache.c
source/lib/ldb/ldb_tdb/ldb_index.c
source/lib/ldb/ldb_tdb/ldb_match.c [deleted file]
source/lib/ldb/ldb_tdb/ldb_search.c
source/lib/ldb/ldb_tdb/ldb_tdb.c
source/lib/ldb/ldb_tdb/ldb_tdb.h
source/lib/ldb/samba/ldif_handlers.c