Revision as of 17:28, 24 September 2009 by Edewata (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Schema Syntax

struct ldb_schema_syntax {
    const char *name;
    ldb_attr_handler_t ldif_read_fn;
    ldb_attr_handler_t ldif_write_fn;
    ldb_attr_handler_t canonicalise_fn;
    ldb_attr_comparison_t comparison_fn;

Attribute handler structure.

  • name: The attribute name
  • ldif_read_fn: convert from ldif to binary format
  • ldif_write_fn: convert from binary to ldif format
  • canonicalise_fn: canonicalise a value, for use by indexing and dn construction
  • comparison_fn: compare two values

Schema Attribute

struct ldb_schema_attribute {
    const char *name;
    unsigned flags;
    const struct ldb_schema_syntax *syntax;



const struct ldb_schema_attribute *ldb_schema_attribute_by_name(struct ldb_context *ldb,
    const char *name);