]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
fix for Makefile change
[openldap] / servers / slapd / tools / mimic.c
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2003 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 #include "ldap_rq.h"
17
18 /* needed by WIN32 and back-monitor */
19 time_t starttime;
20
21 /* because Versionstr is used in back-monitor */
22 const char Versionstr[] = "";
23
24 /* bogus ../results.c */
25 int str2result(
26         char* s,
27         int *code,
28         char **matched,
29         char **info )
30 {
31         assert(0);
32     return 0;
33 }
34
35 void
36 send_ldap_disconnect( Operation *op, SlapReply *rs )
37 {
38         assert(0);
39 }
40
41 void
42 slap_send_ldap_extended(
43     Operation   *op, SlapReply *rs
44 )
45 {
46         assert(0);
47 }
48
49 void
50 slap_send_ldap_intermediate_resp(
51         Operation *op, SlapReply *rs
52 )
53 {
54         assert(0);
55 }
56
57 void
58 send_ldap_sasl( Operation *op, SlapReply *rs )
59 {
60         assert(0);
61 }
62
63 void
64 slap_send_ldap_result( Operation *op, SlapReply *rs )
65 {
66         assert(0);
67 }
68
69 int
70 slap_send_search_entry( Operation *op, SlapReply *rs )
71 {
72         assert(0);
73         return -1;
74 }
75
76 int
77 slap_send_search_reference( Operation *op, SlapReply *rs )
78 {
79         assert(0);
80         return -1;
81 }
82
83 int slap_sasl_init(void)
84 {
85         return LDAP_SUCCESS;
86 }
87
88 int slap_sasl_destroy(void)
89 {
90         return LDAP_SUCCESS;
91 }
92
93 int slap_sasl_setpass( Operation *op, SlapReply *rs )
94 {
95         return LDAP_SUCCESS;
96 }
97
98 int slap_sasl_config(
99         int cargc,
100         char **cargv,
101         char *line,
102         const char *fname,
103         int lineno )
104 {
105         return LDAP_SUCCESS;
106 }
107
108
109 void connection2anonymous( Connection *c )
110 {
111         assert(0);
112 }
113
114 Connection * connection_first( ber_socket_t *b )
115 {
116         assert(0);
117         return NULL;
118 }
119
120 Connection * connection_next( Connection *c, ber_socket_t *b )
121 {
122         assert(0);
123         return NULL;
124 }
125
126 unsigned long connections_nextid(void)
127 {
128         return 0;
129 }
130
131 void connection_done( Connection *c )
132 {
133         assert(0);
134 }
135
136 const char * connection_state2str( int state )
137 {
138         assert(0);
139         return NULL;
140 }
141
142 void replog( Operation *op )
143 {
144         assert(0);
145 }
146
147 int add_replica_info( Backend *be, const char *host )
148 {
149         return 0;
150 }
151
152 int add_replica_suffix( Backend *be, int nr, const char *suffix )
153 {
154         return 0;
155 }
156
157 int add_replica_attrs( Backend *be, int nr, char *attrs, int exclude )
158 {
159         return 0;
160 }
161
162 int parse_limits( Backend *be, const char *fname, int lineno, int argc, char **argv )
163 {
164         return 0;
165 }
166
167 int parse_limit( const char *arg, struct slap_limits_set *limit )
168 {
169         return 0;
170 }
171
172 int get_limits( Backend *be, struct berval *ndn, struct slap_limits_set **limit )
173 {
174         return 0;
175 }
176
177 int read_root_dse_file ( const char *file )
178 {
179         return 0;
180 }
181
182 Attribute *
183 slap_operational_subschemaSubentry( Backend *be )
184 {
185         return NULL;
186 }
187
188 Attribute *
189 slap_operational_hasSubordinate( int hs )
190 {
191         return NULL;
192 }
193
194 Listener **
195 slapd_get_listeners(void)
196 {
197         return NULL;
198 }
199
200 int
201 slap_modrdn2mods(
202         Operation       *op, SlapReply *rs,
203         Entry           *e,
204         LDAPRDN         oldrdn,
205         LDAPRDN         newrdn,
206         Modifications   **pmod )
207 {
208         return 0;
209 }
210
211 int slap_sasl_getdn( Connection *conn, Operation *op, char *id, int len,
212         char *user_realm, struct berval *dn, int flags )
213 {
214         return -1;
215 }
216
217 int slap_sasl_authorized( Operation *op,
218         struct berval *authcDN, struct berval *authzDN )
219 {
220         return -1;
221 }
222
223 int root_dse_info( Connection *conn, Entry **entry, const char **text )
224 {
225         return -1;
226 }
227
228 struct runqueue_s syncrepl_rq;
229
230 void init_syncrepl( )
231 {
232         return;
233 }
234
235 void* do_syncrepl( void *ctx, void *arg )
236 {
237         return NULL;
238 }
239
240 char** str2clist( char ***out, char *in, const char *brkstr )
241 {
242         return NULL;
243 }
244
245 void syncrepl_add_glue( syncinfo_t *si, LDAP *ld, Operation *op, Entry *e,
246                                 Modifications *modlist, int syncstate, struct berval* syncUUID,
247                                 struct berval* syncCookie )
248 {
249         return;
250 }
251
252 int slap_entry2mods( Entry *e, Modifications **mods, const char **text )
253 {
254         return -1;
255 }