X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Ftools%2Fmimic.c;h=2c9cd1c364ef1e98e9f6f8b7138a31b3e72d54c3;hb=113727ba53c91ab6f1b0880c5908eca43b89ec4e;hp=acb4da9bd8f8f447c88bcb20977b0bb46a01b3e4;hpb=660617ae66c8deb863705ff64a7f3c2830b44d13;p=openldap
diff --git a/servers/slapd/tools/mimic.c b/servers/slapd/tools/mimic.c
index acb4da9bd8..2c9cd1c364 100644
--- a/servers/slapd/tools/mimic.c
+++ b/servers/slapd/tools/mimic.c
@@ -1,8 +1,24 @@
/* $OpenLDAP$ */
-/*
- * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+/* This work is part of OpenLDAP Software .
+ *
+ * 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
+ * .
+ */
+/* ACKNOWLEDGEMENTS:
+ * This work was initially developed by Kurt Zeilenga for inclusion
+ * in OpenLDAP Software.
*/
+
+
/*
* Mimic unused interfaces of slapd...
* needed for linking.
@@ -13,9 +29,7 @@
#include "../slap.h"
-#ifdef LDAP_SYNCREPL
#include "ldap_rq.h"
-#endif
/* needed by WIN32 and back-monitor */
time_t starttime;
@@ -40,6 +54,14 @@ send_ldap_disconnect( Operation *op, SlapReply *rs )
assert(0);
}
+int
+slap_null_cb(
+ Operation *op, SlapReply *rs
+)
+{
+ assert(0);
+}
+
void
slap_send_ldap_extended(
Operation *op, SlapReply *rs
@@ -82,6 +104,17 @@ slap_send_search_reference( Operation *op, SlapReply *rs )
return -1;
}
+int slap_read_controls(
+ Operation *op,
+ SlapReply *rs,
+ Entry *e,
+ const struct berval *oid,
+ LDAPControl **c )
+{
+ assert(0);
+ return -1;
+}
+
int slap_sasl_init(void)
{
return LDAP_SUCCESS;
@@ -108,6 +141,26 @@ int slap_sasl_config(
}
+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);
+}
+
void connection2anonymous( Connection *c )
{
assert(0);
@@ -210,28 +263,6 @@ slap_modrdn2mods(
return 0;
}
-int
-slap_mods2entry(
- Modifications *mods,
- Entry **e,
- int repl_user,
- int dup,
- const char **text,
- char *textbuf, size_t textlen )
-{
- return 0;
-}
-
-int
-slap_entry2mods(
- Entry *e,
- Modifications **mods,
- const char **text
-)
-{
- return 0;
-}
-
int slap_sasl_getdn( Connection *conn, Operation *op, char *id, int len,
char *user_realm, struct berval *dn, int flags )
{
@@ -244,73 +275,40 @@ int slap_sasl_authorized( Operation *op,
return -1;
}
-int slap_mods_check( Modifications *ml, int update, const char **text,
- char *textbuf, size_t textlen, void *ctx )
-{
- 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;
}
-#ifdef LDAP_SYNCREPL
-struct runqueue_s syncrepl_rq;
-
-void init_syncrepl( )
+int slap_entry2mods( Entry *e, Modifications **mods, const char **text,
+ char *textbuf, size_t textlen )
{
- return;
-}
-
-void* do_syncrepl( void *ctx, void *arg )
-{
- return NULL;
-}
-
-char** str2clist( char ***out, char *in, const char *brkstr )
-{
- return NULL;
-}
-
-void syncrepl_add_glue( syncinfo_t *si, LDAP *ld, Operation *op, Entry *e,
- Modifications *modlist, int syncstate, struct berval* syncUUID,
- struct berval* syncCookie )
-{
- return;
+ return -1;
}
-#if 0
-struct berval *commit_csn( Operation *op )
-{
- return NULL;
-}
+volatile sig_atomic_t slapd_abrupt_shutdown;
-void rewind_commit_csn( Operation *op )
+int slap_mods_check( Modifications *ml, int update, const char **text,
+ char *textbuf, size_t textlen, void *ctx )
{
- return;
+ return -1;
}
-void graduate_commit_csn( Operation *op )
+int slap_mods2entry( Modifications *mods, Entry **e, int repl_user,
+ int dup, const char **text, char *textbuf, size_t textlen )
{
- return;
+ return -1;
}
-void update_context_csn( Backend *be, struct berval *context_csn )
+int slap_mods_opattrs( Operation *op, Modifications *mods,
+ Modifications **modtail, const char **text,
+ char *textbuf, size_t textlen )
{
- return;
+ return -1;
}
-Entry *create_context_csn_entry( Backend *be, struct berval *context_csn )
+int slap_parse_user( struct berval *id, struct berval *user,
+ struct berval *realm, struct berval *mech )
{
- return NULL;
+ return -1;
}
-#endif
-#endif