1999-09-09 03:06:24 +08:00
|
|
|
/* $OpenLDAP$ */
|
1999-08-05 07:59:13 +08:00
|
|
|
/*
|
2002-01-05 05:17:25 +08:00
|
|
|
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
|
1999-08-05 07:59:13 +08:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
*/
|
1999-03-22 15:14:54 +08:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2001-07-15 01:34:24 +08:00
|
|
|
/* because Versionstr is used in back-monitor */
|
|
|
|
const char Versionstr[] = "";
|
|
|
|
|
1999-03-22 15:38:27 +08:00
|
|
|
/* 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;
|
1999-03-22 15:38:27 +08:00
|
|
|
}
|
|
|
|
|
1999-07-16 10:45:46 +08:00
|
|
|
void
|
|
|
|
send_ldap_disconnect(
|
|
|
|
Connection *conn,
|
|
|
|
Operation *op,
|
|
|
|
ber_int_t err,
|
1999-08-21 03:00:44 +08:00
|
|
|
const char *text
|
1999-07-16 10:45:46 +08:00
|
|
|
)
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
1999-11-30 01:44:14 +08:00
|
|
|
void
|
|
|
|
send_ldap_extended(
|
|
|
|
Connection *conn,
|
|
|
|
Operation *op,
|
|
|
|
ber_int_t err,
|
|
|
|
const char *matched,
|
|
|
|
const char *text,
|
2002-01-14 09:43:17 +08:00
|
|
|
BerVarray refs,
|
2000-05-22 11:46:57 +08:00
|
|
|
const char *rspoid,
|
1999-12-10 12:52:32 +08:00
|
|
|
struct berval *rspdata,
|
|
|
|
LDAPControl **ctrls
|
1999-11-30 01:44:14 +08:00
|
|
|
)
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
send_ldap_sasl(
|
|
|
|
Connection *conn,
|
|
|
|
Operation *op,
|
|
|
|
ber_int_t err,
|
|
|
|
const char *matched,
|
|
|
|
const char *text,
|
2002-01-14 09:43:17 +08:00
|
|
|
BerVarray refs,
|
1999-12-10 12:52:32 +08:00
|
|
|
LDAPControl **ctrls,
|
1999-11-30 01:44:14 +08:00
|
|
|
struct berval *cred
|
|
|
|
)
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
1999-03-22 15:14:54 +08:00
|
|
|
void
|
|
|
|
send_ldap_result(
|
|
|
|
Connection *conn,
|
|
|
|
Operation *op,
|
1999-11-26 01:52:47 +08:00
|
|
|
ber_int_t err,
|
1999-08-21 03:00:44 +08:00
|
|
|
const char *matched,
|
|
|
|
const char *text,
|
2002-01-14 09:43:17 +08:00
|
|
|
BerVarray refs,
|
1999-07-16 10:45:46 +08:00
|
|
|
LDAPControl **ctrls
|
1999-03-22 15:14:54 +08:00
|
|
|
)
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
1999-07-16 10:45:46 +08:00
|
|
|
send_search_result(
|
1999-03-22 15:14:54 +08:00
|
|
|
Connection *conn,
|
|
|
|
Operation *op,
|
1999-11-26 01:52:47 +08:00
|
|
|
ber_int_t err,
|
1999-08-21 03:00:44 +08:00
|
|
|
const char *matched,
|
|
|
|
const char *text,
|
2002-01-14 09:43:17 +08:00
|
|
|
BerVarray refs,
|
1999-07-16 10:45:46 +08:00
|
|
|
LDAPControl **ctrls,
|
1999-03-22 15:14:54 +08:00
|
|
|
int nentries
|
|
|
|
)
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
send_search_entry(
|
|
|
|
Backend *be,
|
|
|
|
Connection *conn,
|
|
|
|
Operation *op,
|
|
|
|
Entry *e,
|
2001-12-31 19:35:52 +08:00
|
|
|
AttributeName *attrs,
|
1999-07-08 02:51:39 +08:00
|
|
|
int attrsonly,
|
1999-07-16 10:45:46 +08:00
|
|
|
LDAPControl **ctrls
|
1999-03-22 15:14:54 +08:00
|
|
|
)
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
return -1;
|
|
|
|
}
|
1999-07-16 10:45:46 +08:00
|
|
|
|
|
|
|
int send_search_reference(
|
|
|
|
Backend *be,
|
|
|
|
Connection *conn,
|
|
|
|
Operation *op,
|
|
|
|
Entry *e,
|
2002-01-14 09:43:17 +08:00
|
|
|
BerVarray refs,
|
1999-07-16 10:45:46 +08:00
|
|
|
LDAPControl **ctrls,
|
2002-01-14 09:43:17 +08:00
|
|
|
BerVarray *v2refs
|
1999-07-16 10:45:46 +08:00
|
|
|
)
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2000-07-14 06:54:38 +08:00
|
|
|
int slap_sasl_init(void)
|
|
|
|
{
|
2000-07-14 07:43:24 +08:00
|
|
|
return LDAP_SUCCESS;
|
1999-08-04 07:23:05 +08:00
|
|
|
}
|
|
|
|
|
2000-07-14 06:54:38 +08:00
|
|
|
int slap_sasl_destroy(void)
|
|
|
|
{
|
2000-07-14 07:43:24 +08:00
|
|
|
return LDAP_SUCCESS;
|
1999-08-04 07:23:05 +08:00
|
|
|
}
|
2000-01-02 09:21:25 +08:00
|
|
|
|
2000-07-14 06:54:38 +08:00
|
|
|
char * slap_sasl_secprops( const char *in )
|
2000-01-02 09:21:25 +08:00
|
|
|
{
|
2001-05-03 03:41:27 +08:00
|
|
|
return NULL;
|
2000-01-02 09:21:25 +08:00
|
|
|
}
|
2000-07-14 06:54:38 +08:00
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-09-09 06:59:01 +08:00
|
|
|
void connection2anonymous( Connection *c )
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
2000-09-22 01:32:54 +08:00
|
|
|
|
2001-07-15 01:34:24 +08:00
|
|
|
Connection * connection_first( ber_socket_t *b )
|
|
|
|
{
|
|
|
|
assert(0);
|
2001-07-22 07:13:04 +08:00
|
|
|
return NULL;
|
2001-07-15 01:34:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
Connection * connection_next( Connection *c, ber_socket_t *b )
|
|
|
|
{
|
|
|
|
assert(0);
|
2001-07-22 07:13:04 +08:00
|
|
|
return NULL;
|
2001-07-15 01:34:24 +08:00
|
|
|
}
|
|
|
|
|
2001-12-23 03:14:10 +08:00
|
|
|
unsigned long connections_nextid(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2001-07-15 01:34:24 +08:00
|
|
|
void connection_done( Connection *c )
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
const char * connection_state2str( int state )
|
|
|
|
{
|
|
|
|
assert(0);
|
2001-07-22 07:13:04 +08:00
|
|
|
return NULL;
|
2001-07-15 01:34:24 +08:00
|
|
|
}
|
|
|
|
|
2001-12-26 02:20:35 +08:00
|
|
|
void replog( Backend *be, Operation *op,
|
|
|
|
struct berval *dn, struct berval *ndn, void *change)
|
2001-07-14 09:26:02 +08:00
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
2001-07-15 01:48:12 +08:00
|
|
|
void slap_mods_free( Modifications *ml )
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
2001-07-21 22:15:23 +08:00
|
|
|
int add_replica_info( Backend *be, const char *host )
|
|
|
|
{
|
2001-07-22 07:13:04 +08:00
|
|
|
return 0;
|
2001-07-21 22:15:23 +08:00
|
|
|
}
|
2001-07-28 19:24:22 +08:00
|
|
|
|
2001-10-25 23:15:34 +08:00
|
|
|
int add_replica_suffix( Backend *be, int nr, const char *suffix )
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2001-07-28 19:24:22 +08:00
|
|
|
int parse_limits( Backend *be, const char *fname, int lineno, int argc, char **argv )
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2001-08-01 18:09:04 +08:00
|
|
|
int parse_limit( const char *arg, struct slap_limits_set *limit )
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2001-12-26 23:28:01 +08:00
|
|
|
int get_limits( Backend *be, struct berval *ndn, struct slap_limits_set **limit )
|
2001-07-28 19:24:22 +08:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2001-10-24 07:29:41 +08:00
|
|
|
int read_root_dse_file ( const char *file )
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2001-12-22 22:24:13 +08:00
|
|
|
|
|
|
|
Attribute *
|
|
|
|
slap_operational_subschemaSubentry( void )
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
Attribute *
|
|
|
|
slap_operational_hasSubordinate( int hs )
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2002-01-11 19:43:35 +08:00
|
|
|
Listener **
|
|
|
|
slapd_get_listeners(void)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|