#! /bin/sh
# $OpenLDAP$
-# from OpenLDAP: pkg/ldap/configure.in,v 1.296 2000/05/10 16:17:39 kurt Exp
+# from OpenLDAP: pkg/ldap/configure.in,v 1.297 2000/05/10 18:07:03 kurt Exp
# Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
#
# DNSSRV backend written by Kurt Zeilenga
##########################################################################
-SRCS = init.c search.c config.c bind.c compare.c \
- modify.c add.c modrdn.c delete.c
-OBJS = init.lo search.lo config.lo bind.lo compare.lo \
- modify.lo add.lo modrdn.lo delete.lo
+SRCS = init.c search.c config.c compare.c \
+ modify.c add.c modrdn.c delete.c request.c
+OBJS = init.lo search.lo config.lo compare.lo \
+ modify.lo add.lo modrdn.lo delete.lo request.lo
LDAP_INCDIR= ../../../include
LDAP_LIBDIR= ../../../libraries
Entry *e
)
{
- return -1;
+ return dnssrv_back_request( be, conn, op, e->e_dn, e->e_ndn );
}
#include "external.h"
LDAP_BEGIN_DECL
+
+int dnssrv_result();
+
+extern int dnssrv_back_request LDAP_P((
+ BackendDB *bd,
+ Connection *conn, Operation *op,
+ const char *dn, const char *ndn ));
+
LDAP_END_DECL
#endif /* DNSSRV_BACK_H */
+++ /dev/null
-/* bind.c - DNS SRV backend bind function */
-/* $OpenLDAP$ */
-/*
- * Copyright 2000 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
- */
-
-
-#include "portable.h"
-
-#include <stdio.h>
-
-#include <ac/socket.h>
-#include <ac/string.h>
-
-#include "slap.h"
-#include "back-dnssrv.h"
-
-int
-dnssrv_back_bind(
- Backend *be,
- Connection *conn,
- Operation *op,
- char *dn,
- char *ndn,
- int method,
- char *mech,
- struct berval *cred,
- char **edn
-)
-{
- return( -1 );
-}
Ava *ava
)
{
- return -1;
+ return dnssrv_back_request( be, conn, op, dn, ndn );
}
char *ndn
)
{
- return -1;
+ return dnssrv_back_request( be, conn, op, dn, ndn );
}
bi->bi_db_close = 0;
bi->bi_db_destroy = dnssrv_back_db_destroy;
- bi->bi_op_bind = dnssrv_back_bind;
+ bi->bi_op_bind = 0;
bi->bi_op_unbind = 0;
bi->bi_op_search = dnssrv_back_search;
bi->bi_op_compare = dnssrv_back_compare;
LDAPModList *ml
)
{
- return -1;
+ return dnssrv_back_request( be, conn, op, dn, ndn );
}
char *newSuperior
)
{
- return -1;
+ return dnssrv_back_request( be, conn, op, dn, ndn );
}
--- /dev/null
+/* add.c - DNS SRV backend request handler */
+/* $OpenLDAP$ */
+/*
+ * Copyright 2000 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+
+#include "portable.h"
+
+#include <stdio.h>
+
+#include <ac/string.h>
+#include <ac/socket.h>
+
+#include "slap.h"
+#include "back-dnssrv.h"
+
+int
+dnssrv_back_request(
+ Backend *be,
+ Connection *conn,
+ Operation *op,
+ const char *dn,
+ const char *ndn )
+{
+ return -1;
+}
Backend *be,
Connection *conn,
Operation *op,
- char *base,
- char *nbase,
+ char *dn,
+ char *ndn,
int scope,
int deref,
int size,
int attrsonly
)
{
- return -1;
+ return dnssrv_back_request( be, conn, op, dn, ndn );
}