3 * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
9 #include <ldap_cdefs.h>
13 LIBSLAPD_F( int ) schema_init_done;
14 LIBSLAPD_F( struct slap_internal_schema ) slap_schema;
16 LIBSLAPD_F (int) slap_str2ad LDAP_P((
18 AttributeDescription **ad,
21 LIBSLAPD_F (int) slap_bv2ad LDAP_P((
23 AttributeDescription **ad,
26 LIBSLAPD_F (AttributeDescription *) ad_dup LDAP_P((
27 AttributeDescription *desc ));
29 LIBSLAPD_F (void) ad_free LDAP_P((
30 AttributeDescription *desc,
33 #define ad_cmp(l,r) ( strcasecmp( \
34 (l)->ad_cname->bv_val, (r)->ad_cname->bv_val ))
36 LIBSLAPD_F (int) is_ad_subtype LDAP_P((
37 AttributeDescription *sub,
38 AttributeDescription *super ));
40 LIBSLAPD_F (int) ad_inlist LDAP_P((
41 AttributeDescription *desc,
48 LIBSLAPD_F (int) access_allowed LDAP_P((
49 Backend *be, Connection *conn, Operation *op,
50 Entry *e, AttributeDescription *desc, struct berval *val,
51 slap_access_t access ));
52 LIBSLAPD_F (int) acl_check_modlist LDAP_P((
53 Backend *be, Connection *conn, Operation *op,
54 Entry *e, Modifications *ml ));
56 LIBSLAPD_F (void) acl_append( AccessControl **l, AccessControl *a );
62 LIBSLAPD_F (void) parse_acl LDAP_P(( Backend *be,
63 const char *fname, int lineno,
64 int argc, char **argv ));
66 LIBSLAPD_F (char *) access2str LDAP_P(( slap_access_t access ));
67 LIBSLAPD_F (slap_access_t) str2access LDAP_P(( const char *str ));
69 #define ACCESSMASK_MAXLEN sizeof("unknown (+wrscan)")
70 LIBSLAPD_F (char *) accessmask2str LDAP_P(( slap_access_mask_t mask, char* ));
71 LIBSLAPD_F (slap_access_mask_t) str2accessmask LDAP_P(( const char *str ));
77 LIBSLAPD_F (void) at_config LDAP_P(( const char *fname, int lineno, int argc, char **argv ));
78 LIBSLAPD_F (AttributeType *) at_find LDAP_P(( const char *name ));
79 LIBSLAPD_F (int) at_find_in_list LDAP_P(( AttributeType *sat, AttributeType **list ));
80 LIBSLAPD_F (int) at_append_to_list LDAP_P(( AttributeType *sat, AttributeType ***listp ));
81 LIBSLAPD_F (int) at_delete_from_list LDAP_P(( int pos, AttributeType ***listp ));
82 LIBSLAPD_F (int) at_schema_info LDAP_P(( Entry *e ));
83 LIBSLAPD_F (int) at_add LDAP_P(( LDAP_ATTRIBUTE_TYPE *at, const char **err ));
85 LIBSLAPD_F (int) is_at_subtype LDAP_P((
87 AttributeType *super ));
89 LIBSLAPD_F (int) is_at_syntax LDAP_P((
93 # define at_canonical_name(at) ((at)->sat_cname)
100 LIBSLAPD_F (void) attr_free LDAP_P(( Attribute *a ));
101 LIBSLAPD_F (Attribute *) attr_dup LDAP_P(( Attribute *a ));
103 LIBSLAPD_F (int) attr_merge LDAP_P(( Entry *e,
104 AttributeDescription *desc,
105 struct berval **vals ));
106 LIBSLAPD_F (Attribute *) attrs_find LDAP_P(( Attribute *a, AttributeDescription *desc ));
107 LIBSLAPD_F (Attribute *) attr_find LDAP_P(( Attribute *a, AttributeDescription *desc ));
108 LIBSLAPD_F (int) attr_delete LDAP_P(( Attribute **attrs, AttributeDescription *desc ));
110 LIBSLAPD_F (void) attrs_free LDAP_P(( Attribute *a ));
111 LIBSLAPD_F (Attribute *) attrs_dup LDAP_P(( Attribute *a ));
117 LIBSLAPD_F (int) get_ava LDAP_P((
119 AttributeAssertion **ava,
121 const char **text ));
122 LIBSLAPD_F (void) ava_free LDAP_P((
123 AttributeAssertion *ava,
130 LIBSLAPD_F (int) backend_init LDAP_P((void));
131 LIBSLAPD_F (int) backend_add LDAP_P((BackendInfo *aBackendInfo));
132 LIBSLAPD_F (int) backend_num LDAP_P((Backend *be));
133 LIBSLAPD_F (int) backend_startup LDAP_P((Backend *be));
134 LIBSLAPD_F (int) backend_shutdown LDAP_P((Backend *be));
135 LIBSLAPD_F (int) backend_destroy LDAP_P((void));
137 LIBSLAPD_F (BackendInfo *) backend_info LDAP_P(( const char *type ));
138 LIBSLAPD_F (BackendDB *) backend_db_init LDAP_P(( const char *type ));
140 LIBSLAPD_F (BackendDB *) select_backend LDAP_P(( const char * dn ));
142 LIBSLAPD_F (int) be_issuffix LDAP_P(( Backend *be, const char *suffix ));
143 LIBSLAPD_F (int) be_isroot LDAP_P(( Backend *be, const char *ndn ));
144 LIBSLAPD_F (int) be_isroot_pw LDAP_P(( Backend *be, const char *ndn, struct berval *cred ));
145 LIBSLAPD_F (char *) be_root_dn LDAP_P(( Backend *be ));
146 LIBSLAPD_F (int) be_entry_release_rw LDAP_P(( Backend *be, Entry *e, int rw ));
147 #define be_entry_release_r( be, e ) be_entry_release_rw( be, e, 0 )
148 #define be_entry_release_w( be, e ) be_entry_release_rw( be, e, 1 )
150 LIBSLAPD_F (int) backend_unbind LDAP_P((Connection *conn, Operation *op));
152 LIBSLAPD_F( int ) backend_check_controls LDAP_P((
156 const char **text ));
158 LIBSLAPD_F( int ) backend_check_referrals LDAP_P((
164 const char **text ));
166 LIBSLAPD_F (int) backend_connection_init LDAP_P((Connection *conn));
167 LIBSLAPD_F (int) backend_connection_destroy LDAP_P((Connection *conn));
169 LIBSLAPD_F (int) backend_group LDAP_P((Backend *be,
173 ObjectClass *group_oc,
174 AttributeDescription *group_at
177 LIBSLAPD_F (Attribute *) backend_operational( Backend *, Entry * );
186 #define ch_malloc malloc
187 #define ch_realloc realloc
188 #define ch_calloc calloc
189 #define ch_strdup strdup
193 LIBSLAPD_F (void *) ch_malloc LDAP_P(( ber_len_t size ));
194 LIBSLAPD_F (void *) ch_realloc LDAP_P(( void *block, ber_len_t size ));
195 LIBSLAPD_F (void *) ch_calloc LDAP_P(( ber_len_t nelem, ber_len_t size ));
196 LIBSLAPD_F (char *) ch_strdup LDAP_P(( const char *string ));
197 LIBSLAPD_F (void) ch_free LDAP_P(( void * ));
209 LIBSLAPD_F (void) charray_add LDAP_P(( char ***a, const char *s ));
210 LIBSLAPD_F (void) charray_merge LDAP_P(( char ***a, char **s ));
211 LIBSLAPD_F (void) charray_free LDAP_P(( char **array ));
212 LIBSLAPD_F (int) charray_inlist LDAP_P(( char **a, const char *s ));
213 LIBSLAPD_F (char **) charray_dup LDAP_P(( char **a ));
214 LIBSLAPD_F (char **) str2charray LDAP_P(( const char *str, const char *brkstr ));
219 LIBSLAPD_F (int) get_ctrls LDAP_P((
224 LIBSLAPD_F (int) get_manageDSAit LDAP_P(( Operation *op ));
230 LIBSLAPD_F (int) read_config LDAP_P(( const char *fname ));
236 LIBSLAPD_F (int) slap_index2prefix LDAP_P(( int indextype ));
237 LIBSLAPD_F (int) slap_str2index LDAP_P(( const char *str, slap_index *idx ));
242 LIBSLAPD_F (int) connections_init LDAP_P((void));
243 LIBSLAPD_F (int) connections_shutdown LDAP_P((void));
244 LIBSLAPD_F (int) connections_destroy LDAP_P((void));
245 LIBSLAPD_F (int) connections_timeout_idle LDAP_P((time_t));
247 LIBSLAPD_F (long) connection_init LDAP_P((
251 const char* peername,
252 const char* sockname,
255 LIBSLAPD_F (void) connection_closing LDAP_P(( Connection *c ));
256 LIBSLAPD_F (int) connection_state_closing LDAP_P(( Connection *c ));
257 LIBSLAPD_F (const char *) connection_state2str LDAP_P(( int state )) LDAP_GCCATTR((const));
259 LIBSLAPD_F (int) connection_write LDAP_P((ber_socket_t s));
260 LIBSLAPD_F (int) connection_read LDAP_P((ber_socket_t s));
262 LIBSLAPD_F (unsigned long) connections_nextid(void);
264 LIBSLAPD_F (Connection *) connection_first LDAP_P((ber_socket_t *));
265 LIBSLAPD_F (Connection *) connection_next LDAP_P((Connection *, ber_socket_t *));
266 LIBSLAPD_F (void) connection_done LDAP_P((Connection *));
272 LIBSLAPD_F (char *) dn_validate LDAP_P(( char *dn ));
273 LIBSLAPD_F (char *) dn_normalize LDAP_P(( char *dn ));
274 LIBSLAPD_F (char *) dn_parent LDAP_P(( Backend *be, const char *dn ));
275 LIBSLAPD_F (char **) dn_subtree LDAP_P(( Backend *be, const char *dn ));
276 LIBSLAPD_F (char *) dn_rdn LDAP_P(( Backend *be, const char *dn ));
277 LIBSLAPD_F (int) dn_issuffix LDAP_P(( const char *dn, const char *suffix ));
278 LIBSLAPD_F (int) rdn_validate LDAP_P(( const char* str ));
279 LIBSLAPD_F (char *) rdn_attr_value LDAP_P(( const char * rdn ));
280 LIBSLAPD_F (char *) rdn_attr_type LDAP_P(( const char * rdn ));
282 LIBSLAPD_F (void) build_new_dn LDAP_P(( char ** new_dn,
285 const char * newrdn ));
290 LIBSLAPD_F (int) entry_destroy LDAP_P((void));
292 LIBSLAPD_F (Entry *) str2entry LDAP_P(( char *s ));
293 LIBSLAPD_F (char *) entry2str LDAP_P(( Entry *e, int *len ));
294 LIBSLAPD_F (void) entry_free LDAP_P(( Entry *e ));
296 LIBSLAPD_F (int) entry_cmp LDAP_P(( Entry *a, Entry *b ));
297 LIBSLAPD_F (int) entry_dn_cmp LDAP_P(( Entry *a, Entry *b ));
298 LIBSLAPD_F (int) entry_id_cmp LDAP_P(( Entry *a, Entry *b ));
304 #define SLAPD_EXTOP_GETVERSION 0
305 #define SLAPD_EXTOP_GETPROTO 1
306 #define SLAPD_EXTOP_GETAUTH 2
307 #define SLAPD_EXTOP_GETDN 3
308 #define SLAPD_EXTOP_GETCLIENT 4
310 typedef int (*SLAP_EXTOP_CALLBACK_FN) LDAP_P((
311 Connection *conn, Operation *op,
312 int msg, int arg, void *argp ));
314 typedef int (*SLAP_EXTOP_MAIN_FN) LDAP_P((
315 SLAP_EXTOP_CALLBACK_FN,
316 Connection *conn, Operation *op,
318 struct berval * reqdata,
320 struct berval ** rspdata,
321 LDAPControl *** rspctrls,
323 struct berval *** refs ));
325 typedef int (*SLAP_EXTOP_GETOID_FN) LDAP_P((
326 int index, char *oid, int blen ));
328 LIBSLAPD_F (int) load_extension LDAP_P((const void *module, const char *file_name));
329 LIBSLAPD_F (char *) get_supported_extension LDAP_P((int index));
331 LIBSLAPD_F (int) load_extop LDAP_P((
333 SLAP_EXTOP_MAIN_FN ext_main ));
335 LIBSLAPD_F (int) extops_init LDAP_P(( void ));
337 LIBSLAPD_F (int) extops_kill LDAP_P(( void ));
339 LIBSLAPD_F (char *) get_supported_extop LDAP_P((int index));
345 LIBSLAPD_F (int) get_filter LDAP_P((
350 const char **text ));
352 LIBSLAPD_F (void) filter_free LDAP_P(( Filter *f ));
353 LIBSLAPD_F (void) filter_print LDAP_P(( Filter *f ));
359 LIBSLAPD_F (int) test_filter LDAP_P((
360 Backend *be, Connection *conn, Operation *op, Entry *e, Filter *f ));
366 LIBSLAPD_F (FILE *) lock_fopen LDAP_P(( const char *fname, const char *type, FILE **lfp ));
367 LIBSLAPD_F (int) lock_fclose LDAP_P(( FILE *fp, FILE *lfp ));
372 * should be relocated to separate file
374 LIBSLAPD_F( void ) slap_mod_free LDAP_P(( Modification *mod, int freeit ));
375 LIBSLAPD_F( void ) slap_mods_free LDAP_P(( Modifications *mods ));
376 LIBSLAPD_F( void ) slap_modlist_free LDAP_P(( LDAPModList *ml ));
378 LIBSLAPD_F( int ) slap_modlist2mods(
381 Modifications **mods,
384 LIBSLAPD_F( int ) slap_mods_opattrs(
386 Modifications **modlist,
395 LIBSLAPD_F (int) module_init LDAP_P(( void ));
396 LIBSLAPD_F (int) module_kill LDAP_P(( void ));
398 LIBSLAPD_F (int) load_null_module(
399 const void *module, const char *file_name);
400 LIBSLAPD_F (int) load_extop_module(
401 const void *module, const char *file_name);
403 LIBSLAPD_F (int) module_load LDAP_P((
404 const char* file_name,
405 int argc, char *argv[] ));
406 LIBSLAPD_F (int) module_path LDAP_P(( const char* path ));
408 LIBSLAPD_F (void) *module_resolve LDAP_P((
409 const void *module, const char *name));
411 #endif /* SLAPD_MODULES */
416 LIBSLAPD_F (char *) supportedControls[];
418 LIBSLAPD_F (int) monitor_info LDAP_P((
419 Entry **entry, const char **text ));
425 LIBSLAPD_F (void) slap_op_free LDAP_P(( Operation *op ));
426 LIBSLAPD_F (Operation *) slap_op_alloc LDAP_P((
427 BerElement *ber, ber_int_t msgid,
428 ber_tag_t tag, ber_int_t id ));
430 LIBSLAPD_F (int) slap_op_add LDAP_P(( Operation **olist, Operation *op ));
431 LIBSLAPD_F (int) slap_op_remove LDAP_P(( Operation **olist, Operation *op ));
432 LIBSLAPD_F (Operation *) slap_op_pop LDAP_P(( Operation **olist ));
438 LIBSLAPD_F (char *) first_word LDAP_P(( char *s ));
439 LIBSLAPD_F (char *) next_word LDAP_P(( char *s ));
440 LIBSLAPD_F (char *) word_dup LDAP_P(( char *w ));
441 LIBSLAPD_F (char *) phonetic LDAP_P(( char *s ));
447 LIBSLAPD_F (void) replog LDAP_P(( Backend *be, Operation *op, char *dn, void *change ));
453 LIBSLAPD_F (struct berval **) get_entry_referrals LDAP_P((
454 Backend *be, Connection *conn, Operation *op,
457 LIBSLAPD_F (void) send_ldap_result LDAP_P((
458 Connection *conn, Operation *op,
459 ber_int_t err, const char *matched, const char *text,
460 struct berval **refs,
461 LDAPControl **ctrls ));
463 LIBSLAPD_F (void) send_ldap_sasl LDAP_P((
464 Connection *conn, Operation *op,
465 ber_int_t err, const char *matched,
467 struct berval **refs,
469 struct berval *cred ));
471 LIBSLAPD_F (void) send_ldap_disconnect LDAP_P((
472 Connection *conn, Operation *op,
473 ber_int_t err, const char *text ));
475 LIBSLAPD_F (void) send_ldap_extended LDAP_P((
476 Connection *conn, Operation *op,
477 ber_int_t err, const char *matched,
478 const char *text, struct berval **refs,
479 const char *rspoid, struct berval *rspdata,
480 LDAPControl **ctrls ));
482 LIBSLAPD_F (void) send_ldap_partial LDAP_P((
483 Connection *conn, Operation *op,
484 const char *rspoid, struct berval *rspdata,
485 LDAPControl **ctrls ));
487 LIBSLAPD_F (void) send_search_result LDAP_P((
488 Connection *conn, Operation *op,
489 ber_int_t err, const char *matched, const char *text,
490 struct berval **refs,
494 LIBSLAPD_F (int) send_search_reference LDAP_P((
495 Backend *be, Connection *conn, Operation *op,
496 Entry *e, struct berval **refs, int scope,
498 struct berval ***v2refs ));
500 LIBSLAPD_F (int) send_search_entry LDAP_P((
501 Backend *be, Connection *conn, Operation *op,
502 Entry *e, char **attrs, int attrsonly,
503 LDAPControl **ctrls ));
505 LIBSLAPD_F (int) str2result LDAP_P(( char *s,
506 int *code, char **matched, char **info ));
511 LIBSLAPD_F (char **) supportedSASLMechanisms;
513 LIBSLAPD_F (int) sasl_init(void);
514 LIBSLAPD_F (int) sasl_destroy(void);
515 LIBSLAPD_F (int) sasl_errldap LDAP_P(( int ));
516 LIBSLAPD_F (int) sasl_bind LDAP_P((
517 Connection *conn, Operation *op,
518 const char *dn, const char *ndn,
519 const char *mech, struct berval *cred,
523 LIBSLAPD_F (int) oc_schema_info( Entry *e );
526 LIBSLAPD_F (int) mr_schema_info( Entry *e );
529 LIBSLAPD_F (int) syn_schema_info( Entry *e );
535 LIBSLAPD_F (ObjectClass *) oc_find LDAP_P((
536 const char *ocname));
538 LIBSLAPD_F (int) oc_add LDAP_P((
539 LDAP_OBJECT_CLASS *oc,
542 LIBSLAPD_F (int) is_object_subclass LDAP_P((
547 LIBSLAPD_F (Syntax *) syn_find LDAP_P((const char *synname));
548 LIBSLAPD_F (Syntax *) syn_find_desc LDAP_P((const char *syndesc, int *slen));
549 #ifdef SLAPD_BINARY_CONVERSION
550 LIBSLAPD_F (int) syn_add LDAP_P((
553 slap_syntax_validate_func *validate,
554 slap_syntax_transform_func *normalize,
555 slap_syntax_transform_func *pretty,
556 slap_syntax_transform_func *ber2str,
557 slap_syntax_transform_func *str2ber,
560 LIBSLAPD_F (int) syn_add LDAP_P((
563 slap_syntax_validate_func *validate,
564 slap_syntax_transform_func *normalize,
565 slap_syntax_transform_func *pretty,
569 LIBSLAPD_F (MatchingRule *) mr_find LDAP_P((const char *mrname));
570 LIBSLAPD_F (int) mr_add LDAP_P((LDAP_MATCHING_RULE *mr,
572 slap_mr_convert_func *convert,
573 slap_mr_normalize_func *normalize,
574 slap_mr_match_func *match,
575 slap_mr_indexer_func *indexer,
576 slap_mr_filter_func *filter,
579 LIBSLAPD_F (int) register_syntax LDAP_P((
582 slap_syntax_validate_func *validate,
583 slap_syntax_transform_func *ber2str,
584 slap_syntax_transform_func *str2ber ));
586 LIBSLAPD_F (int) register_matching_rule LDAP_P((
589 slap_mr_convert_func *convert,
590 slap_mr_normalize_func *normalize,
591 slap_mr_match_func *match,
592 slap_mr_indexer_func *indexer,
593 slap_mr_filter_func *filter ));
595 LIBSLAPD_F (int) schema_info LDAP_P(( Entry **entry, const char **text ));
597 LIBSLAPD_F (int) is_entry_objectclass LDAP_P((
598 Entry *, ObjectClass *oc ));
599 #define is_entry_alias(e) is_entry_objectclass((e), slap_schema.si_oc_alias)
600 #define is_entry_referral(e) is_entry_objectclass((e), slap_schema.si_oc_referral)
606 int oc_check_allowed(
608 struct berval **oclist );
609 LIBSLAPD_F (int) entry_schema_check LDAP_P((
610 Entry *e, Attribute *attrs,
611 const char** text ));
617 LIBSLAPD_F (int) schema_init LDAP_P((void));
618 LIBSLAPD_F (int) schema_prep LDAP_P((void));
625 LIBSLAPD_F (void) parse_oc_old LDAP_P(( Backend *be, const char *fname, int lineno, int argc, char **argv ));
626 LIBSLAPD_F (void) parse_oc LDAP_P(( const char *fname, int lineno, char *line, char **argv ));
627 LIBSLAPD_F (void) parse_at LDAP_P(( const char *fname, int lineno, char *line, char **argv ));
628 LIBSLAPD_F (void) parse_oidm LDAP_P(( const char *fname, int lineno, int argc, char **argv ));
629 LIBSLAPD_F (char *) scherr2str LDAP_P((int code)) LDAP_GCCATTR((const));
630 LIBSLAPD_F (int) dscompare LDAP_P(( const char *s1, const char *s2del, char delim ));
637 LIBSLAPD_F (int) starttls_extop LDAP_P((
638 SLAP_EXTOP_CALLBACK_FN,
639 Connection *conn, Operation *op,
641 struct berval * reqdata,
643 struct berval ** rspdata,
644 LDAPControl ***rspctrls,
646 struct berval *** refs ));
653 LIBSLAPD_F (Filter *) str2filter LDAP_P(( const char *str ));
658 LIBSLAPD_F (char *) suffix_alias LDAP_P(( Backend *be, char *ndn ));
663 LIBSLAPD_F (int) value_normalize LDAP_P((
664 AttributeDescription *ad,
668 const char ** text ));
669 LIBSLAPD_F (int) value_match LDAP_P((
671 AttributeDescription *ad,
675 const char ** text ));
676 LIBSLAPD_F (int) value_find LDAP_P((
677 AttributeDescription *ad,
678 struct berval **values,
679 struct berval *value ));
680 LIBSLAPD_F (int) value_add LDAP_P(( struct berval ***vals, struct berval **addvals ));
685 #if defined(HAVE_PWD_H) && defined(HAVE_GRP_H)
686 LIBSLAPD_F (void) slap_init_user LDAP_P(( char *username, char *groupname ));
692 LIBSLAPD_F (int) passwd_extop LDAP_P((
693 SLAP_EXTOP_CALLBACK_FN,
694 Connection *conn, Operation *op,
696 struct berval * reqdata,
698 struct berval ** rspdata,
699 LDAPControl *** rspctrls,
701 struct berval *** refs ));
703 LIBSLAPD_F (int) slap_passwd_check(
705 struct berval *cred );
707 LIBSLAPD_F (struct berval *) slap_passwd_generate( void );
709 LIBSLAPD_F (struct berval *) slap_passwd_hash(
710 struct berval *cred );
712 LIBSLAPD_F (struct berval *) slap_passwd_return(
713 struct berval *cred );
715 LIBSLAPD_F (int) slap_passwd_parse(
716 struct berval *reqdata,
718 struct berval **oldpass,
719 struct berval **newpass,
725 #ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
726 extern char *ldap_srvtab;
727 LIBSLAPD_F (int) krbv4_ldap_auth();
734 LIBSLAPD_F (struct berval **) default_referral;
735 LIBSLAPD_F (char *) replogfile;
736 LIBSLAPD_F (const char) Versionstr[];
737 LIBSLAPD_F (int) defsize;
738 LIBSLAPD_F (int) deftime;
739 LIBSLAPD_F (int) g_argc;
740 LIBSLAPD_F (slap_access_t) global_default_access;
741 LIBSLAPD_F (int) global_readonly;
742 LIBSLAPD_F (int) global_lastmod;
743 LIBSLAPD_F (int) global_idletimeout;
744 LIBSLAPD_F (int) global_schemacheck;
745 LIBSLAPD_F (char) *global_realm;
746 LIBSLAPD_F (char) *default_passwd_hash;
747 LIBSLAPD_F (int) lber_debug;
748 LIBSLAPD_F (int) ldap_syslog;
750 LIBSLAPD_F (ldap_pvt_thread_mutex_t) num_sent_mutex;
751 LIBSLAPD_F (long) num_bytes_sent;
752 LIBSLAPD_F (long) num_pdu_sent;
753 LIBSLAPD_F (long) num_entries_sent;
754 LIBSLAPD_F (long) num_refs_sent;
756 LIBSLAPD_F (ldap_pvt_thread_mutex_t) num_ops_mutex;
757 LIBSLAPD_F (long) num_ops_completed;
758 LIBSLAPD_F (long) num_ops_initiated;
760 LIBSLAPD_F (char *) slapd_pid_file;
761 LIBSLAPD_F (char *) slapd_args_file;
762 LIBSLAPD_F (char) **g_argv;
763 LIBSLAPD_F (time_t) starttime;
765 LIBSLAPD_F (time_t) slap_get_time LDAP_P((void));
767 LIBSLAPD_F (ldap_pvt_thread_pool_t) connection_pool;
769 LIBSLAPD_F (ldap_pvt_thread_mutex_t) entry2str_mutex;
770 LIBSLAPD_F (ldap_pvt_thread_mutex_t) replog_mutex;
773 LIBSLAPD_F (ldap_pvt_thread_mutex_t) crypt_mutex;
775 LIBSLAPD_F (ldap_pvt_thread_mutex_t) gmtime_mutex;
777 LIBSLAPD_F (AccessControl *) global_acl;
779 LIBSLAPD_F (int) slap_init LDAP_P((int mode, const char* name));
780 LIBSLAPD_F (int) slap_startup LDAP_P(( Backend *be ));
781 LIBSLAPD_F (int) slap_shutdown LDAP_P(( Backend *be ));
782 LIBSLAPD_F (int) slap_destroy LDAP_P((void));
786 LIBSLAPD_F (int) slapd_daemon_init( const char *urls );
787 LIBSLAPD_F (int) slapd_daemon_destroy(void);
788 LIBSLAPD_F (int) slapd_daemon(void);
790 LIBSLAPD_F (void) slapd_set_write LDAP_P((ber_socket_t s, int wake));
791 LIBSLAPD_F (void) slapd_clr_write LDAP_P((ber_socket_t s, int wake));
792 LIBSLAPD_F (void) slapd_set_read LDAP_P((ber_socket_t s, int wake));
793 LIBSLAPD_F (void) slapd_clr_read LDAP_P((ber_socket_t s, int wake));
795 LIBSLAPD_F (void) slapd_remove LDAP_P((ber_socket_t s, int wake));
797 LIBSLAPD_F (RETSIGTYPE) slap_sig_shutdown LDAP_P((int sig));
798 LIBSLAPD_F (RETSIGTYPE) slap_sig_wake LDAP_P((int sig));
800 LIBSLAPD_F (int) config_info LDAP_P((
801 Entry **e, const char **text ));
803 LIBSLAPD_F (int) root_dse_info LDAP_P((
804 Entry **e, const char **text ));
806 LIBSLAPD_F (int) do_abandon LDAP_P((Connection *conn, Operation *op));
807 LIBSLAPD_F (int) do_add LDAP_P((Connection *conn, Operation *op));
808 LIBSLAPD_F (int) do_bind LDAP_P((Connection *conn, Operation *op));
809 LIBSLAPD_F (int) do_compare LDAP_P((Connection *conn, Operation *op));
810 LIBSLAPD_F (int) do_delete LDAP_P((Connection *conn, Operation *op));
811 LIBSLAPD_F (int) do_modify LDAP_P((Connection *conn, Operation *op));
812 LIBSLAPD_F (int) do_modrdn LDAP_P((Connection *conn, Operation *op));
813 LIBSLAPD_F (int) do_search LDAP_P((Connection *conn, Operation *op));
814 LIBSLAPD_F (int) do_unbind LDAP_P((Connection *conn, Operation *op));
815 LIBSLAPD_F (int) do_extended LDAP_P((Connection *conn, Operation *op));
818 LIBSLAPD_F (ber_socket_t) dtblsize;
822 #endif /* _proto_slap */