1999-09-09 03:06:24 +08:00
|
|
|
/* $OpenLDAP$ */
|
2003-11-27 00:52:33 +08:00
|
|
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
*
|
|
|
|
* Copyright 1998-2003 The OpenLDAP Foundation.
|
|
|
|
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
* Public License.
|
|
|
|
*
|
|
|
|
* A copy of this license is available in file LICENSE in the
|
|
|
|
* top-level directory of the distribution or, alternatively, at
|
|
|
|
* <http://www.OpenLDAP.org/license.html>.
|
|
|
|
*/
|
|
|
|
/* ACKNOWLEDGEMENTS:
|
|
|
|
* This work was initially developed by Kurt Zeilenga for inclusion
|
|
|
|
* in OpenLDAP Software.
|
1999-08-05 07:59:13 +08:00
|
|
|
*/
|
2003-11-27 00:52:33 +08:00
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
2003-05-07 10:06:01 +08:00
|
|
|
#include "ldap_rq.h"
|
|
|
|
|
2002-01-29 20:15:13 +08:00
|
|
|
/* needed by WIN32 and back-monitor */
|
1999-04-14 22:12:49 +08:00
|
|
|
time_t starttime;
|
|
|
|
|
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,
|
2003-03-30 17:03:54 +08:00
|
|
|
int *code,
|
1999-03-22 15:38:27 +08:00
|
|
|
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
|
2003-03-30 17:03:54 +08:00
|
|
|
send_ldap_disconnect( Operation *op, SlapReply *rs )
|
1999-07-16 10:45:46 +08:00
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
1999-11-30 01:44:14 +08:00
|
|
|
void
|
2002-12-08 01:19:29 +08:00
|
|
|
slap_send_ldap_extended(
|
2003-03-30 17:03:54 +08:00
|
|
|
Operation *op, SlapReply *rs
|
1999-11-30 01:44:14 +08:00
|
|
|
)
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
2003-02-04 01:28:19 +08:00
|
|
|
void
|
|
|
|
slap_send_ldap_intermediate_resp(
|
2003-03-30 17:03:54 +08:00
|
|
|
Operation *op, SlapReply *rs
|
2003-02-04 01:28:19 +08:00
|
|
|
)
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
1999-11-30 01:44:14 +08:00
|
|
|
void
|
2003-03-30 17:03:54 +08:00
|
|
|
send_ldap_sasl( Operation *op, SlapReply *rs )
|
1999-11-30 01:44:14 +08:00
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
1999-03-22 15:14:54 +08:00
|
|
|
void
|
2003-03-30 17:03:54 +08:00
|
|
|
slap_send_ldap_result( Operation *op, SlapReply *rs )
|
1999-03-22 15:14:54 +08:00
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2003-03-30 17:03:54 +08:00
|
|
|
slap_send_search_entry( Operation *op, SlapReply *rs )
|
1999-03-22 15:14:54 +08:00
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
return -1;
|
|
|
|
}
|
1999-07-16 10:45:46 +08:00
|
|
|
|
2002-12-08 01:19:29 +08:00
|
|
|
int
|
2003-03-30 17:03:54 +08:00
|
|
|
slap_send_search_reference( Operation *op, SlapReply *rs )
|
1999-07-16 10:45:46 +08:00
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2003-09-17 02:56:04 +08:00
|
|
|
int slap_read_controls(
|
|
|
|
Operation *op,
|
|
|
|
SlapReply *rs,
|
|
|
|
Entry *e,
|
|
|
|
const struct berval *oid,
|
|
|
|
LDAPControl **c )
|
|
|
|
{
|
|
|
|
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
|
|
|
|
2003-03-30 17:03:54 +08:00
|
|
|
int slap_sasl_setpass( Operation *op, SlapReply *rs )
|
2002-06-12 08:13:29 +08:00
|
|
|
{
|
|
|
|
return LDAP_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2002-06-14 16:10:14 +08:00
|
|
|
int slap_sasl_config(
|
|
|
|
int cargc,
|
|
|
|
char **cargv,
|
|
|
|
char *line,
|
|
|
|
const char *fname,
|
|
|
|
int lineno )
|
2000-01-02 09:21:25 +08:00
|
|
|
{
|
2002-06-14 16:10:14 +08:00
|
|
|
return LDAP_SUCCESS;
|
2000-09-22 01:32:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-10-24 20:58:13 +08:00
|
|
|
int connection_client_setup(
|
|
|
|
ber_socket_t s,
|
|
|
|
Listener *l,
|
|
|
|
ldap_pvt_thread_start_t *func,
|
|
|
|
void *arg )
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void connection_client_enable( ber_socket_t s )
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
void connection_client_stop( ber_socket_t s )
|
|
|
|
{
|
|
|
|
assert(0);
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2003-03-30 17:03:54 +08:00
|
|
|
void replog( Operation *op )
|
2001-07-14 09:26:02 +08:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2002-03-30 16:52:20 +08:00
|
|
|
int add_replica_attrs( Backend *be, int nr, char *attrs, int exclude )
|
2002-02-08 14:44:33 +08:00
|
|
|
{
|
|
|
|
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 *
|
2002-08-10 11:10:52 +08:00
|
|
|
slap_operational_subschemaSubentry( Backend *be )
|
2001-12-22 22:24:13 +08:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2002-08-17 00:35:16 +08:00
|
|
|
int
|
|
|
|
slap_modrdn2mods(
|
2003-03-30 17:03:54 +08:00
|
|
|
Operation *op, SlapReply *rs,
|
2002-08-17 00:35:16 +08:00
|
|
|
Entry *e,
|
2003-04-11 09:29:28 +08:00
|
|
|
LDAPRDN oldrdn,
|
|
|
|
LDAPRDN newrdn,
|
2002-08-17 00:35:16 +08:00
|
|
|
Modifications **pmod )
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2003-04-11 09:29:28 +08:00
|
|
|
int slap_sasl_getdn( Connection *conn, Operation *op, char *id, int len,
|
2002-12-03 14:11:32 +08:00
|
|
|
char *user_realm, struct berval *dn, int flags )
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2003-05-24 10:44:46 +08:00
|
|
|
int slap_sasl_authorized( Operation *op,
|
2002-12-03 14:11:32 +08:00
|
|
|
struct berval *authcDN, struct berval *authzDN )
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2003-04-07 16:53:45 +08:00
|
|
|
int root_dse_info( Connection *conn, Entry **entry, const char **text )
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2003-10-08 04:01:37 +08:00
|
|
|
int slap_entry2mods( Entry *e, Modifications **mods, const char **text )
|
2003-04-21 22:08:13 +08:00
|
|
|
{
|
2003-10-08 04:01:37 +08:00
|
|
|
return -1;
|
2003-04-21 22:08:13 +08:00
|
|
|
}
|
|
|
|
|
2003-10-08 04:01:37 +08:00
|
|
|
volatile sig_atomic_t slapd_abrupt_shutdown;
|
2003-05-09 14:50:44 +08:00
|
|
|
|
2003-10-08 04:01:37 +08:00
|
|
|
int slap_mods_check( Modifications *ml, int update, const char **text,
|
|
|
|
char *textbuf, size_t textlen, void *ctx )
|
2003-05-09 14:50:44 +08:00
|
|
|
{
|
2003-10-08 04:01:37 +08:00
|
|
|
return -1;
|
2003-05-09 14:50:44 +08:00
|
|
|
}
|
2003-07-09 04:07:07 +08:00
|
|
|
|
2003-10-08 04:01:37 +08:00
|
|
|
int slap_mods2entry( Modifications *mods, Entry **e, int repl_user,
|
|
|
|
int dup, const char **text, char *textbuf, size_t textlen )
|
2003-07-09 04:07:07 +08:00
|
|
|
{
|
2003-10-08 04:01:37 +08:00
|
|
|
return -1;
|
2003-07-09 04:07:07 +08:00
|
|
|
}
|
2003-09-13 05:06:29 +08:00
|
|
|
|
2003-10-08 04:01:37 +08:00
|
|
|
int slap_mods_opattrs( Operation *op, Modifications *mods,
|
|
|
|
Modifications **modtail, const char **text,
|
|
|
|
char *textbuf, size_t textlen )
|
2003-09-13 05:06:29 +08:00
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
2003-10-08 04:01:37 +08:00
|
|
|
|