]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
Changed search attrs from struct berval ** to AttributeName *
[openldap] / servers / slapd / tools / mimic.c
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2000 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 WIN32
17 time_t starttime;
18 #endif
19
20 /* because Versionstr is used in back-monitor */
21 const char Versionstr[] = "";
22
23 /* bogus ../results.c */
24 int str2result(
25         char* s,
26         int *code, 
27         char **matched,
28         char **info )
29 {
30         assert(0);
31     return 0;
32 }
33
34 void
35 send_ldap_disconnect(
36     Connection  *conn,
37     Operation   *op,
38     ber_int_t   err,
39     const char  *text
40 )
41 {
42         assert(0);
43 }
44
45 void
46 send_ldap_extended(
47     Connection  *conn,
48     Operation   *op,
49     ber_int_t   err,
50     const char  *matched,
51     const char  *text,
52         struct berval **refs,
53     const char  *rspoid,
54         struct berval *rspdata,
55         LDAPControl **ctrls
56 )
57 {
58         assert(0);
59 }
60
61 void
62 send_ldap_sasl(
63     Connection  *conn,
64     Operation   *op,
65     ber_int_t   err,
66     const char  *matched,
67     const char  *text,
68         struct berval **refs,
69         LDAPControl **ctrls,
70         struct berval *cred
71 )
72 {
73         assert(0);
74 }
75
76 void
77 send_ldap_result(
78         Connection  *conn, 
79         Operation   *op,
80         ber_int_t     err,
81         const char    *matched,
82         const char    *text,
83         struct berval **refs,
84         LDAPControl **ctrls
85 )        
86 {
87         assert(0);
88 }
89
90 void
91 send_search_result(
92         Connection  *conn, 
93         Operation   *op,
94         ber_int_t     err,
95         const char    *matched,
96         const char    *text,
97         struct berval **refs,
98         LDAPControl **ctrls,
99         int             nentries
100 )        
101 {
102         assert(0);
103 }
104
105 int
106 send_search_entry(
107         Backend *be,
108         Connection  *conn, 
109         Operation   *op,
110         Entry   *e,
111         AttributeName   *attrs,
112         int             attrsonly,
113         LDAPControl **ctrls
114 )        
115 {
116         assert(0);
117         return -1;
118 }
119
120 int send_search_reference(
121         Backend *be,
122         Connection  *conn, 
123         Operation   *op,
124         Entry   *e,
125         struct berval **refs,
126         LDAPControl **ctrls,
127         struct berval ***v2refs
128 )
129 {
130         assert(0);
131         return -1;
132 }
133
134 int slap_sasl_init(void)
135 {
136         return LDAP_SUCCESS;
137 }
138
139 int slap_sasl_destroy(void)
140 {
141         return LDAP_SUCCESS;
142 }
143
144 char * slap_sasl_secprops( const char *in )
145 {
146         return NULL;
147 }
148
149
150 int slap_sasl_regexp_config( const char *match, const char *replace )
151 {
152         return(0);
153 }
154
155
156 void connection2anonymous( Connection *c )
157 {
158         assert(0);
159 }
160
161 Connection * connection_first( ber_socket_t *b )
162 {
163         assert(0);
164         return NULL;
165 }
166
167 Connection * connection_next( Connection *c, ber_socket_t *b )
168 {
169         assert(0);
170         return NULL;
171 }
172
173 unsigned long connections_nextid(void)
174 {
175         return 0;
176 }
177
178 void connection_done( Connection *c )
179 {
180         assert(0);
181 }
182
183 const char * connection_state2str( int state )
184 {
185         assert(0);
186         return NULL;
187 }
188
189 void replog( Backend *be, Operation *op,
190         struct berval *dn, struct berval *ndn, void *change)
191 {
192         assert(0);
193 }
194
195 void slap_mods_free( Modifications *ml )
196 {
197         assert(0);
198 }
199
200 int add_replica_info( Backend *be, const char *host )
201 {
202         return 0;
203 }
204
205 int add_replica_suffix( Backend *be, int nr, const char *suffix )
206 {
207         return 0;
208 }
209
210 int parse_limits( Backend *be, const char *fname, int lineno, int argc, char **argv )
211 {
212         return 0;
213 }
214
215 int parse_limit( const char *arg, struct slap_limits_set *limit )
216 {
217         return 0;
218 }
219
220 int get_limits( Backend *be, struct berval *ndn, struct slap_limits_set **limit )
221 {
222         return 0;
223 }
224
225 int read_root_dse_file ( const char *file )
226 {
227         return 0;
228 }
229
230 Attribute *
231 slap_operational_subschemaSubentry( void )
232 {
233         return NULL;
234 }
235
236 Attribute *
237 slap_operational_hasSubordinate( int hs )
238 {
239         return NULL;
240 }
241