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