1 /* init.c - initialize passwd backend */
4 * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
5 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
12 #include <ac/socket.h>
15 #include "back-passwd.h"
17 ldap_pvt_thread_mutex_t passwd_mutex;
19 #ifdef SLAPD_PASSWD_DYNAMIC
21 int init_module(int argc, char *argv[]) {
24 memset( &bi, '\0', sizeof(bi) );
25 bi.bi_type = "passwd";
26 bi.bi_init = passwd_back_initialize;
32 #endif /* SLAPD_PASSWD_DYNAMIC */
35 passwd_back_initialize(
39 ldap_pvt_thread_mutex_init( &passwd_mutex );
44 bi->bi_destroy = passwd_back_destroy;
47 bi->bi_db_config = passwd_back_db_config;
50 bi->bi_db_destroy = 0;
54 bi->bi_op_search = passwd_back_search;
55 bi->bi_op_compare = 0;
60 bi->bi_op_abandon = 0;
64 bi->bi_chk_referrals = 0;
66 bi->bi_connection_init = 0;
67 bi->bi_connection_destroy = 0;
77 ldap_pvt_thread_mutex_destroy( &passwd_mutex );