Commit dbde2604 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Additional DNS SRV framework (a work in progress)

	add common request handler
	remove bind handler (not needed)
parent 36d5d25e
#! /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.
#
......
......@@ -10,10 +10,10 @@
# 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
......
......@@ -23,5 +23,5 @@ dnssrv_back_add(
Entry *e
)
{
return -1;
return dnssrv_back_request( be, conn, op, e->e_dn, e->e_ndn );
}
......@@ -14,6 +14,14 @@
#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 */
......@@ -25,5 +25,5 @@ dnssrv_back_compare(
Ava *ava
)
{
return -1;
return dnssrv_back_request( be, conn, op, dn, ndn );
}
......@@ -25,5 +25,5 @@ dnssrv_back_delete(
char *ndn
)
{
return -1;
return dnssrv_back_request( be, conn, op, dn, ndn );
}
......@@ -45,7 +45,7 @@ dnssrv_back_initialize(
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;
......
......@@ -26,5 +26,5 @@ dnssrv_back_modify(
LDAPModList *ml
)
{
return -1;
return dnssrv_back_request( be, conn, op, dn, ndn );
}
......@@ -27,5 +27,5 @@ dnssrv_back_modrdn(
char *newSuperior
)
{
return -1;
return dnssrv_back_request( be, conn, op, dn, ndn );
}
/* bind.c - DNS SRV backend bind function */
/* 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/socket.h>
#include <ac/string.h>
#include <ac/socket.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
)
dnssrv_back_request(
Backend *be,
Connection *conn,
Operation *op,
const char *dn,
const char *ndn )
{
return( -1 );
return -1;
}
......@@ -22,8 +22,8 @@ dnssrv_back_search(
Backend *be,
Connection *conn,
Operation *op,
char *base,
char *nbase,
char *dn,
char *ndn,
int scope,
int deref,
int size,
......@@ -34,5 +34,5 @@ dnssrv_back_search(
int attrsonly
)
{
return -1;
return dnssrv_back_request( be, conn, op, dn, ndn );
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment