X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Ftools%2Fmimic.c;h=2c9cd1c364ef1e98e9f6f8b7138a31b3e72d54c3;hb=113727ba53c91ab6f1b0880c5908eca43b89ec4e;hp=51f7324c40f62adcafdc6c8d915068a039558ec6;hpb=941d1e5c72fc603fc4a729dff26d32f5f0af7207;p=openldap
diff --git a/servers/slapd/tools/mimic.c b/servers/slapd/tools/mimic.c
index 51f7324c40..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.
@@ -38,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
@@ -256,7 +280,8 @@ int root_dse_info( Connection *conn, Entry **entry, const char **text )
return -1;
}
-int slap_entry2mods( Entry *e, Modifications **mods, const char **text )
+int slap_entry2mods( Entry *e, Modifications **mods, const char **text,
+ char *textbuf, size_t textlen )
{
return -1;
}
@@ -264,21 +289,26 @@ int slap_entry2mods( Entry *e, Modifications **mods, const char **text )
volatile sig_atomic_t slapd_abrupt_shutdown;
int slap_mods_check( Modifications *ml, int update, const char **text,
- char *textbuf, size_t textlen, void *ctx )
+ char *textbuf, size_t textlen, void *ctx )
{
return -1;
}
int slap_mods2entry( Modifications *mods, Entry **e, int repl_user,
- int dup, const char **text, char *textbuf, size_t textlen )
+ int dup, const char **text, char *textbuf, size_t textlen )
{
return -1;
}
int slap_mods_opattrs( Operation *op, Modifications *mods,
- Modifications **modtail, const char **text,
- char *textbuf, size_t textlen )
+ Modifications **modtail, const char **text,
+ char *textbuf, size_t textlen )
{
return -1;
}
+int slap_parse_user( struct berval *id, struct berval *user,
+ struct berval *realm, struct berval *mech )
+{
+ return -1;
+}