]> git.sur5r.net Git - openldap/blob - servers/slapd/proto-slap.h
reduce slap_passwd_check to simple form
[openldap] / servers / slapd / proto-slap.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 #ifndef _PROTO_SLAP
7 #define _PROTO_SLAP
8
9 #include <ldap_cdefs.h>
10
11 LDAP_BEGIN_DECL
12
13 /*
14  * acl.c
15  */
16
17 LIBSLAPD_F (int) access_allowed LDAP_P(( Backend *be, Connection *conn,
18         Operation *op, Entry *e,
19         char *attr, struct berval *val, slap_access_t access ));
20
21 LIBSLAPD_F (int) acl_check_modlist LDAP_P(( Backend *be,
22         Connection *conn,
23         Operation *op,
24         Entry *e,
25         LDAPModList *ml ));
26
27 LIBSLAPD_F (void) acl_append( AccessControl **l, AccessControl *a );
28
29 LIBSLAPD_F (char *) get_supported_acimech LDAP_P((int index));
30
31 /*
32  * aclparse.c
33  */
34
35 LIBSLAPD_F (void) parse_acl LDAP_P(( Backend *be,
36         const char *fname,
37         int lineno,
38         int argc, char **argv ));
39
40 LIBSLAPD_F (char *) access2str LDAP_P(( slap_access_t access ));
41 LIBSLAPD_F (slap_access_t) str2access LDAP_P(( const char *str ));
42
43 #define ACCESSMASK_MAXLEN       sizeof("unknown (+wrscan)")
44 LIBSLAPD_F (char *) accessmask2str LDAP_P(( slap_access_mask_t mask, char* ));
45 LIBSLAPD_F (slap_access_mask_t) str2accessmask LDAP_P(( const char *str ));
46
47 /*
48  * attr.c
49  */
50
51 LIBSLAPD_F (void) attr_free LDAP_P(( Attribute *a ));
52 LIBSLAPD_F (Attribute *) attr_dup LDAP_P(( Attribute *a ));
53 LIBSLAPD_F (char *) attr_normalize LDAP_P(( char *s ));
54 LIBSLAPD_F (int) attr_merge_fast LDAP_P(( Entry *e, char *type, struct berval **vals, int  nvals, int  naddvals, int  *maxvals, Attribute ***a ));
55 LIBSLAPD_F (int) attr_merge LDAP_P(( Entry *e, char *type, struct berval **vals ));
56 LIBSLAPD_F (Attribute *) attr_find LDAP_P(( Attribute *a, const char *type ));
57 LIBSLAPD_F (int) attr_delete LDAP_P(( Attribute **attrs, const char *type ));
58 LIBSLAPD_F (int) attr_syntax LDAP_P(( char *type ));
59 LIBSLAPD_F (void) attr_syntax_config LDAP_P(( const char *fname, int lineno, int argc, char **argv ));
60 LIBSLAPD_F (AttributeType *) at_find LDAP_P(( const char *name ));
61 LIBSLAPD_F (int) at_find_in_list LDAP_P(( AttributeType *sat, AttributeType **list ));
62 LIBSLAPD_F (int) at_append_to_list LDAP_P(( AttributeType *sat, AttributeType ***listp ));
63 LIBSLAPD_F (int) at_delete_from_list LDAP_P(( int pos, AttributeType ***listp ));
64 LIBSLAPD_F (int) at_fake_if_needed LDAP_P(( char *name ));
65 LIBSLAPD_F (int) at_schema_info LDAP_P(( Entry *e ));
66 LIBSLAPD_F (int) at_add LDAP_P(( LDAP_ATTRIBUTE_TYPE *at, const char **err ));
67 LIBSLAPD_F (char *) at_canonical_name LDAP_P(( char * a_type ));
68
69 LIBSLAPD_F (void) attrs_free LDAP_P(( Attribute *a ));
70 LIBSLAPD_F (Attribute *) attrs_dup LDAP_P(( Attribute *a ));
71
72 /*
73  * ava.c
74  */
75
76 LIBSLAPD_F (int) get_ava LDAP_P(( BerElement *ber, Ava *ava ));
77 LIBSLAPD_F (void) ava_free LDAP_P(( Ava *ava, int freeit ));
78
79 /*
80  * backend.c
81  */
82
83 LIBSLAPD_F (int) backend_init LDAP_P((void));
84 LIBSLAPD_F (int) backend_add LDAP_P((BackendInfo *aBackendInfo));
85 LIBSLAPD_F (int) backend_num LDAP_P((Backend *be));
86 LIBSLAPD_F (int) backend_startup LDAP_P((Backend *be));
87 LIBSLAPD_F (int) backend_shutdown LDAP_P((Backend *be));
88 LIBSLAPD_F (int) backend_destroy LDAP_P((void));
89
90 LIBSLAPD_F (BackendInfo *) backend_info LDAP_P(( const char *type ));
91 LIBSLAPD_F (BackendDB *) backend_db_init LDAP_P(( const char *type ));
92
93 LIBSLAPD_F (BackendDB *) select_backend LDAP_P(( const char * dn ));
94
95 LIBSLAPD_F (int) be_issuffix LDAP_P(( Backend *be, const char *suffix ));
96 LIBSLAPD_F (int) be_isroot LDAP_P(( Backend *be, const char *ndn ));
97 LIBSLAPD_F (int) be_isroot_pw LDAP_P(( Backend *be, const char *ndn, struct berval *cred ));
98 LIBSLAPD_F (char *) be_root_dn LDAP_P(( Backend *be ));
99 LIBSLAPD_F (int) be_entry_release_rw LDAP_P(( Backend *be, Entry *e, int rw ));
100 #define be_entry_release_r( be, e ) be_entry_release_rw( be, e, 0 )
101 #define be_entry_release_w( be, e ) be_entry_release_rw( be, e, 1 )
102
103
104 LIBSLAPD_F (int) backend_unbind LDAP_P((Connection *conn, Operation *op));
105
106 LIBSLAPD_F (int) backend_connection_init LDAP_P((Connection *conn));
107 LIBSLAPD_F (int) backend_connection_destroy LDAP_P((Connection *conn));
108
109 LIBSLAPD_F (int) backend_group LDAP_P((Backend *be,
110         Entry *target,
111         const char *gr_ndn,
112         const char *op_ndn,
113         const char *objectclassValue,
114         const char *groupattrName));
115
116 #ifdef SLAPD_SCHEMA_DN
117 /* temporary extern for temporary routine*/
118 LIBSLAPD_F (Attribute *) backend_subschemasubentry( Backend * );
119 #endif
120
121
122 /*
123  * ch_malloc.c
124  */
125
126 #ifdef CSRIMALLOC
127 #define ch_malloc malloc
128 #define ch_realloc realloc
129 #define ch_calloc calloc
130 #define ch_strdup strdup
131 #define ch_free free
132
133 #else
134 LIBSLAPD_F (void *) ch_malloc LDAP_P(( ber_len_t size ));
135 LIBSLAPD_F (void *) ch_realloc LDAP_P(( void *block, ber_len_t size ));
136 LIBSLAPD_F (void *) ch_calloc LDAP_P(( ber_len_t nelem, ber_len_t size ));
137 LIBSLAPD_F (char *) ch_strdup LDAP_P(( const char *string ));
138 LIBSLAPD_F (void) ch_free LDAP_P(( void * ));
139
140 #ifndef CH_FREE
141 #undef free
142 #define free ch_free
143 #endif
144 #endif
145
146 /*
147  * charray.c
148  */
149
150 LIBSLAPD_F (void) charray_add LDAP_P(( char ***a, const char *s ));
151 LIBSLAPD_F (void) charray_merge LDAP_P(( char ***a, char **s ));
152 LIBSLAPD_F (void) charray_free LDAP_P(( char **array ));
153 LIBSLAPD_F (int) charray_inlist LDAP_P(( char **a, const char *s ));
154 LIBSLAPD_F (char **) charray_dup LDAP_P(( char **a ));
155 LIBSLAPD_F (char **) str2charray LDAP_P(( const char *str, const char *brkstr ));
156 LIBSLAPD_F (char *) charray2str LDAP_P(( char **a ));
157
158 /*
159  * controls.c
160  */
161 LIBSLAPD_F (int) get_ctrls LDAP_P((
162         Connection *co,
163         Operation *op,
164         int senderrors ));
165
166 LIBSLAPD_F (int) get_manageDSAit LDAP_P(( Operation *op ));
167
168 /*
169  * config.c
170  */
171
172 LIBSLAPD_F (int) read_config LDAP_P(( const char *fname ));
173
174 /*
175  * connection.c
176  */
177 LIBSLAPD_F (int) connections_init LDAP_P((void));
178 LIBSLAPD_F (int) connections_shutdown LDAP_P((void));
179 LIBSLAPD_F (int) connections_destroy LDAP_P((void));
180 LIBSLAPD_F (int) connections_timeout_idle LDAP_P((time_t));
181
182 LIBSLAPD_F (long) connection_init LDAP_P((
183         ber_socket_t s,
184         const char* url,
185         const char* dnsname,
186         const char* peername,
187         const char* sockname,
188         int use_tls ));
189
190 LIBSLAPD_F (void) connection_closing LDAP_P(( Connection *c ));
191 LIBSLAPD_F (int) connection_state_closing LDAP_P(( Connection *c ));
192 LIBSLAPD_F (const char *) connection_state2str LDAP_P(( int state )) LDAP_GCCATTR((const));
193
194 LIBSLAPD_F (int) connection_write LDAP_P((ber_socket_t s));
195 LIBSLAPD_F (int) connection_read LDAP_P((ber_socket_t s));
196
197 LIBSLAPD_F (unsigned long) connections_nextid(void);
198
199 LIBSLAPD_F (Connection *) connection_first LDAP_P((ber_socket_t *));
200 LIBSLAPD_F (Connection *) connection_next LDAP_P((Connection *, ber_socket_t *));
201 LIBSLAPD_F (void) connection_done LDAP_P((Connection *));
202
203 /*
204  * dn.c
205  */
206
207 LIBSLAPD_F (char *) dn_validate LDAP_P(( char *dn ));
208 LIBSLAPD_F (char *) dn_normalize LDAP_P(( char *dn ));
209 LIBSLAPD_F (char *) dn_parent LDAP_P(( Backend *be, const char *dn ));
210 LIBSLAPD_F (char **) dn_subtree LDAP_P(( Backend *be, const char *dn ));
211 LIBSLAPD_F (char *) dn_rdn LDAP_P(( Backend *be, char *dn ));
212 LIBSLAPD_F (int) dn_issuffix LDAP_P(( char *dn, char *suffix ));
213 #ifdef DNS_DN
214 LIBSLAPD_F (int) dn_type LDAP_P(( char *dn ));
215 #endif
216 LIBSLAPD_F (int) rdn_validate LDAP_P(( const char* str ));
217 LIBSLAPD_F (char *) rdn_attr_value LDAP_P(( char * rdn ));
218 LIBSLAPD_F (char *) rdn_attr_type LDAP_P(( char * rdn ));
219
220 LIBSLAPD_F (void) build_new_dn LDAP_P(( char ** new_dn,
221         const char *e_dn,
222         const char * p_dn,
223         const char * newrdn ));
224 /*
225  * entry.c
226  */
227
228 LIBSLAPD_F (int) entry_destroy LDAP_P((void));
229
230 LIBSLAPD_F (Entry *) str2entry LDAP_P(( char    *s ));
231 LIBSLAPD_F (char *) entry2str LDAP_P(( Entry *e, int *len ));
232 LIBSLAPD_F (void) entry_free LDAP_P(( Entry *e ));
233
234 LIBSLAPD_F (int) entry_cmp LDAP_P(( Entry *a, Entry *b ));
235 LIBSLAPD_F (int) entry_dn_cmp LDAP_P(( Entry *a, Entry *b ));
236 LIBSLAPD_F (int) entry_id_cmp LDAP_P(( Entry *a, Entry *b ));
237
238 /*
239  * extended.c
240  */
241
242 LIBSLAPD_F (int) load_extension LDAP_P((const void *module, const char *file_name));
243 LIBSLAPD_F (char *) get_supported_extension LDAP_P((int index));
244
245 /*
246  * filter.c
247  */
248
249 LIBSLAPD_F (int) get_filter LDAP_P(( Connection *conn, BerElement *ber, Filter **filt, char **fstr ));
250 LIBSLAPD_F (void) filter_free LDAP_P(( Filter *f ));
251 LIBSLAPD_F (void) filter_print LDAP_P(( Filter *f ));
252
253 /*
254  * filterentry.c
255  */
256
257 LIBSLAPD_F (int) test_filter LDAP_P(( Backend *be, Connection *conn, Operation *op, Entry *e, Filter    *f ));
258
259 /*
260  * lock.c
261  */
262
263 LIBSLAPD_F (FILE *) lock_fopen LDAP_P(( const char *fname, const char *type, FILE **lfp ));
264 LIBSLAPD_F (int) lock_fclose LDAP_P(( FILE *fp, FILE *lfp ));
265
266 /*
267  * module.c
268  */
269
270 #ifdef SLAPD_MODULES
271 LIBSLAPD_F (int) module_init LDAP_P(( void ));
272 LIBSLAPD_F (int) module_kill LDAP_P(( void ));
273
274 LIBSLAPD_F (int) module_load LDAP_P(( const char* file_name, int argc, char *argv[] ));
275 LIBSLAPD_F (int) module_path LDAP_P(( const char* path ));
276
277 LIBSLAPD_F (void) *module_resolve LDAP_P((const void *module, const char *name));
278 #endif /* SLAPD_MODULES */
279
280 /*
281  * monitor.c
282  */
283 LIBSLAPD_F (char *) supportedControls[];
284
285 LIBSLAPD_F (void) monitor_info LDAP_P((
286         Connection *conn,
287         Operation *op,
288         char ** attrs,
289         int attrsonly ));
290
291 /*
292  * operation.c
293  */
294
295 LIBSLAPD_F (void) slap_op_free LDAP_P(( Operation *op ));
296 LIBSLAPD_F (Operation *) slap_op_alloc LDAP_P((
297         BerElement *ber, ber_int_t msgid,
298         ber_tag_t tag, ber_int_t id ));
299
300 LIBSLAPD_F (int) slap_op_add LDAP_P(( Operation **olist, Operation *op ));
301 LIBSLAPD_F (int) slap_op_remove LDAP_P(( Operation **olist, Operation *op ));
302 LIBSLAPD_F (Operation *) slap_op_pop LDAP_P(( Operation **olist ));
303
304 /*
305  * phonetic.c
306  */
307
308 LIBSLAPD_F (char *) first_word LDAP_P(( char *s ));
309 LIBSLAPD_F (char *) next_word LDAP_P(( char *s ));
310 LIBSLAPD_F (char *) word_dup LDAP_P(( char *w ));
311 LIBSLAPD_F (char *) phonetic LDAP_P(( char *s ));
312
313 /*
314  * repl.c
315  */
316
317 LIBSLAPD_F (void) replog LDAP_P(( Backend *be, Operation *op, char *dn, void *change ));
318
319 /*
320  * result.c
321  */
322
323 LIBSLAPD_F (struct berval **) get_entry_referrals LDAP_P((
324         Backend *be, Connection *conn, Operation *op,
325         Entry *e ));
326
327 LIBSLAPD_F (void) send_ldap_result LDAP_P((
328         Connection *conn, Operation *op,
329         ber_int_t err, const char *matched, const char *text,
330         struct berval **refs,
331         LDAPControl **ctrls ));
332
333 LIBSLAPD_F (void) send_ldap_sasl LDAP_P((
334         Connection *conn, Operation *op,
335         ber_int_t err, const char *matched,
336         const char *text,
337         struct berval *cred ));
338
339 LIBSLAPD_F (void) send_ldap_disconnect LDAP_P((
340         Connection *conn, Operation *op,
341         ber_int_t err, const char *text ));
342
343 LIBSLAPD_F (void) send_ldap_extended LDAP_P((
344         Connection *conn, Operation *op,
345         ber_int_t err, const char *matched,
346         const char *text,
347         char *rspoid, struct berval *rspdata ));
348
349 LIBSLAPD_F (void) send_search_result LDAP_P((
350         Connection *conn, Operation *op,
351         ber_int_t err, const char *matched, const char *text,
352         struct berval **refs,
353         LDAPControl **ctrls,
354         int nentries ));
355
356 LIBSLAPD_F (int) send_search_reference LDAP_P((
357         Backend *be, Connection *conn, Operation *op,
358         Entry *e, struct berval **refs, int scope,
359         LDAPControl **ctrls,
360         struct berval ***v2refs ));
361
362 LIBSLAPD_F (int) send_search_entry LDAP_P((
363         Backend *be, Connection *conn, Operation *op,
364         Entry *e, char **attrs, int attrsonly,
365         LDAPControl **ctrls ));
366
367 LIBSLAPD_F (int) str2result LDAP_P(( char *s,
368         int *code, char **matched, char **info ));
369
370 /*
371  * sasl.c
372  */
373 LIBSLAPD_F (char **) supportedSASLMechanisms;
374
375 LIBSLAPD_F (int) sasl_init(void);
376 LIBSLAPD_F (int) sasl_destroy(void);
377
378 /*
379  * schema.c
380  */
381
382 LIBSLAPD_F (int) oc_schema_check LDAP_P(( Entry *e ));
383 LIBSLAPD_F (int) oc_check_operational_attr LDAP_P(( const char *type ));
384 LIBSLAPD_F (int) oc_check_usermod_attr LDAP_P(( const char *type ));
385 LIBSLAPD_F (int) oc_check_no_usermod_attr LDAP_P(( const char *type ));
386 LIBSLAPD_F (ObjectClass *) oc_find LDAP_P((const char *ocname));
387 LIBSLAPD_F (int) oc_add LDAP_P((LDAP_OBJECT_CLASS *oc, const char **err));
388 LIBSLAPD_F (Syntax *) syn_find LDAP_P((const char *synname));
389 LIBSLAPD_F (Syntax *) syn_find_desc LDAP_P((const char *syndesc, int *slen));
390 LIBSLAPD_F (int) syn_add LDAP_P((LDAP_SYNTAX *syn, slap_syntax_check_func *check, const char **err));
391 LIBSLAPD_F (MatchingRule *) mr_find LDAP_P((const char *mrname));
392 LIBSLAPD_F (int) mr_add LDAP_P((LDAP_MATCHING_RULE *mr, slap_mr_normalize_func *normalize, slap_mr_compare_func *compare, const char **err));
393 LIBSLAPD_F (int) case_ignore_normalize LDAP_P((struct berval *val, struct berval **normalized));
394 LIBSLAPD_F (int) register_syntax LDAP_P((char *desc,    slap_syntax_check_func *check ));
395 LIBSLAPD_F (int) register_matching_rule LDAP_P((char * desc,    slap_mr_normalize_func *normalize, slap_mr_compare_func *compare));
396 LIBSLAPD_F (void) schema_info LDAP_P((Connection *conn, Operation *op, char **attrs, int attrsonly));
397 LIBSLAPD_F (int) schema_init LDAP_P((void));
398
399 LIBSLAPD_F (int) is_entry_objectclass LDAP_P(( Entry *, const char* objectclass ));
400 #define is_entry_alias(e)               is_entry_objectclass((e), "ALIAS")
401 #define is_entry_referral(e)    is_entry_objectclass((e), "REFERRAL")
402
403
404 /*
405  * schemaparse.c
406  */
407
408 LIBSLAPD_F (void) parse_oc_old LDAP_P(( Backend *be, const char *fname, int lineno, int argc, char **argv ));
409 LIBSLAPD_F (void) parse_oc LDAP_P(( const char *fname, int lineno, char *line, char **argv ));
410 LIBSLAPD_F (void) parse_at LDAP_P(( const char *fname, int lineno, char *line, char **argv ));
411 LIBSLAPD_F (void) parse_oidm LDAP_P(( const char *fname, int lineno, int argc, char **argv ));
412 LIBSLAPD_F (char *) scherr2str LDAP_P((int code)) LDAP_GCCATTR((const));
413 LIBSLAPD_F (int) dscompare LDAP_P(( const char *s1, const char *s2del, char delim ));
414 /*
415  * str2filter.c
416  */
417
418 LIBSLAPD_F (Filter *) str2filter LDAP_P(( char *str ));
419
420 /*
421  * suffixalias.c
422  */
423 LIBSLAPD_F (char *) suffix_alias LDAP_P(( Backend *be, char *ndn ));
424
425 /*
426  * value.c
427  */
428
429 LIBSLAPD_F (int) value_add_fast LDAP_P(( struct berval ***vals, struct berval **addvals, int nvals, int naddvals, int *maxvals ));
430 LIBSLAPD_F (int) value_add LDAP_P(( struct berval ***vals, struct berval **addvals ));
431 LIBSLAPD_F (void) value_normalize LDAP_P(( char *s, int syntax ));
432 LIBSLAPD_F (int) value_cmp LDAP_P(( struct berval *v1, struct berval *v2, int syntax, int normalize ));
433 LIBSLAPD_F (int) value_find LDAP_P(( struct berval **vals, struct berval *v, int syntax, int normalize ));
434
435 /*
436  * user.c
437  */
438 #if defined(HAVE_PWD_H) && defined(HAVE_GRP_H)
439 LIBSLAPD_F (void) slap_init_user LDAP_P(( char *username, char *groupname ));
440 #endif
441
442 /*
443  * passwd.c
444  */
445 LIBSLAPD_F (int) slap_passwd_check(
446         Attribute                       *attr,
447         struct berval           *cred );
448
449 /*
450  * kerberos.c
451  */
452 #ifdef HAVE_KERBEROS
453 LIBSLAPD_F (int)        krbv4_ldap_auth();
454 #endif
455
456 /*
457  * Other...
458  */
459
460 LIBSLAPD_F (struct berval **)   default_referral;
461 LIBSLAPD_F (char *)             replogfile;
462 LIBSLAPD_F (const char)         Versionstr[];
463 LIBSLAPD_F (int)                active_threads;
464 LIBSLAPD_F (int)                defsize;
465 LIBSLAPD_F (int)                deftime;
466 LIBSLAPD_F (int)                g_argc;
467 LIBSLAPD_F (slap_access_t)      global_default_access;
468 LIBSLAPD_F (int)                global_readonly;
469 LIBSLAPD_F (int)                global_lastmod;
470 LIBSLAPD_F (int)                global_idletimeout;
471 LIBSLAPD_F (int)                global_schemacheck;
472 LIBSLAPD_F (char)               *global_realm;
473 LIBSLAPD_F (int)                lber_debug;
474 LIBSLAPD_F (int)                ldap_syslog;
475
476 LIBSLAPD_F (ldap_pvt_thread_mutex_t)    num_sent_mutex;
477 LIBSLAPD_F (long)               num_bytes_sent;
478 LIBSLAPD_F (long)               num_pdu_sent;
479 LIBSLAPD_F (long)               num_entries_sent;
480 LIBSLAPD_F (long)               num_refs_sent;
481
482 LIBSLAPD_F (ldap_pvt_thread_mutex_t)    num_ops_mutex;
483 LIBSLAPD_F (long)               num_ops_completed;
484 LIBSLAPD_F (long)               num_ops_initiated;
485
486 LIBSLAPD_F (char *)             slapd_pid_file;
487 LIBSLAPD_F (char *)             slapd_args_file;
488 LIBSLAPD_F (char)               **g_argv;
489 LIBSLAPD_F (time_t)             starttime;
490
491 LIBSLAPD_F (time_t) slap_get_time LDAP_P((void));
492
493 LIBSLAPD_F (ldap_pvt_thread_mutex_t)    active_threads_mutex;
494 LIBSLAPD_F (ldap_pvt_thread_cond_t)     active_threads_cond;
495
496 LIBSLAPD_F (ldap_pvt_thread_mutex_t)    entry2str_mutex;
497 LIBSLAPD_F (ldap_pvt_thread_mutex_t)    replog_mutex;
498
499 #ifdef SLAPD_CRYPT
500 LIBSLAPD_F (ldap_pvt_thread_mutex_t)    crypt_mutex;
501 #endif
502 LIBSLAPD_F (ldap_pvt_thread_mutex_t)    gmtime_mutex;
503
504 LIBSLAPD_F (AccessControl *) global_acl;
505
506 LIBSLAPD_F (int)        slap_init LDAP_P((int mode, char* name));
507 LIBSLAPD_F (int)        slap_startup LDAP_P(( Backend *be ));
508 LIBSLAPD_F (int)        slap_shutdown LDAP_P(( Backend *be ));
509 LIBSLAPD_F (int)        slap_destroy LDAP_P((void));
510
511 struct sockaddr_in;
512
513 LIBSLAPD_F (int) slapd_daemon_init( char *urls, int port, int tls_port );
514 LIBSLAPD_F (int) slapd_daemon_destroy(void);
515 LIBSLAPD_F (int) slapd_daemon(void);
516
517 LIBSLAPD_F (void) slapd_set_write LDAP_P((ber_socket_t s, int wake));
518 LIBSLAPD_F (void) slapd_clr_write LDAP_P((ber_socket_t s, int wake));
519 LIBSLAPD_F (void) slapd_set_read LDAP_P((ber_socket_t s, int wake));
520 LIBSLAPD_F (void) slapd_clr_read LDAP_P((ber_socket_t s, int wake));
521
522 LIBSLAPD_F (void) slapd_remove LDAP_P((ber_socket_t s, int wake));
523
524 LIBSLAPD_F (RETSIGTYPE) slap_sig_shutdown LDAP_P((int sig));
525 LIBSLAPD_F (RETSIGTYPE) slap_sig_wake LDAP_P((int sig));
526
527 LIBSLAPD_F (void) config_info LDAP_P((
528         Connection *conn,
529         Operation *op,
530         char ** attrs,
531         int attrsonly ));
532
533 LIBSLAPD_F (void) root_dse_info LDAP_P((
534         Connection *conn,
535         Operation *op,
536         char ** attrs,
537         int attrsonly ));
538
539 LIBSLAPD_F (int) do_abandon LDAP_P((Connection *conn, Operation *op));
540 LIBSLAPD_F (int) do_add LDAP_P((Connection *conn, Operation *op));
541 LIBSLAPD_F (int) do_bind LDAP_P((Connection *conn, Operation *op));
542 LIBSLAPD_F (int) do_compare LDAP_P((Connection *conn, Operation *op));
543 LIBSLAPD_F (int) do_delete LDAP_P((Connection *conn, Operation *op));
544 LIBSLAPD_F (int) do_modify LDAP_P((Connection *conn, Operation *op));
545 LIBSLAPD_F (int) do_modrdn LDAP_P((Connection *conn, Operation *op));
546 LIBSLAPD_F (int) do_search LDAP_P((Connection *conn, Operation *op));
547 LIBSLAPD_F (int) do_unbind LDAP_P((Connection *conn, Operation *op));
548 LIBSLAPD_F (int) do_extended LDAP_P((Connection *conn, Operation *op));
549
550
551 LIBSLAPD_F (ber_socket_t) dtblsize;
552
553 LDAP_END_DECL
554
555 #endif /* _proto_slap */
556