]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
Add send_ldap_sasl() to facility implementation of SASL bind.
[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     char        *rspoid,
50         struct berval *rspdata
51 )
52 {
53         assert(0);
54 }
55
56 void
57 send_ldap_sasl(
58     Connection  *conn,
59     Operation   *op,
60     ber_int_t   err,
61     const char  *matched,
62     const char  *text,
63         struct berval *cred
64 )
65 {
66         assert(0);
67 }
68
69 void
70 send_ldap_result(
71         Connection  *conn, 
72         Operation   *op,
73         ber_int_t     err,
74         const char    *matched,
75         const char    *text,
76         struct berval **refs,
77         LDAPControl **ctrls
78 )        
79 {
80         assert(0);
81 }
82
83 void
84 send_search_result(
85         Connection  *conn, 
86         Operation   *op,
87         ber_int_t     err,
88         const char    *matched,
89         const char    *text,
90         struct berval **refs,
91         LDAPControl **ctrls,
92         int             nentries
93 )        
94 {
95         assert(0);
96 }
97
98 int
99 send_search_entry(
100         Backend *be,
101         Connection  *conn, 
102         Operation   *op,
103         Entry   *e,
104         char    **attrs,
105         int             attrsonly,
106         LDAPControl **ctrls
107 )        
108 {
109         assert(0);
110         return -1;
111 }
112
113 int send_search_reference(
114         Backend *be,
115         Connection  *conn, 
116         Operation   *op,
117         Entry   *e,
118         struct berval **refs,
119         int scope,
120         LDAPControl **ctrls,
121         struct berval ***v2refs
122 )
123 {
124         assert(0);
125         return -1;
126 }
127
128 struct berval **get_entry_referrals(
129         Backend *be, Connection *conn, Operation *op, Entry *e )
130 {
131         assert(0);
132         return NULL;
133 }
134
135 int sasl_init(void) {
136         return 0;
137 }
138
139 int sasl_destroy(void) {
140         return 0;
141 }