OpenLDAP Faq-O-Matic : OpenLDAP Software FAQ : Configuration : SLAPD Configuration : Backends | |
Slapd supports different backends, i.e. database types.
Backends can be roughly divided in three categories:
ando@sys-net.it, hyc@openldap.org, quanah@openldap.org | |
Builtin and custom backends can be built as dynamic modules and loaded by means of the moduleload <module> statement.
Builtin backends: use the
--enable-<backend>=modswitch at configure. Custom backends: simply write a module that implements the backend functionalities and add a function static BackendInfo bi; int init_module( int argc, char *argv[] ) { memset( &bi, '\0', sizeof( bi ) ); bi.bi_type = "custom" ; bi.bi_init = custom_back_initialize; backend_add( &bi ); return 0; }so that the custom backend initialization function custom_back_initialize() is invoked when the module is loaded. Replace custom with your backend's name. ando@sys-net.it, hyc@openldap.org | |
Common answers in this category: What is a backend? What is a database?
Backend specific answers and subcategories: | |
[New Answer in "Backends"] |
Previous: | Schema |
Next: | Overlays |
|