1999-09-08 15:06:24 -04:00
|
|
|
/* $OpenLDAP$ */
|
1999-08-04 19:59:13 -04:00
|
|
|
/*
|
2003-01-03 15:20:47 -05:00
|
|
|
* Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
|
1999-08-04 19:59:13 -04:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
1999-03-22 02:14:54 -05:00
|
|
|
/*
|
|
|
|
|
* Mimic unused interfaces of slapd...
|
|
|
|
|
* needed for linking.
|
|
|
|
|
*/
|
|
|
|
|
#include "portable.h"
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
#include "../slap.h"
|
|
|
|
|
|
2003-05-06 22:06:01 -04:00
|
|
|
#ifdef LDAP_SYNCREPL
|
|
|
|
|
#include "ldap_rq.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
2002-01-29 07:15:13 -05:00
|
|
|
/* needed by WIN32 and back-monitor */
|
1999-04-14 10:12:49 -04:00
|
|
|
time_t starttime;
|
|
|
|
|
|
2001-07-14 13:34:24 -04:00
|
|
|
/* because Versionstr is used in back-monitor */
|
|
|
|
|
const char Versionstr[] = "";
|
|
|
|
|
|
1999-03-22 02:38:27 -05:00
|
|
|
/* bogus ../results.c */
|
|
|
|
|
int str2result(
|
|
|
|
|
char* s,
|
2003-03-30 04:03:54 -05:00
|
|
|
int *code,
|
1999-03-22 02:38:27 -05:00
|
|
|
char **matched,
|
|
|
|
|
char **info )
|
|
|
|
|
{
|
|
|
|
|
assert(0);
|
1999-04-14 10:12:49 -04:00
|
|
|
return 0;
|
1999-03-22 02:38:27 -05:00
|
|
|
}
|
|
|
|
|
|
1999-07-15 22:45:46 -04:00
|
|
|
void
|
2003-03-30 04:03:54 -05:00
|
|
|
send_ldap_disconnect( Operation *op, SlapReply *rs )
|
1999-07-15 22:45:46 -04:00
|
|
|
{
|
|
|
|
|
assert(0);
|
|
|
|
|
}
|
|
|
|
|
|
1999-11-29 12:44:14 -05:00
|
|
|
void
|
2002-12-07 12:19:29 -05:00
|
|
|
slap_send_ldap_extended(
|
2003-03-30 04:03:54 -05:00
|
|
|
Operation *op, SlapReply *rs
|
1999-11-29 12:44:14 -05:00
|
|
|
)
|
|
|
|
|
{
|
|
|
|
|
assert(0);
|
|
|
|
|
}
|
|
|
|
|
|
2003-02-03 12:28:19 -05:00
|
|
|
void
|
|
|
|
|
slap_send_ldap_intermediate_resp(
|
2003-03-30 04:03:54 -05:00
|
|
|
Operation *op, SlapReply *rs
|
2003-02-03 12:28:19 -05:00
|
|
|
)
|
|
|
|
|
{
|
|
|
|
|
assert(0);
|
|
|
|
|
}
|
|
|
|
|
|
1999-11-29 12:44:14 -05:00
|
|
|
void
|
2003-03-30 04:03:54 -05:00
|
|
|
send_ldap_sasl( Operation *op, SlapReply *rs )
|
1999-11-29 12:44:14 -05:00
|
|
|
{
|
|
|
|
|
assert(0);
|
|
|
|
|
}
|
|
|
|
|
|
1999-03-22 02:14:54 -05:00
|
|
|
void
|
2003-03-30 04:03:54 -05:00
|
|
|
slap_send_ldap_result( Operation *op, SlapReply *rs )
|
1999-03-22 02:14:54 -05:00
|
|
|
{
|
|
|
|
|
assert(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
2003-03-30 04:03:54 -05:00
|
|
|
slap_send_search_entry( Operation *op, SlapReply *rs )
|
1999-03-22 02:14:54 -05:00
|
|
|
{
|
|
|
|
|
assert(0);
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
1999-07-15 22:45:46 -04:00
|
|
|
|
2002-12-07 12:19:29 -05:00
|
|
|
int
|
2003-03-30 04:03:54 -05:00
|
|
|
slap_send_search_reference( Operation *op, SlapReply *rs )
|
1999-07-15 22:45:46 -04:00
|
|
|
{
|
|
|
|
|
assert(0);
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
2000-07-13 18:54:38 -04:00
|
|
|
int slap_sasl_init(void)
|
|
|
|
|
{
|
2000-07-13 19:43:24 -04:00
|
|
|
return LDAP_SUCCESS;
|
1999-08-03 19:23:05 -04:00
|
|
|
}
|
|
|
|
|
|
2000-07-13 18:54:38 -04:00
|
|
|
int slap_sasl_destroy(void)
|
|
|
|
|
{
|
2000-07-13 19:43:24 -04:00
|
|
|
return LDAP_SUCCESS;
|
1999-08-03 19:23:05 -04:00
|
|
|
}
|
2000-01-01 20:21:25 -05:00
|
|
|
|
2003-03-30 04:03:54 -05:00
|
|
|
int slap_sasl_setpass( Operation *op, SlapReply *rs )
|
2002-06-11 20:13:29 -04:00
|
|
|
{
|
|
|
|
|
return LDAP_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
|
2002-06-14 04:10:14 -04:00
|
|
|
int slap_sasl_config(
|
|
|
|
|
int cargc,
|
|
|
|
|
char **cargv,
|
|
|
|
|
char *line,
|
|
|
|
|
const char *fname,
|
|
|
|
|
int lineno )
|
2000-01-01 20:21:25 -05:00
|
|
|
{
|
2002-06-14 04:10:14 -04:00
|
|
|
return LDAP_SUCCESS;
|
2000-09-21 13:32:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2000-09-08 18:59:01 -04:00
|
|
|
void connection2anonymous( Connection *c )
|
|
|
|
|
{
|
|
|
|
|
assert(0);
|
|
|
|
|
}
|
2000-09-21 13:32:54 -04:00
|
|
|
|
2001-07-14 13:34:24 -04:00
|
|
|
Connection * connection_first( ber_socket_t *b )
|
|
|
|
|
{
|
|
|
|
|
assert(0);
|
2001-07-21 19:13:04 -04:00
|
|
|
return NULL;
|
2001-07-14 13:34:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Connection * connection_next( Connection *c, ber_socket_t *b )
|
|
|
|
|
{
|
|
|
|
|
assert(0);
|
2001-07-21 19:13:04 -04:00
|
|
|
return NULL;
|
2001-07-14 13:34:24 -04:00
|
|
|
}
|
|
|
|
|
|
2001-12-22 14:14:10 -05:00
|
|
|
unsigned long connections_nextid(void)
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2001-07-14 13:34:24 -04:00
|
|
|
void connection_done( Connection *c )
|
|
|
|
|
{
|
|
|
|
|
assert(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * connection_state2str( int state )
|
|
|
|
|
{
|
|
|
|
|
assert(0);
|
2001-07-21 19:13:04 -04:00
|
|
|
return NULL;
|
2001-07-14 13:34:24 -04:00
|
|
|
}
|
|
|
|
|
|
2003-03-30 04:03:54 -05:00
|
|
|
void replog( Operation *op )
|
2001-07-13 21:26:02 -04:00
|
|
|
{
|
|
|
|
|
assert(0);
|
|
|
|
|
}
|
|
|
|
|
|
2001-07-21 10:15:23 -04:00
|
|
|
int add_replica_info( Backend *be, const char *host )
|
|
|
|
|
{
|
2001-07-21 19:13:04 -04:00
|
|
|
return 0;
|
2001-07-21 10:15:23 -04:00
|
|
|
}
|
2001-07-28 07:24:22 -04:00
|
|
|
|
2001-10-25 11:15:34 -04:00
|
|
|
int add_replica_suffix( Backend *be, int nr, const char *suffix )
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2002-03-30 03:52:20 -05:00
|
|
|
int add_replica_attrs( Backend *be, int nr, char *attrs, int exclude )
|
2002-02-08 01:44:33 -05:00
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2001-07-28 07:24:22 -04:00
|
|
|
int parse_limits( Backend *be, const char *fname, int lineno, int argc, char **argv )
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2001-08-01 06:09:04 -04:00
|
|
|
int parse_limit( const char *arg, struct slap_limits_set *limit )
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2001-12-26 10:28:01 -05:00
|
|
|
int get_limits( Backend *be, struct berval *ndn, struct slap_limits_set **limit )
|
2001-07-28 07:24:22 -04:00
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2001-10-23 19:29:41 -04:00
|
|
|
int read_root_dse_file ( const char *file )
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2001-12-22 09:24:13 -05:00
|
|
|
|
|
|
|
|
Attribute *
|
2002-08-09 23:10:52 -04:00
|
|
|
slap_operational_subschemaSubentry( Backend *be )
|
2001-12-22 09:24:13 -05:00
|
|
|
{
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Attribute *
|
|
|
|
|
slap_operational_hasSubordinate( int hs )
|
|
|
|
|
{
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
2002-01-11 06:43:35 -05:00
|
|
|
Listener **
|
|
|
|
|
slapd_get_listeners(void)
|
|
|
|
|
{
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
2002-08-16 12:35:16 -04:00
|
|
|
int
|
|
|
|
|
slap_modrdn2mods(
|
2003-03-30 04:03:54 -05:00
|
|
|
Operation *op, SlapReply *rs,
|
2002-08-16 12:35:16 -04:00
|
|
|
Entry *e,
|
2003-04-10 21:29:28 -04:00
|
|
|
LDAPRDN oldrdn,
|
|
|
|
|
LDAPRDN newrdn,
|
2002-08-16 12:35:16 -04:00
|
|
|
Modifications **pmod )
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2002-12-07 12:19:29 -05:00
|
|
|
int
|
|
|
|
|
slap_mods2entry(
|
|
|
|
|
Modifications *mods,
|
|
|
|
|
Entry **e,
|
|
|
|
|
int repl_user,
|
|
|
|
|
const char **text,
|
|
|
|
|
char *textbuf, size_t textlen )
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2003-04-10 21:29:28 -04:00
|
|
|
int slap_sasl_getdn( Connection *conn, Operation *op, char *id, int len,
|
2002-12-03 01:11:32 -05:00
|
|
|
char *user_realm, struct berval *dn, int flags )
|
|
|
|
|
{
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int slap_sasl_authorized( Connection *conn,
|
|
|
|
|
struct berval *authcDN, struct berval *authzDN )
|
|
|
|
|
{
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
2003-04-07 04:53:45 -04:00
|
|
|
int slap_mods_check( Modifications *ml, int update, const char **text,
|
2003-04-10 21:53:31 -04:00
|
|
|
char *textbuf, size_t textlen, void *ctx )
|
2003-04-07 04:53:45 -04:00
|
|
|
{
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int slap_mods_opattrs( Operation *op, Modifications *mods,
|
|
|
|
|
Modifications **modtail, const char **text,
|
|
|
|
|
char *textbuf, size_t textlen )
|
|
|
|
|
{
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int root_dse_info( Connection *conn, Entry **entry, const char **text )
|
|
|
|
|
{
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
2003-04-21 10:08:13 -04:00
|
|
|
#ifdef LDAP_SYNCREPL
|
2003-05-06 22:06:01 -04:00
|
|
|
struct runqueue_s syncrepl_rq;
|
|
|
|
|
|
2003-04-21 10:08:13 -04:00
|
|
|
void init_syncrepl( )
|
|
|
|
|
{
|
2003-05-07 18:29:26 -04:00
|
|
|
return;
|
2003-04-21 10:08:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void* do_syncrepl( void *ctx, void *arg )
|
|
|
|
|
{
|
2003-05-07 18:29:26 -04:00
|
|
|
return NULL;
|
2003-04-21 10:08:13 -04:00
|
|
|
}
|
|
|
|
|
#endif
|