]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
Add support for LDAP_ALL_OPERATIONAL_ATTRIBUTES ("+") (based on
[openldap] / servers / slapd / tools / mimic.c
1 /*
2  * Mimic unused interfaces of slapd...
3  * needed for linking.
4  */
5 #include "portable.h"
6
7 #include <stdio.h>
8
9 #include "../slap.h"
10
11 #ifdef WIN32
12 time_t starttime;
13 #endif
14
15 /* bogus ../results.c */
16 int str2result(
17         char* s,
18         int *code, 
19         char **matched,
20         char **info )
21 {
22         assert(0);
23     return 0;
24 }
25
26 void
27 send_ldap_disconnect(
28     Connection  *conn,
29     Operation   *op,
30     ber_int_t   err,
31     char        *text
32 )
33 {
34         assert(0);
35 }
36
37 void
38 send_ldap_result(
39         Connection  *conn, 
40         Operation   *op,
41         int     err,
42         char    *matched,
43         char    *text,
44         struct berval **refs,
45         LDAPControl **ctrls
46 )        
47 {
48         assert(0);
49 }
50
51 void
52 send_search_result(
53         Connection  *conn, 
54         Operation   *op,
55         int     err,
56         char    *matched,
57         char    *text,
58         struct berval **refs,
59         LDAPControl **ctrls,
60         int             nentries
61 )        
62 {
63         assert(0);
64 }
65
66 int
67 send_search_entry(
68         Backend *be,
69         Connection  *conn, 
70         Operation   *op,
71         Entry   *e,
72         char    **attrs,
73         int             attrsonly,
74         LDAPControl **ctrls
75 )        
76 {
77         assert(0);
78         return -1;
79 }
80
81 int send_search_reference(
82         Backend *be,
83         Connection  *conn, 
84         Operation   *op,
85         Entry   *e,
86         struct berval **refs,
87         int scope,
88         LDAPControl **ctrls,
89         struct berval ***v2refs
90 )
91 {
92         assert(0);
93         return -1;
94 }
95
96 struct berval **get_entry_referrals(
97         Backend *be, Connection *conn, Operation *op, Entry *e )
98 {
99         assert(0);
100         return NULL;
101 }