]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/tools/mimic.c
Implement slapcat -s <dn>: Only dump a subtree of the database.
[openldap] / servers / slapd / tools / mimic.c
index baba886817de09cd9297e2d3a61ef744c8436178..c9aec23833024100d61cd128dbf49d72de2d029e 100644 (file)
@@ -22,7 +22,7 @@ const char Versionstr[] = "";
 /* bogus ../results.c */
 int str2result(
        char* s,
-       int *code, 
+       int *code,
        char **matched,
        char **info )
 {
@@ -31,27 +31,14 @@ int str2result(
 }
 
 void
-send_ldap_disconnect(
-    Connection *conn,
-    Operation  *op,
-    ber_int_t  err,
-    const char *text
-)
+send_ldap_disconnect( Operation        *op, SlapReply *rs )
 {
        assert(0);
 }
 
 void
 slap_send_ldap_extended(
-    Connection *conn,
-    Operation  *op,
-    ber_int_t  err,
-    const char *matched,
-    const char *text,
-       BerVarray refs,
-    const char *rspoid,
-       struct berval *rspdata,
-       LDAPControl **ctrls
+    Operation  *op, SlapReply *rs
 )
 {
        assert(0);
@@ -59,89 +46,33 @@ slap_send_ldap_extended(
 
 void
 slap_send_ldap_intermediate_resp(
-       Connection  *conn,
-       Operation   *op,
-       ber_int_t   err,
-       const char  *matched,
-       const char  *text,
-       BerVarray refs,
-       const char  *rspoid,
-       struct berval *rspdata,
-       LDAPControl **ctrls
-)
-{
-       assert(0);
-}
-
-void
-send_ldap_sasl(
-    Connection *conn,
-    Operation  *op,
-    ber_int_t  err,
-    const char *matched,
-    const char *text,
-       BerVarray refs,
-       LDAPControl **ctrls,
-       struct berval *cred
+       Operation *op, SlapReply *rs
 )
 {
        assert(0);
 }
 
 void
-slap_send_ldap_result(
-       Connection  *conn, 
-       Operation   *op,
-       ber_int_t     err,
-       const char    *matched,
-       const char    *text,
-       BerVarray refs,
-       LDAPControl **ctrls
-)        
+send_ldap_sasl( Operation *op, SlapReply *rs )
 {
        assert(0);
 }
 
 void
-slap_send_search_result(
-       Connection  *conn, 
-       Operation   *op,
-       ber_int_t     err,
-       const char    *matched,
-       const char    *text,
-       BerVarray refs,
-       LDAPControl **ctrls,
-       int             nentries
-)        
+slap_send_ldap_result( Operation *op, SlapReply *rs )
 {
        assert(0);
 }
 
 int
-slap_send_search_entry(
-       Backend *be,
-       Connection  *conn, 
-       Operation   *op,
-       Entry   *e,
-       AttributeName   *attrs,
-       int             attrsonly,
-       LDAPControl **ctrls
-)        
+slap_send_search_entry( Operation *op, SlapReply *rs )
 {
        assert(0);
        return -1;
 }
 
 int
-slap_send_search_reference(
-       Backend *be,
-       Connection  *conn, 
-       Operation   *op,
-       Entry   *e,
-       BerVarray       refs,
-       LDAPControl **ctrls,
-       BerVarray       *v2refs
-)
+slap_send_search_reference( Operation *op, SlapReply *rs )
 {
        assert(0);
        return -1;
@@ -157,15 +88,7 @@ int slap_sasl_destroy(void)
        return LDAP_SUCCESS;
 }
 
-int slap_sasl_setpass(
-       Connection      *conn,
-       Operation       *op,
-       struct berval   *reqoid,
-       struct berval   *reqdata,
-       char            **rspoid,
-       struct berval   **rspdata,
-       LDAPControl     *** rspctrls,
-       const char      **text )
+int slap_sasl_setpass( Operation *op, SlapReply *rs )
 {
        return LDAP_SUCCESS;
 }
@@ -214,8 +137,7 @@ const char * connection_state2str( int state )
        return NULL;
 }
 
-void replog( Backend *be, Operation *op,
-       struct berval *dn, struct berval *ndn, void *change)
+void replog( Operation *op )
 {
        assert(0);
 }
@@ -275,13 +197,10 @@ slapd_get_listeners(void)
 
 int
 slap_modrdn2mods(
-       Backend         *be,
-       Connection      *conn,
-       Operation       *op,
+       Operation       *op, SlapReply *rs,
        Entry           *e,
-       LDAPRDN         *oldrdn,
-       LDAPRDN         *newrdn,
-       int             deleteoldrdn,
+       LDAPRDN         oldrdn,
+       LDAPRDN         newrdn,
        Modifications   **pmod )
 {
        return 0;
@@ -298,7 +217,7 @@ slap_mods2entry(
        return 0;
 }
 
-int slap_sasl_getdn( Connection *conn, char *id, int len,
+int slap_sasl_getdn( Connection *conn, Operation *op, char *id, int len,
        char *user_realm, struct berval *dn, int flags )
 {
        return -1;
@@ -310,3 +229,32 @@ int slap_sasl_authorized( Connection *conn,
        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
+void init_syncrepl( )
+{
+        return -1;
+}
+
+void* do_syncrepl( void *ctx, void *arg )
+{
+                return -1;
+}
+#endif