4 #include <ldap_cdefs.h>
10 int access_allowed LDAP_P(( Backend *be, Connection *conn, Operation *op, Entry *e,
11 char *attr, struct berval *val, char *dn, int access ));
13 struct acl * acl_get_applicable LDAP_P(( Backend *be, Operation *op, Entry *e,
14 char *attr, char *edn, int nmatches, regmatch_t *matches ));
15 int acl_access_allowed LDAP_P(( struct acl *a, Backend *be, Connection *conn, Entry *e,
16 struct berval *val, Operation *op, int access, char *edn,
17 regmatch_t *matches ));
19 int acl_check_mods LDAP_P(( Backend *be, Connection *conn, Operation *op, Entry *e,
26 void parse_acl LDAP_P(( Backend *be, char *fname, int lineno, int argc, char **argv ));
27 char * access2str LDAP_P(( int access ));
28 int str2access LDAP_P(( char *str ));
34 void attr_free LDAP_P(( Attribute *a ));
35 char * attr_normalize LDAP_P(( char *s ));
36 int attr_merge_fast LDAP_P(( Entry *e, char *type, struct berval **vals, int nvals,
37 int naddvals, int *maxvals, Attribute ***a ));
38 int attr_merge LDAP_P(( Entry *e, char *type, struct berval **vals ));
39 Attribute * attr_find LDAP_P(( Attribute *a, char *type ));
40 int attr_delete LDAP_P(( Attribute **attrs, char *type ));
41 int attr_syntax LDAP_P(( char *type ));
42 void attr_syntax_config LDAP_P(( char *fname, int lineno, int argc, char **argv ));
48 int get_ava LDAP_P(( BerElement *ber, Ava *ava ));
49 void ava_free LDAP_P(( Ava *ava, int freeit ));
55 Backend * new_backend LDAP_P(( char *type ));
56 Backend * select_backend LDAP_P(( char * dn ));
57 int be_issuffix LDAP_P(( Backend *be, char *suffix ));
58 int be_isroot LDAP_P(( Backend *be, char *dn ));
59 int be_isroot_pw LDAP_P(( Backend *be, char *dn, struct berval *cred ));
60 void be_close LDAP_P(());
66 char * ch_malloc LDAP_P(( unsigned long size ));
67 char * ch_realloc LDAP_P(( char *block, unsigned long size ));
68 char * ch_calloc LDAP_P(( unsigned long nelem, unsigned long size ));
74 void charray_add LDAP_P(( char ***a, char *s ));
75 void charray_merge LDAP_P(( char ***a, char **s ));
76 void charray_free LDAP_P(( char **array ));
77 int charray_inlist LDAP_P(( char **a, char *s ));
78 char ** charray_dup LDAP_P(( char **a ));
79 char ** str2charray LDAP_P(( char *str, char *brkstr ));
85 void read_config LDAP_P(( char *fname, Backend **bep, FILE *pfp ));
91 void connection_activity LDAP_P(( Connection *conn ));
97 char * dn_normalize LDAP_P(( char *dn ));
98 char * dn_normalize_case LDAP_P(( char *dn ));
99 char * dn_parent LDAP_P(( Backend *be, char *dn ));
100 int dn_issuffix LDAP_P(( char *dn, char *suffix ));
101 int dn_type LDAP_P(( char *dn ));
102 char * dn_upcase LDAP_P(( char *dn ));
108 Entry * str2entry LDAP_P(( char *s ));
109 char * entry2str LDAP_P(( Entry *e, int *len, int printid ));
110 void entry_free LDAP_P(( Entry *e ));
112 int entry_rdwr_lock LDAP_P(( Entry *e, int rw ));
113 int entry_rdwr_rlock LDAP_P(( Entry *e ));
114 int entry_rdwr_wlock LDAP_P(( Entry *e ));
115 int entry_rdwr_unlock LDAP_P(( Entry *e, int rw ));
116 int entry_rdwr_runlock LDAP_P(( Entry *e ));
117 int entry_rdwr_wunlock LDAP_P(( Entry *e ));
118 int entry_rdwr_init LDAP_P(( Entry *e ));
124 int get_filter LDAP_P(( Connection *conn, BerElement *ber, Filter **filt, char **fstr ));
125 void filter_free LDAP_P(( Filter *f ));
126 void filter_print LDAP_P(( Filter *f ));
132 int test_filter LDAP_P(( Backend *be, Connection *conn, Operation *op, Entry *e,
139 FILE * lock_fopen LDAP_P(( char *fname, char *type, FILE **lfp ));
140 int lock_fclose LDAP_P(( FILE *fp, FILE *lfp ));
146 void monitor_info LDAP_P(( Connection *conn, Operation *op ));
152 void op_free LDAP_P(( Operation *op ));
153 Operation * op_add LDAP_P(( Operation **olist, BerElement *ber, unsigned long msgid,
154 unsigned long tag, char *dn, int id, int connid ));
155 void op_delete LDAP_P(( Operation **olist, Operation *op ));
161 char * first_word LDAP_P(( char *s ));
162 char * next_word LDAP_P(( char *s ));
163 char * word_dup LDAP_P(( char *w ));
164 char * phonetic LDAP_P(( char *s ));
170 void replog LDAP_P(( Backend *be, int optype, char *dn, void *change, int flag ));
176 void send_ldap_result LDAP_P(( Connection *conn, Operation *op, int err, char *matched,
178 void send_ldap_search_result LDAP_P(( Connection *conn, Operation *op, int err,
179 char *matched, char *text, int nentries ));
180 void close_connection LDAP_P(( Connection *conn, int opconnid, int opid ));
186 int oc_schema_check LDAP_P(( Entry *e ));
192 void parse_oc LDAP_P(( Backend *be, char *fname, int lineno, int argc, char **argv ));
198 Filter * str2filter LDAP_P(( char *str ));
204 int value_add_fast LDAP_P(( struct berval ***vals, struct berval **addvals, int nvals,
205 int naddvals, int *maxvals ));
206 int value_add LDAP_P(( struct berval ***vals, struct berval **addvals ));
207 void value_normalize LDAP_P(( char *s, int syntax ));
208 int value_cmp LDAP_P(( struct berval *v1, struct berval *v2, int syntax,
210 int value_ncmp LDAP_P(( struct berval *v1, struct berval *v2, int syntax, int len,
212 int value_find LDAP_P(( struct berval **vals, struct berval *v, int syntax,
215 #endif /* _proto_slap */