logo_kerberos.gif

Samba4 Port: hdb & ldb Interfaces

From K5Wiki
Revision as of 13:28, 11 September 2009 by Don (talk | contribs) (LDB Interface)

Jump to: navigation, search

LDB Interface

source4/kdc/hdb-samba4.c contains the LDB functions. In Samba4's heimdal/lib/hdb/hdb.h, Heimdal's HDB structure contains "hdb-" prefixed function-pointers to the LDB functions:

  1. (HDB *)->hdb_dbc = NULL;
  2. (HDB *)->hdb_open = LDB_open;
  3. (HDB *)->hdb_close = LDB_close;
  4. (HDB *)->hdb_fetch = LDB_fetch;
  5. (HDB *)->hdb_store = LDB_store;
  6. (HDB *)->hdb_remove = LDB_remove;
  7. (HDB *)->hdb_firstkey = LDB_firstkey;
  8. (HDB *)->hdb_nextkey = LDB_nextkey;
  9. (HDB *)->hdb_lock = LDB_lock;
  10. (HDB *)->hdb_unlock = LDB_unlock;
  11. (HDB *)->hdb_rename = LDB_rename;
  12. (HDB *)->hdb__get = NULL;
  13. (HDB *)->hdb__put = NULL;
  14. (HDB *)->hdb__del = NULL;
  15. (HDB *)->hdb_destroy = LDB_destroy;

hdb Interface

Samba4's heimdal/lib/hdb/hdb.c defines another set of hdb_ functions:

  1. hdb_next_enctype2key
  2. hdb_enctype2key
  3. hdb_free_key
  4. hdb_lock
  5. hdb_unlock
  6. hdb_free_entry
  7. hdb_foreach
  8. hdb_check_db_format
  9. hdb_init_db
  10. hdb_list_builtin
  11. hdb_create