mimic.c 1.29 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Mimic unused interfaces of slapd...
 * needed for linking.
 */
#include "portable.h"

#include <stdio.h>

#include "../slap.h"

#ifdef WIN32
time_t starttime;
#endif

/* bogus ../results.c */
int str2result(
	char* s,
	int *code, 
	char **matched,
	char **info )
{
	assert(0);
    return 0;
}

26
27
28
29
30
31
32
33
34
35
36
void
send_ldap_disconnect(
    Connection	*conn,
    Operation	*op,
    ber_int_t	err,
    char	*text
)
{
	assert(0);
}

37
38
39
40
41
42
void
send_ldap_result(
	Connection  *conn, 
	Operation   *op,
	int     err,
	char    *matched,
43
	char    *text,
44
45
	struct berval **refs,
	LDAPControl **ctrls
46
47
48
49
50
51
52
53
54
55
56
57
)        
{
	assert(0);
}

void
send_search_result(
	Connection  *conn, 
	Operation   *op,
	int     err,
	char    *matched,
	char    *text,
58
	struct berval **refs,
59
	LDAPControl **ctrls,
60
61
62
63
64
65
66
67
68
69
70
71
72
73
	int		nentries
)        
{
	assert(0);
}

int
send_search_entry(
	Backend *be,
	Connection  *conn, 
	Operation   *op,
	Entry	*e,
	char	**attrs,
	int		attrsonly,
74
75
	int		opattrs,
	LDAPControl **ctrls
76
77
78
79
80
)        
{
	assert(0);
	return -1;
}
81
82
83
84
85
86
87

int send_search_reference(
	Backend *be,
	Connection  *conn, 
	Operation   *op,
	Entry	*e,
	struct berval **refs,
88
	int scope,
89
	LDAPControl **ctrls,
90
91
92
93
94
95
	struct berval ***v2refs
)
{
	assert(0);
	return -1;
}
96
97
98
99
100
101
102

struct berval **get_entry_referrals(
	Backend *be, Connection *conn, Operation *op, Entry *e )
{
	assert(0);
	return NULL;
}