1999-09-08 15:06:24 -04:00
|
|
|
/* $OpenLDAP$ */
|
1999-08-04 19:59:13 -04:00
|
|
|
/*
|
2000-05-12 22:47:56 -04:00
|
|
|
* Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
|
1999-08-04 19:59:13 -04:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
1999-08-06 19:07:46 -04:00
|
|
|
|
1999-02-05 04:03:47 -05:00
|
|
|
#ifndef _LDBM_EXTERNAL_H
|
|
|
|
|
#define _LDBM_EXTERNAL_H
|
|
|
|
|
|
|
|
|
|
LDAP_BEGIN_DECL
|
|
|
|
|
|
|
|
|
|
extern int ldbm_back_initialize LDAP_P(( BackendInfo *bi ));
|
|
|
|
|
extern int ldbm_back_open LDAP_P(( BackendInfo *bi ));
|
|
|
|
|
extern int ldbm_back_close LDAP_P(( BackendInfo *bi ));
|
|
|
|
|
extern int ldbm_back_destroy LDAP_P(( BackendInfo *bi ));
|
|
|
|
|
|
|
|
|
|
extern int ldbm_back_db_init LDAP_P(( BackendDB *bd ));
|
|
|
|
|
extern int ldbm_back_db_open LDAP_P(( BackendDB *bd ));
|
|
|
|
|
extern int ldbm_back_db_close LDAP_P(( BackendDB *bd ));
|
|
|
|
|
extern int ldbm_back_db_destroy LDAP_P(( BackendDB *bd ));
|
|
|
|
|
|
|
|
|
|
extern int ldbm_back_db_config LDAP_P(( BackendDB *bd,
|
2000-05-21 23:46:57 -04:00
|
|
|
const char *fname, int lineno,
|
|
|
|
|
int argc, char **argv ));
|
1999-02-05 04:03:47 -05:00
|
|
|
|
1999-12-07 23:37:59 -05:00
|
|
|
extern int ldbm_back_extended LDAP_P(( BackendDB *bd,
|
|
|
|
|
Connection *conn, Operation *op,
|
2000-05-21 23:46:57 -04:00
|
|
|
const char *reqoid,
|
1999-12-07 23:37:59 -05:00
|
|
|
struct berval *reqdata,
|
1999-12-15 18:22:47 -05:00
|
|
|
char **rspoid,
|
1999-12-07 23:37:59 -05:00
|
|
|
struct berval **rspdata,
|
1999-12-09 23:52:32 -05:00
|
|
|
LDAPControl *** rspctrls,
|
2000-05-21 23:46:57 -04:00
|
|
|
const char **text,
|
1999-12-15 18:22:47 -05:00
|
|
|
struct berval *** refs ));
|
1999-12-07 23:37:59 -05:00
|
|
|
|
1999-02-05 04:03:47 -05:00
|
|
|
extern int ldbm_back_bind LDAP_P(( BackendDB *bd,
|
|
|
|
|
Connection *conn, Operation *op,
|
2000-05-21 23:46:57 -04:00
|
|
|
const char *dn, const char *ndn, int method,
|
1999-06-28 23:29:26 -04:00
|
|
|
struct berval *cred, char** edn ));
|
1999-02-05 04:03:47 -05:00
|
|
|
|
|
|
|
|
extern int ldbm_back_unbind LDAP_P(( BackendDB *bd,
|
|
|
|
|
Connection *conn, Operation *op ));
|
|
|
|
|
|
|
|
|
|
extern int ldbm_back_search LDAP_P(( BackendDB *bd,
|
2000-05-21 23:46:57 -04:00
|
|
|
Connection *conn, Operation *op,
|
|
|
|
|
const char *base, const char *nbase,
|
|
|
|
|
int scope, int deref, int sizelimit, int timelimit,
|
|
|
|
|
Filter *filter, const char *filterstr,
|
|
|
|
|
char **attrs, int attrsonly ));
|
1999-02-05 04:03:47 -05:00
|
|
|
|
2000-02-06 16:09:44 -05:00
|
|
|
extern int ldbm_back_compare LDAP_P(( BackendDB *bd,
|
|
|
|
|
Connection *conn, Operation *op,
|
2000-05-21 23:46:57 -04:00
|
|
|
const char *dn, const char *ndn,
|
|
|
|
|
AttributeAssertion *ava ));
|
1999-02-05 04:03:47 -05:00
|
|
|
|
|
|
|
|
extern int ldbm_back_modify LDAP_P(( BackendDB *bd,
|
|
|
|
|
Connection *conn, Operation *op,
|
2000-05-21 23:46:57 -04:00
|
|
|
const char *dn, const char *ndn, Modifications *ml ));
|
1999-02-05 04:03:47 -05:00
|
|
|
|
|
|
|
|
extern int ldbm_back_modrdn LDAP_P(( BackendDB *bd,
|
|
|
|
|
Connection *conn, Operation *op,
|
2000-05-21 23:46:57 -04:00
|
|
|
const char *dn, const char *ndn,
|
|
|
|
|
const char* newrdn, int deleteoldrdn,
|
|
|
|
|
const char *newSuperior ));
|
1999-02-05 04:03:47 -05:00
|
|
|
|
|
|
|
|
extern int ldbm_back_add LDAP_P(( BackendDB *bd,
|
|
|
|
|
Connection *conn, Operation *op, Entry *e ));
|
|
|
|
|
|
|
|
|
|
extern int ldbm_back_delete LDAP_P(( BackendDB *bd,
|
2000-05-21 23:46:57 -04:00
|
|
|
Connection *conn, Operation *op,
|
|
|
|
|
const char *dn, const char *ndn ));
|
1999-02-05 04:03:47 -05:00
|
|
|
|
|
|
|
|
extern int ldbm_back_abandon LDAP_P(( BackendDB *bd,
|
1999-06-18 19:53:05 -04:00
|
|
|
Connection *conn, Operation *op, ber_int_t msgid ));
|
1999-02-05 04:03:47 -05:00
|
|
|
|
|
|
|
|
extern int ldbm_back_group LDAP_P(( BackendDB *bd,
|
2000-05-21 23:46:57 -04:00
|
|
|
Entry *target,
|
2000-05-28 12:36:34 -04:00
|
|
|
const char* gr_ndn,
|
|
|
|
|
const char* op_ndn,
|
|
|
|
|
ObjectClass* group_oc,
|
2000-02-14 15:57:34 -05:00
|
|
|
AttributeDescription* group_at));
|
1999-02-05 04:03:47 -05:00
|
|
|
|
1999-08-17 15:00:59 -04:00
|
|
|
|
|
|
|
|
/* hooks for slap tools */
|
|
|
|
|
extern int ldbm_tool_entry_open LDAP_P(( BackendDB *be, int mode ));
|
|
|
|
|
extern int ldbm_tool_entry_close LDAP_P(( BackendDB *be ));
|
|
|
|
|
extern ID ldbm_tool_entry_first LDAP_P(( BackendDB *be ));
|
|
|
|
|
extern ID ldbm_tool_entry_next LDAP_P(( BackendDB *be ));
|
|
|
|
|
extern Entry* ldbm_tool_entry_get LDAP_P(( BackendDB *be, ID id ));
|
|
|
|
|
extern ID ldbm_tool_entry_put LDAP_P(( BackendDB *be, Entry *e ));
|
2000-02-28 16:16:05 -05:00
|
|
|
|
|
|
|
|
extern int ldbm_tool_index_attr LDAP_P(( BackendDB *be,
|
|
|
|
|
AttributeDescription* desc ));
|
|
|
|
|
extern int ldbm_tool_index_change LDAP_P(( BackendDB *be,
|
|
|
|
|
AttributeDescription* desc,
|
|
|
|
|
struct berval **bv, ID id, int op ));
|
1999-08-17 15:00:59 -04:00
|
|
|
extern int ldbm_tool_sync LDAP_P(( BackendDB *be ));
|
|
|
|
|
|
|
|
|
|
|
1999-02-05 04:03:47 -05:00
|
|
|
LDAP_END_DECL
|
|
|
|
|
|
|
|
|
|
#endif /* _LDBM_EXTERNAL_H */
|
|
|
|
|
|