3 * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
9 #include <ldap_cdefs.h>
13 #ifdef SLAPD_SCHEMA_NOT_COMPAT
14 LIBSLAPD_F (int) slap_str2ad LDAP_P((
16 AttributeDescription **ad,
19 LIBSLAPD_F (int) slap_bv2ad LDAP_P((
21 AttributeDescription **ad,
24 LIBSLAPD_F (AttributeDescription *) ad_dup LDAP_P((
25 AttributeDescription *desc ));
27 LIBSLAPD_F (void) ad_free LDAP_P((
28 AttributeDescription *desc,
31 #define ad_cmp(l,r) ( strcasecmp( \
32 (l)->ad_cname->bv_val, (r)->ad_cname->bv_val ))
34 LIBSLAPD_F (int) is_ad_subtype LDAP_P((
35 AttributeDescription *sub,
36 AttributeDescription *super ));
38 LIBSLAPD_F (int) ad_inlist LDAP_P((
39 AttributeDescription *desc,
42 #define ad_inlist(d,a) charray_inlist(a,d)
49 #if SLAPD_SCHEMA_NOT_COMPAT
50 LIBSLAPD_F (int) access_allowed LDAP_P((
51 Backend *be, Connection *conn, Operation *op,
52 Entry *e, AttributeDescription *desc, struct berval *val,
53 slap_access_t access ));
55 LIBSLAPD_F (int) access_allowed LDAP_P((
56 Backend *be, Connection *conn, Operation *op,
57 Entry *e, const char *attr, struct berval *val,
58 slap_access_t access ));
60 LIBSLAPD_F (int) acl_check_modlist LDAP_P((
61 Backend *be, Connection *conn, Operation *op,
62 Entry *e, Modifications *ml ));
64 LIBSLAPD_F (void) acl_append( AccessControl **l, AccessControl *a );
66 LIBSLAPD_F (char *) get_supported_acimech LDAP_P((int index));
72 LIBSLAPD_F (void) parse_acl LDAP_P(( Backend *be,
73 const char *fname, int lineno,
74 int argc, char **argv ));
76 LIBSLAPD_F (char *) access2str LDAP_P(( slap_access_t access ));
77 LIBSLAPD_F (slap_access_t) str2access LDAP_P(( const char *str ));
79 #define ACCESSMASK_MAXLEN sizeof("unknown (+wrscan)")
80 LIBSLAPD_F (char *) accessmask2str LDAP_P(( slap_access_mask_t mask, char* ));
81 LIBSLAPD_F (slap_access_mask_t) str2accessmask LDAP_P(( const char *str ));
87 LIBSLAPD_F (void) at_config LDAP_P(( const char *fname, int lineno, int argc, char **argv ));
88 LIBSLAPD_F (AttributeType *) at_find LDAP_P(( const char *name ));
89 LIBSLAPD_F (int) at_find_in_list LDAP_P(( AttributeType *sat, AttributeType **list ));
90 LIBSLAPD_F (int) at_append_to_list LDAP_P(( AttributeType *sat, AttributeType ***listp ));
91 LIBSLAPD_F (int) at_delete_from_list LDAP_P(( int pos, AttributeType ***listp ));
92 LIBSLAPD_F (int) at_fake_if_needed LDAP_P(( const char *name ));
93 LIBSLAPD_F (int) at_schema_info LDAP_P(( Entry *e ));
94 LIBSLAPD_F (int) at_add LDAP_P(( LDAP_ATTRIBUTE_TYPE *at, const char **err ));
96 #ifdef SLAPD_SCHEMA_NOT_COMPAT
97 LIBSLAPD_F (int) is_at_subtype LDAP_P((
99 AttributeType *super ));
101 # define at_canonical_name(at) ((at)->sat_cname)
103 LIBSLAPD_F (char *) at_canonical_name LDAP_P(( const char * a_type ));
111 LIBSLAPD_F (void) attr_free LDAP_P(( Attribute *a ));
112 LIBSLAPD_F (Attribute *) attr_dup LDAP_P(( Attribute *a ));
113 LIBSLAPD_F (char *) attr_normalize LDAP_P(( char *s ));
114 LIBSLAPD_F (int) attr_merge_fast LDAP_P(( Entry *e, const char *type,
115 struct berval **vals, int nvals, int naddvals, int *maxvals,
117 LIBSLAPD_F (int) attr_merge LDAP_P(( Entry *e, const char *type,
118 struct berval **vals ));
120 #ifdef SLAPD_SCHEMA_NOT_COMPAT
121 LIBSLAPD_F (Attribute *) attrs_find LDAP_P(( Attribute *a, AttributeDescription *desc ));
122 LIBSLAPD_F (Attribute *) attr_find LDAP_P(( Attribute *a, AttributeDescription *desc ));
123 LIBSLAPD_F (int) attr_delete LDAP_P(( Attribute **attrs, AttributeDescription *desc ));
125 LIBSLAPD_F (Attribute *) attr_find LDAP_P(( Attribute *a, const char *type ));
126 LIBSLAPD_F (int) attr_delete LDAP_P(( Attribute **attrs, const char *type ));
127 LIBSLAPD_F (int) attr_syntax LDAP_P(( const char *type ));
130 LIBSLAPD_F (void) attrs_free LDAP_P(( Attribute *a ));
131 LIBSLAPD_F (Attribute *) attrs_dup LDAP_P(( Attribute *a ));
137 #ifdef SLAPD_SCHEMA_NOT_COMPAT
138 LIBSLAPD_F (int) get_ava LDAP_P((
140 AttributeAssertion *ava ));
141 LIBSLAPD_F (void) ava_free LDAP_P((
142 AttributeAssertion *ava,
145 LIBSLAPD_F (int) get_ava LDAP_P(( BerElement *ber, Ava *ava ));
146 LIBSLAPD_F (void) ava_free LDAP_P(( Ava *ava, int freeit ));
153 LIBSLAPD_F (int) backend_init LDAP_P((void));
154 LIBSLAPD_F (int) backend_add LDAP_P((BackendInfo *aBackendInfo));
155 LIBSLAPD_F (int) backend_num LDAP_P((Backend *be));
156 LIBSLAPD_F (int) backend_startup LDAP_P((Backend *be));
157 LIBSLAPD_F (int) backend_shutdown LDAP_P((Backend *be));
158 LIBSLAPD_F (int) backend_destroy LDAP_P((void));
160 LIBSLAPD_F (BackendInfo *) backend_info LDAP_P(( const char *type ));
161 LIBSLAPD_F (BackendDB *) backend_db_init LDAP_P(( const char *type ));
163 LIBSLAPD_F (BackendDB *) select_backend LDAP_P(( const char * dn ));
165 LIBSLAPD_F (int) be_issuffix LDAP_P(( Backend *be, const char *suffix ));
166 LIBSLAPD_F (int) be_isroot LDAP_P(( Backend *be, const char *ndn ));
167 LIBSLAPD_F (int) be_isroot_pw LDAP_P(( Backend *be, const char *ndn, struct berval *cred ));
168 LIBSLAPD_F (char *) be_root_dn LDAP_P(( Backend *be ));
169 LIBSLAPD_F (int) be_entry_release_rw LDAP_P(( Backend *be, Entry *e, int rw ));
170 #define be_entry_release_r( be, e ) be_entry_release_rw( be, e, 0 )
171 #define be_entry_release_w( be, e ) be_entry_release_rw( be, e, 1 )
173 LIBSLAPD_F (int) backend_unbind LDAP_P((Connection *conn, Operation *op));
175 LIBSLAPD_F( int ) backend_check_controls LDAP_P((
181 LIBSLAPD_F (int) backend_connection_init LDAP_P((Connection *conn));
182 LIBSLAPD_F (int) backend_connection_destroy LDAP_P((Connection *conn));
184 #ifdef SLAPD_SCHEMA_NOT_COMPAT
185 LIBSLAPD_F (int) backend_group LDAP_P((Backend *be,
189 const char *objectclassValue,
190 AttributeDescription *groupAttrType
193 LIBSLAPD_F (int) backend_group LDAP_P((Backend *be,
197 const char *objectclassValue,
198 const char *groupattrName
202 LIBSLAPD_F (Attribute *) backend_operational( Backend *, Entry * );
211 #define ch_malloc malloc
212 #define ch_realloc realloc
213 #define ch_calloc calloc
214 #define ch_strdup strdup
218 LIBSLAPD_F (void *) ch_malloc LDAP_P(( ber_len_t size ));
219 LIBSLAPD_F (void *) ch_realloc LDAP_P(( void *block, ber_len_t size ));
220 LIBSLAPD_F (void *) ch_calloc LDAP_P(( ber_len_t nelem, ber_len_t size ));
221 LIBSLAPD_F (char *) ch_strdup LDAP_P(( const char *string ));
222 LIBSLAPD_F (void) ch_free LDAP_P(( void * ));
234 LIBSLAPD_F (void) charray_add LDAP_P(( char ***a, const char *s ));
235 LIBSLAPD_F (void) charray_merge LDAP_P(( char ***a, char **s ));
236 LIBSLAPD_F (void) charray_free LDAP_P(( char **array ));
237 LIBSLAPD_F (int) charray_inlist LDAP_P(( char **a, const char *s ));
238 LIBSLAPD_F (char **) charray_dup LDAP_P(( char **a ));
239 LIBSLAPD_F (char **) str2charray LDAP_P(( const char *str, const char *brkstr ));
240 LIBSLAPD_F (char *) charray2str LDAP_P(( char **a ));
245 LIBSLAPD_F (int) get_ctrls LDAP_P((
250 LIBSLAPD_F (int) get_manageDSAit LDAP_P(( Operation *op ));
256 LIBSLAPD_F (int) read_config LDAP_P(( const char *fname ));
261 LIBSLAPD_F (int) connections_init LDAP_P((void));
262 LIBSLAPD_F (int) connections_shutdown LDAP_P((void));
263 LIBSLAPD_F (int) connections_destroy LDAP_P((void));
264 LIBSLAPD_F (int) connections_timeout_idle LDAP_P((time_t));
266 LIBSLAPD_F (long) connection_init LDAP_P((
270 const char* peername,
271 const char* sockname,
274 LIBSLAPD_F (void) connection_closing LDAP_P(( Connection *c ));
275 LIBSLAPD_F (int) connection_state_closing LDAP_P(( Connection *c ));
276 LIBSLAPD_F (const char *) connection_state2str LDAP_P(( int state )) LDAP_GCCATTR((const));
278 LIBSLAPD_F (int) connection_write LDAP_P((ber_socket_t s));
279 LIBSLAPD_F (int) connection_read LDAP_P((ber_socket_t s));
281 LIBSLAPD_F (unsigned long) connections_nextid(void);
283 LIBSLAPD_F (Connection *) connection_first LDAP_P((ber_socket_t *));
284 LIBSLAPD_F (Connection *) connection_next LDAP_P((Connection *, ber_socket_t *));
285 LIBSLAPD_F (void) connection_done LDAP_P((Connection *));
291 LIBSLAPD_F (char *) dn_validate LDAP_P(( char *dn ));
292 LIBSLAPD_F (char *) dn_normalize LDAP_P(( char *dn ));
293 LIBSLAPD_F (char *) dn_parent LDAP_P(( Backend *be, const char *dn ));
294 LIBSLAPD_F (char **) dn_subtree LDAP_P(( Backend *be, const char *dn ));
295 LIBSLAPD_F (char *) dn_rdn LDAP_P(( Backend *be, char *dn ));
296 LIBSLAPD_F (int) dn_issuffix LDAP_P(( char *dn, char *suffix ));
297 LIBSLAPD_F (int) rdn_validate LDAP_P(( const char* str ));
298 LIBSLAPD_F (char *) rdn_attr_value LDAP_P(( char * rdn ));
299 LIBSLAPD_F (char *) rdn_attr_type LDAP_P(( char * rdn ));
301 LIBSLAPD_F (void) build_new_dn LDAP_P(( char ** new_dn,
304 const char * newrdn ));
309 LIBSLAPD_F (int) entry_destroy LDAP_P((void));
311 LIBSLAPD_F (Entry *) str2entry LDAP_P(( char *s ));
312 LIBSLAPD_F (char *) entry2str LDAP_P(( Entry *e, int *len ));
313 LIBSLAPD_F (void) entry_free LDAP_P(( Entry *e ));
315 LIBSLAPD_F (int) entry_cmp LDAP_P(( Entry *a, Entry *b ));
316 LIBSLAPD_F (int) entry_dn_cmp LDAP_P(( Entry *a, Entry *b ));
317 LIBSLAPD_F (int) entry_id_cmp LDAP_P(( Entry *a, Entry *b ));
323 #define SLAPD_EXTOP_GETVERSION 0
324 #define SLAPD_EXTOP_GETPROTO 1
325 #define SLAPD_EXTOP_GETAUTH 2
326 #define SLAPD_EXTOP_GETDN 3
327 #define SLAPD_EXTOP_GETCLIENT 4
329 typedef int (*SLAP_EXTOP_CALLBACK_FN) LDAP_P((
330 Connection *conn, Operation *op,
331 int msg, int arg, void *argp ));
333 typedef int (*SLAP_EXTOP_MAIN_FN) LDAP_P((
334 SLAP_EXTOP_CALLBACK_FN,
335 Connection *conn, Operation *op,
337 struct berval * reqdata,
339 struct berval ** rspdata,
340 LDAPControl *** rspctrls,
342 struct berval *** refs ));
344 typedef int (*SLAP_EXTOP_GETOID_FN) LDAP_P((
345 int index, char *oid, int blen ));
347 LIBSLAPD_F (int) load_extension LDAP_P((const void *module, const char *file_name));
348 LIBSLAPD_F (char *) get_supported_extension LDAP_P((int index));
350 LIBSLAPD_F (int) load_extop LDAP_P((
352 SLAP_EXTOP_MAIN_FN ext_main ));
354 LIBSLAPD_F (int) extops_init LDAP_P(( void ));
356 LIBSLAPD_F (int) extops_kill LDAP_P(( void ));
358 LIBSLAPD_F (char *) get_supported_extop LDAP_P((int index));
364 LIBSLAPD_F (int) get_filter LDAP_P((
371 LIBSLAPD_F (void) filter_free LDAP_P(( Filter *f ));
372 LIBSLAPD_F (void) filter_print LDAP_P(( Filter *f ));
378 LIBSLAPD_F (int) test_filter LDAP_P(( Backend *be, Connection *conn, Operation *op, Entry *e, Filter *f ));
384 LIBSLAPD_F (FILE *) lock_fopen LDAP_P(( const char *fname, const char *type, FILE **lfp ));
385 LIBSLAPD_F (int) lock_fclose LDAP_P(( FILE *fp, FILE *lfp ));
390 * should be relocated to separate file
392 LIBSLAPD_F( void ) slap_mod_free LDAP_P(( Modification *mod, int freeit ));
393 LIBSLAPD_F( void ) slap_mods_free LDAP_P(( Modifications *mods ));
394 LIBSLAPD_F( void ) slap_modlist_free LDAP_P(( LDAPModList *ml ));
396 #ifdef SLAPD_SCHEMA_NOT_COMPAT
397 LIBSLAPD_F( int ) slap_modlist2mods(
400 Modifications **mods,
403 LIBSLAPD_F( int ) slap_mods_opattrs(
405 Modifications **modlist,
415 LIBSLAPD_F (int) module_init LDAP_P(( void ));
416 LIBSLAPD_F (int) module_kill LDAP_P(( void ));
418 LIBSLAPD_F (int) load_null_module(
419 const void *module, const char *file_name);
420 LIBSLAPD_F (int) load_extop_module(
421 const void *module, const char *file_name);
423 LIBSLAPD_F (int) module_load LDAP_P((
424 const char* file_name,
425 int argc, char *argv[] ));
426 LIBSLAPD_F (int) module_path LDAP_P(( const char* path ));
428 LIBSLAPD_F (void) *module_resolve LDAP_P((
429 const void *module, const char *name));
431 #endif /* SLAPD_MODULES */
436 LIBSLAPD_F (char *) supportedControls[];
438 LIBSLAPD_F (void) monitor_info LDAP_P((
448 LIBSLAPD_F (void) slap_op_free LDAP_P(( Operation *op ));
449 LIBSLAPD_F (Operation *) slap_op_alloc LDAP_P((
450 BerElement *ber, ber_int_t msgid,
451 ber_tag_t tag, ber_int_t id ));
453 LIBSLAPD_F (int) slap_op_add LDAP_P(( Operation **olist, Operation *op ));
454 LIBSLAPD_F (int) slap_op_remove LDAP_P(( Operation **olist, Operation *op ));
455 LIBSLAPD_F (Operation *) slap_op_pop LDAP_P(( Operation **olist ));
461 LIBSLAPD_F (char *) first_word LDAP_P(( char *s ));
462 LIBSLAPD_F (char *) next_word LDAP_P(( char *s ));
463 LIBSLAPD_F (char *) word_dup LDAP_P(( char *w ));
464 LIBSLAPD_F (char *) phonetic LDAP_P(( char *s ));
470 LIBSLAPD_F (void) replog LDAP_P(( Backend *be, Operation *op, char *dn, void *change ));
476 LIBSLAPD_F (struct berval **) get_entry_referrals LDAP_P((
477 Backend *be, Connection *conn, Operation *op,
480 LIBSLAPD_F (void) send_ldap_result LDAP_P((
481 Connection *conn, Operation *op,
482 ber_int_t err, const char *matched, const char *text,
483 struct berval **refs,
484 LDAPControl **ctrls ));
486 LIBSLAPD_F (void) send_ldap_sasl LDAP_P((
487 Connection *conn, Operation *op,
488 ber_int_t err, const char *matched,
490 struct berval **refs,
492 struct berval *cred ));
494 LIBSLAPD_F (void) send_ldap_disconnect LDAP_P((
495 Connection *conn, Operation *op,
496 ber_int_t err, const char *text ));
498 LIBSLAPD_F (void) send_ldap_extended LDAP_P((
499 Connection *conn, Operation *op,
500 ber_int_t err, const char *matched,
501 const char *text, struct berval **refs,
502 char *rspoid, struct berval *rspdata,
503 LDAPControl **ctrls ));
505 LIBSLAPD_F (void) send_ldap_partial LDAP_P((
506 Connection *conn, Operation *op,
507 char *rspoid, struct berval *rspdata,
508 LDAPControl **ctrls ));
510 LIBSLAPD_F (void) send_search_result LDAP_P((
511 Connection *conn, Operation *op,
512 ber_int_t err, const char *matched, const char *text,
513 struct berval **refs,
517 LIBSLAPD_F (int) send_search_reference LDAP_P((
518 Backend *be, Connection *conn, Operation *op,
519 Entry *e, struct berval **refs, int scope,
521 struct berval ***v2refs ));
523 LIBSLAPD_F (int) send_search_entry LDAP_P((
524 Backend *be, Connection *conn, Operation *op,
525 Entry *e, char **attrs, int attrsonly,
526 LDAPControl **ctrls ));
528 LIBSLAPD_F (int) str2result LDAP_P(( char *s,
529 int *code, char **matched, char **info ));
534 LIBSLAPD_F (char **) supportedSASLMechanisms;
536 LIBSLAPD_F (int) sasl_init(void);
537 LIBSLAPD_F (int) sasl_destroy(void);
538 #ifdef HAVE_CYRUS_SASL
539 LIBSLAPD_F (int) sasl_errldap LDAP_P(( int ));
540 LIBSLAPD_F (int) sasl_bind LDAP_P((Backend *,
541 Connection *, Operation *,
542 char *, char *, char *, struct berval *, char **));
546 LIBSLAPD_F (int) oc_schema_info( Entry *e );
549 LIBSLAPD_F (int) mr_schema_info( Entry *e );
552 LIBSLAPD_F (int) syn_schema_info( Entry *e );
558 LIBSLAPD_F (int) oc_check_op_attr LDAP_P(( const char *type ));
559 LIBSLAPD_F (int) oc_check_op_usermod_attr LDAP_P(( const char *type ));
560 LIBSLAPD_F (int) oc_check_op_no_usermod_attr LDAP_P(( const char *type ));
561 LIBSLAPD_F (ObjectClass *) oc_find LDAP_P((const char *ocname));
562 LIBSLAPD_F (int) oc_add LDAP_P((LDAP_OBJECT_CLASS *oc, const char **err));
564 LIBSLAPD_F (Syntax *) syn_find LDAP_P((const char *synname));
565 LIBSLAPD_F (Syntax *) syn_find_desc LDAP_P((const char *syndesc, int *slen));
566 LIBSLAPD_F (int) syn_add LDAP_P((LDAP_SYNTAX *syn, int flags,
567 slap_syntax_validate_func *validate,
568 slap_syntax_transform_func *ber2str,
569 slap_syntax_transform_func *str2ber,
572 LIBSLAPD_F (MatchingRule *) mr_find LDAP_P((const char *mrname));
573 LIBSLAPD_F (int) mr_add LDAP_P((LDAP_MATCHING_RULE *mr,
575 slap_mr_convert_func *convert,
576 slap_mr_normalize_func *normalize,
577 slap_mr_match_func *match,
578 slap_mr_indexer_func *indexer,
579 slap_mr_filter_func *filter,
582 LIBSLAPD_F (int) register_syntax LDAP_P((char *desc, int flags,
583 slap_syntax_validate_func *validate,
584 slap_syntax_transform_func *ber2str,
585 slap_syntax_transform_func *str2ber ));
587 LIBSLAPD_F (int) register_matching_rule LDAP_P((char * desc,
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 (void) schema_info LDAP_P((Connection *conn, Operation *op,
596 char **attrs, int attrsonly));
598 LIBSLAPD_F (int) is_entry_objectclass LDAP_P((
599 Entry *, const char* objectclass ));
600 #define is_entry_alias(e) is_entry_objectclass((e), "ALIAS")
601 #define is_entry_referral(e) is_entry_objectclass((e), "REFERRAL")
606 LIBSLAPD_F (int) entry_schema_check LDAP_P((
607 Entry *e, Attribute *attrs,
614 LIBSLAPD_F (int) schema_init LDAP_P((void));
621 LIBSLAPD_F (void) parse_oc_old LDAP_P(( Backend *be, const char *fname, int lineno, int argc, char **argv ));
622 LIBSLAPD_F (void) parse_oc LDAP_P(( const char *fname, int lineno, char *line, char **argv ));
623 LIBSLAPD_F (void) parse_at LDAP_P(( const char *fname, int lineno, char *line, char **argv ));
624 LIBSLAPD_F (void) parse_oidm LDAP_P(( const char *fname, int lineno, int argc, char **argv ));
625 LIBSLAPD_F (char *) scherr2str LDAP_P((int code)) LDAP_GCCATTR((const));
626 LIBSLAPD_F (int) dscompare LDAP_P(( const char *s1, const char *s2del, char delim ));
633 LIBSLAPD_F (int) starttls_extop LDAP_P((
634 SLAP_EXTOP_CALLBACK_FN,
635 Connection *conn, Operation *op,
637 struct berval * reqdata,
639 struct berval ** rspdata,
640 LDAPControl ***rspctrls,
642 struct berval *** refs ));
649 LIBSLAPD_F (Filter *) str2filter LDAP_P(( const char *str ));
654 LIBSLAPD_F (char *) suffix_alias LDAP_P(( Backend *be, char *ndn ));
660 LIBSLAPD_F (int) value_add_fast LDAP_P(( struct berval ***vals, struct berval **addvals, int nvals, int naddvals, int *maxvals ));
661 LIBSLAPD_F (int) value_add LDAP_P(( struct berval ***vals, struct berval **addvals ));
662 LIBSLAPD_F (void) value_normalize LDAP_P(( char *s, int syntax ));
663 LIBSLAPD_F (int) value_cmp LDAP_P(( struct berval *v1, struct berval *v2, int syntax, int normalize ));
664 LIBSLAPD_F (int) value_find LDAP_P(( struct berval **vals, struct berval *v, int syntax, int normalize ));
669 #if defined(HAVE_PWD_H) && defined(HAVE_GRP_H)
670 LIBSLAPD_F (void) slap_init_user LDAP_P(( char *username, char *groupname ));
676 LIBSLAPD_F (int) passwd_extop LDAP_P((
677 SLAP_EXTOP_CALLBACK_FN,
678 Connection *conn, Operation *op,
680 struct berval * reqdata,
682 struct berval ** rspdata,
683 LDAPControl *** rspctrls,
685 struct berval *** refs ));
687 LIBSLAPD_F (int) slap_passwd_check(
689 struct berval *cred );
691 LIBSLAPD_F (struct berval *) slap_passwd_generate( void );
693 LIBSLAPD_F (struct berval *) slap_passwd_hash(
694 struct berval *cred );
696 LIBSLAPD_F (struct berval *) slap_passwd_return(
697 struct berval *cred );
699 LIBSLAPD_F (int) slap_passwd_parse(
700 struct berval *reqdata,
709 #ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
710 extern char *ldap_srvtab;
711 LIBSLAPD_F (int) krbv4_ldap_auth();
718 LIBSLAPD_F (struct berval **) default_referral;
719 LIBSLAPD_F (char *) replogfile;
720 LIBSLAPD_F (const char) Versionstr[];
721 LIBSLAPD_F (int) active_threads;
722 LIBSLAPD_F (int) defsize;
723 LIBSLAPD_F (int) deftime;
724 LIBSLAPD_F (int) g_argc;
725 LIBSLAPD_F (slap_access_t) global_default_access;
726 LIBSLAPD_F (int) global_readonly;
727 LIBSLAPD_F (int) global_lastmod;
728 LIBSLAPD_F (int) global_idletimeout;
729 LIBSLAPD_F (int) global_schemacheck;
730 LIBSLAPD_F (char) *global_realm;
731 LIBSLAPD_F (char) *default_passwd_hash;
732 LIBSLAPD_F (int) lber_debug;
733 LIBSLAPD_F (int) ldap_syslog;
735 LIBSLAPD_F (ldap_pvt_thread_mutex_t) num_sent_mutex;
736 LIBSLAPD_F (long) num_bytes_sent;
737 LIBSLAPD_F (long) num_pdu_sent;
738 LIBSLAPD_F (long) num_entries_sent;
739 LIBSLAPD_F (long) num_refs_sent;
741 LIBSLAPD_F (ldap_pvt_thread_mutex_t) num_ops_mutex;
742 LIBSLAPD_F (long) num_ops_completed;
743 LIBSLAPD_F (long) num_ops_initiated;
745 LIBSLAPD_F (char *) slapd_pid_file;
746 LIBSLAPD_F (char *) slapd_args_file;
747 LIBSLAPD_F (char) **g_argv;
748 LIBSLAPD_F (time_t) starttime;
750 LIBSLAPD_F (time_t) slap_get_time LDAP_P((void));
752 LIBSLAPD_F (ldap_pvt_thread_mutex_t) active_threads_mutex;
753 LIBSLAPD_F (ldap_pvt_thread_cond_t) active_threads_cond;
755 LIBSLAPD_F (ldap_pvt_thread_mutex_t) entry2str_mutex;
756 LIBSLAPD_F (ldap_pvt_thread_mutex_t) replog_mutex;
759 LIBSLAPD_F (ldap_pvt_thread_mutex_t) crypt_mutex;
761 LIBSLAPD_F (ldap_pvt_thread_mutex_t) gmtime_mutex;
763 LIBSLAPD_F (AccessControl *) global_acl;
765 LIBSLAPD_F (int) slap_init LDAP_P((int mode, char* name));
766 LIBSLAPD_F (int) slap_startup LDAP_P(( Backend *be ));
767 LIBSLAPD_F (int) slap_shutdown LDAP_P(( Backend *be ));
768 LIBSLAPD_F (int) slap_destroy LDAP_P((void));
772 LIBSLAPD_F (int) slapd_daemon_init( char *urls );
773 LIBSLAPD_F (int) slapd_daemon_destroy(void);
774 LIBSLAPD_F (int) slapd_daemon(void);
776 LIBSLAPD_F (void) slapd_set_write LDAP_P((ber_socket_t s, int wake));
777 LIBSLAPD_F (void) slapd_clr_write LDAP_P((ber_socket_t s, int wake));
778 LIBSLAPD_F (void) slapd_set_read LDAP_P((ber_socket_t s, int wake));
779 LIBSLAPD_F (void) slapd_clr_read LDAP_P((ber_socket_t s, int wake));
781 LIBSLAPD_F (void) slapd_remove LDAP_P((ber_socket_t s, int wake));
783 LIBSLAPD_F (RETSIGTYPE) slap_sig_shutdown LDAP_P((int sig));
784 LIBSLAPD_F (RETSIGTYPE) slap_sig_wake LDAP_P((int sig));
786 LIBSLAPD_F (void) config_info LDAP_P((
792 LIBSLAPD_F (void) root_dse_info LDAP_P((
798 LIBSLAPD_F (int) do_abandon LDAP_P((Connection *conn, Operation *op));
799 LIBSLAPD_F (int) do_add LDAP_P((Connection *conn, Operation *op));
800 LIBSLAPD_F (int) do_bind LDAP_P((Connection *conn, Operation *op));
801 LIBSLAPD_F (int) do_compare LDAP_P((Connection *conn, Operation *op));
802 LIBSLAPD_F (int) do_delete LDAP_P((Connection *conn, Operation *op));
803 LIBSLAPD_F (int) do_modify LDAP_P((Connection *conn, Operation *op));
804 LIBSLAPD_F (int) do_modrdn LDAP_P((Connection *conn, Operation *op));
805 LIBSLAPD_F (int) do_search LDAP_P((Connection *conn, Operation *op));
806 LIBSLAPD_F (int) do_unbind LDAP_P((Connection *conn, Operation *op));
807 LIBSLAPD_F (int) do_extended LDAP_P((Connection *conn, Operation *op));
810 LIBSLAPD_F (ber_socket_t) dtblsize;
814 #endif /* _proto_slap */