openldap/servers/slapd/tools/mimic.c

166 lines
2.2 KiB
C
Raw Normal View History

/* $OpenLDAP$ */
/*
2000-05-13 10:47:56 +08:00
* Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
/*
* Mimic unused interfaces of slapd...
* needed for linking.
*/
#include "portable.h"
#include <stdio.h>
#include "../slap.h"
1999-04-14 22:12:49 +08:00
#ifdef WIN32
time_t starttime;
#endif
/* bogus ../results.c */
int str2result(
char* s,
int *code,
char **matched,
char **info )
{
assert(0);
1999-04-14 22:12:49 +08:00
return 0;
}
void
send_ldap_disconnect(
Connection *conn,
Operation *op,
ber_int_t err,
1999-08-21 03:00:44 +08:00
const char *text
)
{
assert(0);
}
void
send_ldap_extended(
Connection *conn,
Operation *op,
ber_int_t err,
const char *matched,
const char *text,
struct berval **refs,
const char *rspoid,
struct berval *rspdata,
LDAPControl **ctrls
)
{
assert(0);
}
void
send_ldap_sasl(
Connection *conn,
Operation *op,
ber_int_t err,
const char *matched,
const char *text,
struct berval **refs,
LDAPControl **ctrls,
struct berval *cred
)
{
assert(0);
}
void
send_ldap_result(
Connection *conn,
Operation *op,
ber_int_t err,
1999-08-21 03:00:44 +08:00
const char *matched,
const char *text,
struct berval **refs,
LDAPControl **ctrls
)
{
assert(0);
}
void
send_search_result(
Connection *conn,
Operation *op,
ber_int_t err,
1999-08-21 03:00:44 +08:00
const char *matched,
const char *text,
struct berval **refs,
LDAPControl **ctrls,
int nentries
)
{
assert(0);
}
int
send_search_entry(
Backend *be,
Connection *conn,
Operation *op,
Entry *e,
char **attrs,
int attrsonly,
LDAPControl **ctrls
)
{
assert(0);
return -1;
}
int send_search_reference(
Backend *be,
Connection *conn,
Operation *op,
Entry *e,
struct berval **refs,
int scope,
LDAPControl **ctrls,
struct berval ***v2refs
)
{
assert(0);
return -1;
}
struct berval **get_entry_referrals(
Backend *be, Connection *conn, Operation *op, Entry *e )
{
assert(0);
return NULL;
}
int slap_sasl_init(void)
{
return LDAP_SUCCESS;
}
int slap_sasl_destroy(void)
{
return LDAP_SUCCESS;
}
char * slap_sasl_secprops( const char *in )
{
2000-09-22 05:32:13 +08:00
return "";
}
2000-09-22 01:32:54 +08:00
int slap_sasl_regexp_config( const char *match, const char *replace )
{
2000-09-22 05:28:32 +08:00
return(0);
2000-09-22 01:32:54 +08:00
}
void connection2anonymous( Connection *c )
{
assert(0);
}
2000-09-22 01:32:54 +08:00