]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
Changes from HEAD for beta
[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_read_controls(
84         Operation *op,
85         SlapReply *rs,
86         Entry *e,
87         const struct berval *oid,
88         LDAPControl **c )
89 {
90         assert(0);
91         return -1;
92 }
93
94 int slap_sasl_init(void)
95 {
96         return LDAP_SUCCESS;
97 }
98
99 int slap_sasl_destroy(void)
100 {
101         return LDAP_SUCCESS;
102 }
103
104 int slap_sasl_setpass( Operation *op, SlapReply *rs )
105 {
106         return LDAP_SUCCESS;
107 }
108
109 int slap_sasl_config(
110         int cargc,
111         char **cargv,
112         char *line,
113         const char *fname,
114         int lineno )
115 {
116         return LDAP_SUCCESS;
117 }
118
119
120 void connection2anonymous( Connection *c )
121 {
122         assert(0);
123 }
124
125 Connection * connection_first( ber_socket_t *b )
126 {
127         assert(0);
128         return NULL;
129 }
130
131 Connection * connection_next( Connection *c, ber_socket_t *b )
132 {
133         assert(0);
134         return NULL;
135 }
136
137 unsigned long connections_nextid(void)
138 {
139         return 0;
140 }
141
142 void connection_done( Connection *c )
143 {
144         assert(0);
145 }
146
147 const char * connection_state2str( int state )
148 {
149         assert(0);
150         return NULL;
151 }
152
153 void replog( Operation *op )
154 {
155         assert(0);
156 }
157
158 int add_replica_info( Backend *be, const char *host )
159 {
160         return 0;
161 }
162
163 int add_replica_suffix( Backend *be, int nr, const char *suffix )
164 {
165         return 0;
166 }
167
168 int add_replica_attrs( Backend *be, int nr, char *attrs, int exclude )
169 {
170         return 0;
171 }
172
173 int parse_limits( Backend *be, const char *fname, int lineno, int argc, char **argv )
174 {
175         return 0;
176 }
177
178 int parse_limit( const char *arg, struct slap_limits_set *limit )
179 {
180         return 0;
181 }
182
183 int get_limits( Backend *be, struct berval *ndn, struct slap_limits_set **limit )
184 {
185         return 0;
186 }
187
188 int read_root_dse_file ( const char *file )
189 {
190         return 0;
191 }
192
193 Attribute *
194 slap_operational_subschemaSubentry( Backend *be )
195 {
196         return NULL;
197 }
198
199 Attribute *
200 slap_operational_hasSubordinate( int hs )
201 {
202         return NULL;
203 }
204
205 Listener **
206 slapd_get_listeners(void)
207 {
208         return NULL;
209 }
210
211 int
212 slap_modrdn2mods(
213         Operation       *op, SlapReply *rs,
214         Entry           *e,
215         LDAPRDN         oldrdn,
216         LDAPRDN         newrdn,
217         Modifications   **pmod )
218 {
219         return 0;
220 }
221
222 int slap_sasl_getdn( Connection *conn, Operation *op, char *id, int len,
223         char *user_realm, struct berval *dn, int flags )
224 {
225         return -1;
226 }
227
228 int slap_sasl_authorized( Operation *op,
229         struct berval *authcDN, struct berval *authzDN )
230 {
231         return -1;
232 }
233
234 int root_dse_info( Connection *conn, Entry **entry, const char **text )
235 {
236         return -1;
237 }
238
239 struct runqueue_s syncrepl_rq;
240
241 void init_syncrepl( )
242 {
243         return;
244 }
245
246 void* do_syncrepl( void *ctx, void *arg )
247 {
248         return NULL;
249 }
250
251 char** str2clist( char ***out, char *in, const char *brkstr )
252 {
253         return NULL;
254 }
255
256 void syncrepl_add_glue( syncinfo_t *si, LDAP *ld, Operation *op, Entry *e,
257                                 Modifications *modlist, int syncstate, struct berval* syncUUID,
258                                 struct berval* syncCookie )
259 {
260         return;
261 }
262
263 int slap_entry2mods( Entry *e, Modifications **mods, const char **text )
264 {
265         return -1;
266 }