]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
fix most missing dependencies with SLAPI; slappasswd needs different LIBS settings ...
[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 /* 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( Operation *op, SlapReply *rs )
35 {
36         assert(0);
37 }
38
39 void
40 slap_send_ldap_extended(
41     Operation   *op, SlapReply *rs
42 )
43 {
44         assert(0);
45 }
46
47 void
48 slap_send_ldap_intermediate_resp(
49         Operation *op, SlapReply *rs
50 )
51 {
52         assert(0);
53 }
54
55 void
56 send_ldap_sasl( Operation *op, SlapReply *rs )
57 {
58         assert(0);
59 }
60
61 void
62 slap_send_ldap_result( Operation *op, SlapReply *rs )
63 {
64         assert(0);
65 }
66
67 int
68 slap_send_search_entry( Operation *op, SlapReply *rs )
69 {
70         assert(0);
71         return -1;
72 }
73
74 int
75 slap_send_search_reference( Operation *op, SlapReply *rs )
76 {
77         assert(0);
78         return -1;
79 }
80
81 int slap_sasl_init(void)
82 {
83         return LDAP_SUCCESS;
84 }
85
86 int slap_sasl_destroy(void)
87 {
88         return LDAP_SUCCESS;
89 }
90
91 int slap_sasl_setpass( Operation *op, SlapReply *rs )
92 {
93         return LDAP_SUCCESS;
94 }
95
96 int slap_sasl_config(
97         int cargc,
98         char **cargv,
99         char *line,
100         const char *fname,
101         int lineno )
102 {
103         return LDAP_SUCCESS;
104 }
105
106
107 void connection2anonymous( Connection *c )
108 {
109         assert(0);
110 }
111
112 Connection * connection_first( ber_socket_t *b )
113 {
114         assert(0);
115         return NULL;
116 }
117
118 Connection * connection_next( Connection *c, ber_socket_t *b )
119 {
120         assert(0);
121         return NULL;
122 }
123
124 unsigned long connections_nextid(void)
125 {
126         return 0;
127 }
128
129 void connection_done( Connection *c )
130 {
131         assert(0);
132 }
133
134 const char * connection_state2str( int state )
135 {
136         assert(0);
137         return NULL;
138 }
139
140 void replog( Operation *op )
141 {
142         assert(0);
143 }
144
145 int add_replica_info( Backend *be, const char *host )
146 {
147         return 0;
148 }
149
150 int add_replica_suffix( Backend *be, int nr, const char *suffix )
151 {
152         return 0;
153 }
154
155 int add_replica_attrs( Backend *be, int nr, char *attrs, int exclude )
156 {
157         return 0;
158 }
159
160 int parse_limits( Backend *be, const char *fname, int lineno, int argc, char **argv )
161 {
162         return 0;
163 }
164
165 int parse_limit( const char *arg, struct slap_limits_set *limit )
166 {
167         return 0;
168 }
169
170 int get_limits( Backend *be, struct berval *ndn, struct slap_limits_set **limit )
171 {
172         return 0;
173 }
174
175 int read_root_dse_file ( const char *file )
176 {
177         return 0;
178 }
179
180 Attribute *
181 slap_operational_subschemaSubentry( Backend *be )
182 {
183         return NULL;
184 }
185
186 Attribute *
187 slap_operational_hasSubordinate( int hs )
188 {
189         return NULL;
190 }
191
192 Listener **
193 slapd_get_listeners(void)
194 {
195         return NULL;
196 }
197
198 int
199 slap_modrdn2mods(
200         Operation       *op, SlapReply *rs,
201         Entry           *e,
202         LDAPRDN         *oldrdn,
203         LDAPRDN         *newrdn,
204         Modifications   **pmod )
205 {
206         return 0;
207 }
208
209 int
210 slap_mods2entry(
211         Modifications *mods,
212         Entry **e,
213         int repl_user,
214         const char **text,
215         char *textbuf, size_t textlen )
216 {
217         return 0;
218 }
219
220 int slap_sasl_getdn( Connection *conn, char *id, int len,
221         char *user_realm, struct berval *dn, int flags )
222 {
223         return -1;
224 }
225
226 int slap_sasl_authorized( Connection *conn,
227         struct berval *authcDN, struct berval *authzDN )
228 {
229         return -1;
230 }
231
232 int slap_mods_check( Modifications *ml, int update, const char **text,
233         char *textbuf, size_t textlen )
234 {
235         return -1;
236 }
237
238 int slap_mods_opattrs( Operation *op, Modifications *mods,
239         Modifications **modtail, const char **text,
240         char *textbuf, size_t textlen )
241 {
242         return -1;
243 }
244
245 int root_dse_info( Connection *conn, Entry **entry, const char **text )
246 {
247         return -1;
248 }
249