]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
allow attribute exclusion list in selective replica
[openldap] / servers / slapd / tools / mimic.c
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 /*
7  * Mimic unused interfaces of slapd...
8  * needed for linking.
9  */
10 #include "portable.h"
11
12 #include <stdio.h>
13
14 #include "../slap.h"
15
16 /* needed by WIN32 and back-monitor */
17 time_t starttime;
18
19 /* because Versionstr is used in back-monitor */
20 const char Versionstr[] = "";
21
22 /* bogus ../results.c */
23 int str2result(
24         char* s,
25         int *code, 
26         char **matched,
27         char **info )
28 {
29         assert(0);
30     return 0;
31 }
32
33 void
34 send_ldap_disconnect(
35     Connection  *conn,
36     Operation   *op,
37     ber_int_t   err,
38     const char  *text
39 )
40 {
41         assert(0);
42 }
43
44 void
45 send_ldap_extended(
46     Connection  *conn,
47     Operation   *op,
48     ber_int_t   err,
49     const char  *matched,
50     const char  *text,
51         BerVarray refs,
52     const char  *rspoid,
53         struct berval *rspdata,
54         LDAPControl **ctrls
55 )
56 {
57         assert(0);
58 }
59
60 void
61 send_ldap_sasl(
62     Connection  *conn,
63     Operation   *op,
64     ber_int_t   err,
65     const char  *matched,
66     const char  *text,
67         BerVarray refs,
68         LDAPControl **ctrls,
69         struct berval *cred
70 )
71 {
72         assert(0);
73 }
74
75 void
76 send_ldap_result(
77         Connection  *conn, 
78         Operation   *op,
79         ber_int_t     err,
80         const char    *matched,
81         const char    *text,
82         BerVarray refs,
83         LDAPControl **ctrls
84 )        
85 {
86         assert(0);
87 }
88
89 void
90 send_search_result(
91         Connection  *conn, 
92         Operation   *op,
93         ber_int_t     err,
94         const char    *matched,
95         const char    *text,
96         BerVarray refs,
97         LDAPControl **ctrls,
98         int             nentries
99 )        
100 {
101         assert(0);
102 }
103
104 int
105 send_search_entry(
106         Backend *be,
107         Connection  *conn, 
108         Operation   *op,
109         Entry   *e,
110         AttributeName   *attrs,
111         int             attrsonly,
112         LDAPControl **ctrls
113 )        
114 {
115         assert(0);
116         return -1;
117 }
118
119 int send_search_reference(
120         Backend *be,
121         Connection  *conn, 
122         Operation   *op,
123         Entry   *e,
124         BerVarray       refs,
125         LDAPControl **ctrls,
126         BerVarray       *v2refs
127 )
128 {
129         assert(0);
130         return -1;
131 }
132
133 int slap_sasl_init(void)
134 {
135         return LDAP_SUCCESS;
136 }
137
138 int slap_sasl_destroy(void)
139 {
140         return LDAP_SUCCESS;
141 }
142
143 char * slap_sasl_secprops( const char *in )
144 {
145         return NULL;
146 }
147
148
149 int slap_sasl_regexp_config( const char *match, const char *replace )
150 {
151         return(0);
152 }
153
154
155 void connection2anonymous( Connection *c )
156 {
157         assert(0);
158 }
159
160 Connection * connection_first( ber_socket_t *b )
161 {
162         assert(0);
163         return NULL;
164 }
165
166 Connection * connection_next( Connection *c, ber_socket_t *b )
167 {
168         assert(0);
169         return NULL;
170 }
171
172 unsigned long connections_nextid(void)
173 {
174         return 0;
175 }
176
177 void connection_done( Connection *c )
178 {
179         assert(0);
180 }
181
182 const char * connection_state2str( int state )
183 {
184         assert(0);
185         return NULL;
186 }
187
188 void replog( Backend *be, Operation *op,
189         struct berval *dn, struct berval *ndn, void *change)
190 {
191         assert(0);
192 }
193
194 int add_replica_info( Backend *be, const char *host )
195 {
196         return 0;
197 }
198
199 int add_replica_suffix( Backend *be, int nr, const char *suffix )
200 {
201         return 0;
202 }
203
204 int add_replica_attrs( Backend *be, int nr, char *attrs, int exclude )
205 {
206         return 0;
207 }
208
209 int parse_limits( Backend *be, const char *fname, int lineno, int argc, char **argv )
210 {
211         return 0;
212 }
213
214 int parse_limit( const char *arg, struct slap_limits_set *limit )
215 {
216         return 0;
217 }
218
219 int get_limits( Backend *be, struct berval *ndn, struct slap_limits_set **limit )
220 {
221         return 0;
222 }
223
224 int read_root_dse_file ( const char *file )
225 {
226         return 0;
227 }
228
229 Attribute *
230 slap_operational_subschemaSubentry( void )
231 {
232         return NULL;
233 }
234
235 Attribute *
236 slap_operational_hasSubordinate( int hs )
237 {
238         return NULL;
239 }
240
241 Listener **
242 slapd_get_listeners(void)
243 {
244         return NULL;
245 }
246