]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
Misc cleanup
[openldap] / servers / slapd / tools / mimic.c
1 /* $OpenLDAP$ */
2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3  *
4  * Copyright 1998-2003 The OpenLDAP Foundation.
5  * Portions Copyright 1998-2003 Kurt D. Zeilenga.
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted only as authorized by the OpenLDAP
10  * Public License.
11  *
12  * A copy of this license is available in file LICENSE in the
13  * top-level directory of the distribution or, alternatively, at
14  * <http://www.OpenLDAP.org/license.html>.
15  */
16 /* ACKNOWLEDGEMENTS:
17  * This work was initially developed by Kurt Zeilenga for inclusion
18  * in OpenLDAP Software.
19  */
20
21
22 /*
23  * Mimic unused interfaces of slapd...
24  * needed for linking.
25  */
26 #include "portable.h"
27
28 #include <stdio.h>
29
30 #include "../slap.h"
31
32 #include "ldap_rq.h"
33
34 /* needed by WIN32 and back-monitor */
35 time_t starttime;
36
37 /* because Versionstr is used in back-monitor */
38 const char Versionstr[] = "";
39
40 /* bogus ../results.c */
41 int str2result(
42         char* s,
43         int *code,
44         char **matched,
45         char **info )
46 {
47         assert(0);
48     return 0;
49 }
50
51 void
52 send_ldap_disconnect( Operation *op, SlapReply *rs )
53 {
54         assert(0);
55 }
56
57 int
58 slap_null_cb(
59     Operation   *op, SlapReply *rs
60 )
61 {
62         assert(0);
63 }
64
65 int
66 slap_replog_cb(
67     Operation   *op, SlapReply *rs
68 )
69 {
70         assert(0);
71 }
72
73 void
74 slap_send_ldap_extended(
75     Operation   *op, SlapReply *rs
76 )
77 {
78         assert(0);
79 }
80
81 void
82 slap_send_ldap_intermediate_resp(
83         Operation *op, SlapReply *rs
84 )
85 {
86         assert(0);
87 }
88
89 void
90 send_ldap_sasl( Operation *op, SlapReply *rs )
91 {
92         assert(0);
93 }
94
95 void
96 slap_send_ldap_result( Operation *op, SlapReply *rs )
97 {
98         assert(0);
99 }
100
101 int
102 slap_send_search_entry( Operation *op, SlapReply *rs )
103 {
104         assert(0);
105         return -1;
106 }
107
108 int
109 slap_send_search_reference( Operation *op, SlapReply *rs )
110 {
111         assert(0);
112         return -1;
113 }
114
115 int slap_read_controls(
116         Operation *op,
117         SlapReply *rs,
118         Entry *e,
119         const struct berval *oid,
120         LDAPControl **c )
121 {
122         assert(0);
123         return -1;
124 }
125
126 int slap_sasl_init(void)
127 {
128         return LDAP_SUCCESS;
129 }
130
131 int slap_sasl_destroy(void)
132 {
133         return LDAP_SUCCESS;
134 }
135
136 int slap_sasl_setpass( Operation *op, SlapReply *rs )
137 {
138         return LDAP_SUCCESS;
139 }
140
141 int slap_sasl_config(
142         int cargc,
143         char **cargv,
144         char *line,
145         const char *fname,
146         int lineno )
147 {
148         return LDAP_SUCCESS;
149 }
150
151
152 int connection_client_setup(
153         ber_socket_t s,
154         Listener *l,
155         ldap_pvt_thread_start_t *func,
156         void *arg )
157 {
158         assert(0);
159         return 0;
160 }
161
162 void connection_client_enable( ber_socket_t s )
163 {
164         assert(0);
165 }
166
167 void connection_client_stop( ber_socket_t s )
168 {
169         assert(0);
170 }
171
172 void connection2anonymous( Connection *c )
173 {
174         assert(0);
175 }
176
177 Connection * connection_first( ber_socket_t *b )
178 {
179         assert(0);
180         return NULL;
181 }
182
183 Connection * connection_next( Connection *c, ber_socket_t *b )
184 {
185         assert(0);
186         return NULL;
187 }
188
189 unsigned long connections_nextid(void)
190 {
191         return 0;
192 }
193
194 void connection_done( Connection *c )
195 {
196         assert(0);
197 }
198
199 const char * connection_state2str( int state )
200 {
201         assert(0);
202         return NULL;
203 }
204
205 void replog( Operation *op )
206 {
207         assert(0);
208 }
209
210 int add_replica_info( Backend *be, const char *host )
211 {
212         return 0;
213 }
214
215 int add_replica_suffix( Backend *be, int nr, const char *suffix )
216 {
217         return 0;
218 }
219
220 int add_replica_attrs( Backend *be, int nr, char *attrs, int exclude )
221 {
222         return 0;
223 }
224
225 int parse_limits( Backend *be, const char *fname, int lineno, int argc, char **argv )
226 {
227         return 0;
228 }
229
230 int parse_limit( const char *arg, struct slap_limits_set *limit )
231 {
232         return 0;
233 }
234
235 int get_limits( Backend *be, struct berval *ndn, struct slap_limits_set **limit )
236 {
237         return 0;
238 }
239
240 int read_root_dse_file ( const char *file )
241 {
242         return 0;
243 }
244
245 Attribute *
246 slap_operational_subschemaSubentry( Backend *be )
247 {
248         return NULL;
249 }
250
251 Attribute *
252 slap_operational_hasSubordinate( int hs )
253 {
254         return NULL;
255 }
256
257 Listener **
258 slapd_get_listeners(void)
259 {
260         return NULL;
261 }
262
263 int
264 slap_modrdn2mods(
265         Operation       *op, SlapReply *rs,
266         Entry           *e,
267         LDAPRDN         oldrdn,
268         LDAPRDN         newrdn,
269         Modifications   **pmod )
270 {
271         return 0;
272 }
273
274 int slap_sasl_getdn( Connection *conn, Operation *op, char *id, int len,
275         char *user_realm, struct berval *dn, int flags )
276 {
277         return -1;
278 }
279
280 int slap_sasl_authorized( Operation *op,
281         struct berval *authcDN, struct berval *authzDN )
282 {
283         return -1;
284 }
285
286 int root_dse_info( Connection *conn, Entry **entry, const char **text )
287 {
288         return -1;
289 }
290
291 int slap_entry2mods( Entry *e, Modifications **mods, const char **text,
292                                          char *textbuf, size_t textlen )
293 {
294         return -1;
295 }
296
297 volatile sig_atomic_t slapd_abrupt_shutdown;
298
299 int slap_mods_check( Modifications *ml, int update, const char **text,
300                 char *textbuf, size_t textlen, void *ctx )
301 {
302         return -1;
303 }
304
305 int slap_mods2entry( Modifications *mods, Entry **e, int repl_user,
306                 int dup, const char **text, char *textbuf, size_t textlen )
307 {
308         return -1;
309 }
310
311 int slap_mods_opattrs( Operation *op, Modifications *mods,
312                 Modifications **modtail, const char **text,
313                 char *textbuf, size_t textlen )
314 {
315         return -1;
316 }
317
318 int slap_parse_user( struct berval *id, struct berval *user,
319                 struct berval *realm, struct berval *mech )
320 {
321         return -1;
322 }
323
324 int cancel_extop( Operation *op, SlapReply *rs )
325 {
326         return -1;
327 }
328
329 #ifdef HAVE_TLS
330 int starttls_extop ( Operation *op, SlapReply *rs )
331 {
332         return -1;
333 }
334 #endif