]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
Updated sasl response to support returning of referrals.
[openldap] / servers / slapd / tools / mimic.c
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-1999 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 /* bogus ../results.c */
21 int str2result(
22         char* s,
23         int *code, 
24         char **matched,
25         char **info )
26 {
27         assert(0);
28     return 0;
29 }
30
31 void
32 send_ldap_disconnect(
33     Connection  *conn,
34     Operation   *op,
35     ber_int_t   err,
36     const char  *text
37 )
38 {
39         assert(0);
40 }
41
42 void
43 send_ldap_extended(
44     Connection  *conn,
45     Operation   *op,
46     ber_int_t   err,
47     const char  *matched,
48     const char  *text,
49         struct berval **refs,
50     char        *rspoid,
51         struct berval *rspdata,
52         LDAPControl **ctrls
53 )
54 {
55         assert(0);
56 }
57
58 void
59 send_ldap_sasl(
60     Connection  *conn,
61     Operation   *op,
62     ber_int_t   err,
63     const char  *matched,
64     const char  *text,
65         struct berval **refs,
66         LDAPControl **ctrls,
67         struct berval *cred
68 )
69 {
70         assert(0);
71 }
72
73 void
74 send_ldap_result(
75         Connection  *conn, 
76         Operation   *op,
77         ber_int_t     err,
78         const char    *matched,
79         const char    *text,
80         struct berval **refs,
81         LDAPControl **ctrls
82 )        
83 {
84         assert(0);
85 }
86
87 void
88 send_search_result(
89         Connection  *conn, 
90         Operation   *op,
91         ber_int_t     err,
92         const char    *matched,
93         const char    *text,
94         struct berval **refs,
95         LDAPControl **ctrls,
96         int             nentries
97 )        
98 {
99         assert(0);
100 }
101
102 int
103 send_search_entry(
104         Backend *be,
105         Connection  *conn, 
106         Operation   *op,
107         Entry   *e,
108         char    **attrs,
109         int             attrsonly,
110         LDAPControl **ctrls
111 )        
112 {
113         assert(0);
114         return -1;
115 }
116
117 int send_search_reference(
118         Backend *be,
119         Connection  *conn, 
120         Operation   *op,
121         Entry   *e,
122         struct berval **refs,
123         int scope,
124         LDAPControl **ctrls,
125         struct berval ***v2refs
126 )
127 {
128         assert(0);
129         return -1;
130 }
131
132 struct berval **get_entry_referrals(
133         Backend *be, Connection *conn, Operation *op, Entry *e )
134 {
135         assert(0);
136         return NULL;
137 }
138
139 int sasl_init(void) {
140         return 0;
141 }
142
143 int sasl_destroy(void) {
144         return 0;
145 }