mimic.c 3.48 KB
Newer Older
1
/* $OpenLDAP$ */
2
/*
Kurt Zeilenga's avatar
Kurt Zeilenga committed
3
 * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
4
5
 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
 */
6
7
8
9
10
11
12
13
14
15
/*
 * Mimic unused interfaces of slapd...
 * needed for linking.
 */
#include "portable.h"

#include <stdio.h>

#include "../slap.h"

Pierangelo Masarati's avatar
Pierangelo Masarati committed
16
/* needed by WIN32 and back-monitor */
Gary Williams's avatar
Gary Williams committed
17
18
time_t starttime;

19
20
21
/* because Versionstr is used in back-monitor */
const char Versionstr[] = "";

22
23
24
/* bogus ../results.c */
int str2result(
	char* s,
25
	int *code,
26
27
28
29
	char **matched,
	char **info )
{
	assert(0);
Gary Williams's avatar
Gary Williams committed
30
    return 0;
31
32
}

33
void
34
send_ldap_disconnect( Operation	*op, SlapReply *rs )
35
36
37
38
{
	assert(0);
}

39
void
40
slap_send_ldap_extended(
41
    Operation	*op, SlapReply *rs
42
43
44
45
46
)
{
	assert(0);
}

Jong Hyuk Choi's avatar
Jong Hyuk Choi committed
47
48
void
slap_send_ldap_intermediate_resp(
49
	Operation *op, SlapReply *rs
Jong Hyuk Choi's avatar
Jong Hyuk Choi committed
50
51
52
53
54
)
{
	assert(0);
}

55
void
56
send_ldap_sasl( Operation *op, SlapReply *rs )
57
58
59
60
{
	assert(0);
}

61
void
62
slap_send_ldap_result( Operation *op, SlapReply *rs )
63
64
65
66
67
{
	assert(0);
}

int
68
slap_send_search_entry( Operation *op, SlapReply *rs )
69
70
71
72
{
	assert(0);
	return -1;
}
73

74
int
75
slap_send_search_reference( Operation *op, SlapReply *rs )
76
77
78
79
80
{
	assert(0);
	return -1;
}

81
82
int slap_sasl_init(void)
{
83
	return LDAP_SUCCESS;
84
85
}

86
87
int slap_sasl_destroy(void)
{
88
	return LDAP_SUCCESS;
89
}
90

91
int slap_sasl_setpass( Operation *op, SlapReply *rs )
92
93
94
95
{
	return LDAP_SUCCESS;
}

96
97
98
99
100
101
int slap_sasl_config(
	int cargc,
	char **cargv,
	char *line,
	const char *fname,
	int lineno )
102
{
103
	return LDAP_SUCCESS;
104
105
106
}


107
108
109
110
void connection2anonymous( Connection *c )
{
	assert(0);
}
111

112
113
114
Connection * connection_first( ber_socket_t *b )
{
	assert(0);
115
	return NULL;
116
117
118
119
120
}

Connection * connection_next( Connection *c, ber_socket_t *b )
{
	assert(0);
121
	return NULL;
122
123
}

124
125
126
127
128
unsigned long connections_nextid(void)
{
	return 0;
}

129
130
131
132
133
134
135
136
void connection_done( Connection *c )
{
	assert(0);
}

const char * connection_state2str( int state )
{
	assert(0);
137
	return NULL;
138
139
}

140
void replog( Operation *op )
141
142
143
144
{
	assert(0);
}

Pierangelo Masarati's avatar
   
Pierangelo Masarati committed
145
146
int add_replica_info( Backend *be, const char *host )
{
147
	return 0;
Pierangelo Masarati's avatar
   
Pierangelo Masarati committed
148
}
149

Pierangelo Masarati's avatar
Pierangelo Masarati committed
150
151
152
153
154
int add_replica_suffix( Backend *be, int nr, const char *suffix )
{
	return 0;
}

155
int add_replica_attrs( Backend *be, int nr, char *attrs, int exclude )
156
157
158
159
{
	return 0;
}

160
161
162
163
164
int parse_limits( Backend *be, const char *fname, int lineno, int argc, char **argv )
{
	return 0;
}

165
166
167
168
169
int parse_limit( const char *arg, struct slap_limits_set *limit )
{
	return 0;
}

170
int get_limits( Backend *be, struct berval *ndn, struct slap_limits_set **limit )
171
172
173
174
{
	return 0;
}

175
176
177
178
int read_root_dse_file ( const char *file )
{
	return 0;
}
179
180

Attribute *
181
slap_operational_subschemaSubentry( Backend *be )
182
183
184
185
186
187
188
189
190
191
{
	return NULL;
}

Attribute *
slap_operational_hasSubordinate( int hs )
{
	return NULL;
}

Pierangelo Masarati's avatar
Pierangelo Masarati committed
192
193
194
195
196
197
Listener **
slapd_get_listeners(void)
{
	return NULL;
}

198
199
int
slap_modrdn2mods(
200
	Operation	*op, SlapReply *rs,
201
202
203
204
205
206
207
208
	Entry		*e,
	LDAPRDN		*oldrdn,
	LDAPRDN		*newrdn,
	Modifications	**pmod )
{
	return 0;
}

209
210
211
212
213
214
215
216
217
218
219
int
slap_mods2entry(
	Modifications *mods,
	Entry **e,
	int repl_user,
	const char **text,
	char *textbuf, size_t textlen )
{
	return 0;
}

220
221
222
223
224
225
226
227
228
229
230
231
int slap_sasl_getdn( Connection *conn, char *id, int len,
	char *user_realm, struct berval *dn, int flags )
{
	return -1;
}

int slap_sasl_authorized( Connection *conn,
	struct berval *authcDN, struct berval *authzDN )
{
	return -1;
}

232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
int slap_mods_check( Modifications *ml, int update, const char **text,
	char *textbuf, size_t textlen )
{
	return -1;
}

int slap_mods_opattrs( Operation *op, Modifications *mods,
	Modifications **modtail, const char **text,
	char *textbuf, size_t textlen )
{
	return -1;
}

int root_dse_info( Connection *conn, Entry **entry, const char **text )
{
	return -1;
}