]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
reworked slapd_mods_free into mimic to avoid extra obj linking into tools
[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         char    **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         int scope,
127         LDAPControl **ctrls,
128         struct berval ***v2refs
129 )
130 {
131         assert(0);
132         return -1;
133 }
134
135 struct berval **get_entry_referrals(
136         Backend *be, Connection *conn, Operation *op, Entry *e )
137 {
138         assert(0);
139         return NULL;
140 }
141
142 int slap_sasl_init(void)
143 {
144         return LDAP_SUCCESS;
145 }
146
147 int slap_sasl_destroy(void)
148 {
149         return LDAP_SUCCESS;
150 }
151
152 char * slap_sasl_secprops( const char *in )
153 {
154         return NULL;
155 }
156
157
158 int slap_sasl_regexp_config( const char *match, const char *replace )
159 {
160         return(0);
161 }
162
163
164 void connection2anonymous( Connection *c )
165 {
166         assert(0);
167 }
168
169 Connection * connection_first( ber_socket_t *b )
170 {
171         assert(0);
172 }
173
174 Connection * connection_next( Connection *c, ber_socket_t *b )
175 {
176         assert(0);
177 }
178
179 void connection_done( Connection *c )
180 {
181         assert(0);
182 }
183
184 const char * connection_state2str( int state )
185 {
186         assert(0);
187 }
188
189 void replog( Backend *be, Operation *op, char *dn, void *change)
190 {
191         assert(0);
192 }
193
194 void slap_mods_free( Modifications *ml )
195 {
196         assert(0);
197 }
198