logo_kerberos.gif

Difference between revisions of "Samba4 Port: hdb & ldb Interfaces"

From K5Wiki
Jump to: navigation, search
(New page: == LDB Interface == source4/kdc/hdb-samba4.c contains the LDB functions. ----)
 
(LDB Interface)
Line 1: Line 1:
 
== LDB Interface ==
 
== LDB Interface ==
source4/kdc/hdb-samba4.c contains the LDB functions.
+
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:
   
  +
# (HDB *)->hdb_dbc = NULL;
  +
# (HDB *)->hdb_open = LDB_open;
  +
# (HDB *)->hdb_close = LDB_close;
  +
# (HDB *)->hdb_fetch = LDB_fetch;
  +
# (HDB *)->hdb_store = LDB_store;
  +
# (HDB *)->hdb_remove = LDB_remove;
  +
# (HDB *)->hdb_firstkey = LDB_firstkey;
  +
# (HDB *)->hdb_nextkey = LDB_nextkey;
  +
# (HDB *)->hdb_lock = LDB_lock;
  +
# (HDB *)->hdb_unlock = LDB_unlock;
  +
# (HDB *)->hdb_rename = LDB_rename;
  +
# (HDB *)->hdb__get = NULL;
  +
# (HDB *)->hdb__put = NULL;
  +
# (HDB *)->hdb__del = NULL;
  +
# (HDB *)->hdb_destroy = LDB_destroy;
   
 
----
 
----
  +
  +
== hdb Interface ==
  +
Samba4's heimdal/lib/hdb/hdb.c defines another set of hdb_ functions:
  +
# hdb_next_enctype2key
  +
# hdb_enctype2key
  +
# hdb_free_key
  +
# hdb_lock
  +
# hdb_unlock
  +
# hdb_free_entry
  +
# hdb_foreach
  +
# hdb_check_db_format
  +
# hdb_init_db
  +
# hdb_list_builtin
  +
# hdb_create

Revision as of 13:28, 11 September 2009

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