Samba4 Port: hdb & ldb Interfaces
From K5Wiki
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:
- (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