2000-05-10 14:17:38 -04:00
|
|
|
/* search.c - DNS SRV backend search function */
|
|
|
|
|
/* $OpenLDAP$ */
|
|
|
|
|
/*
|
2000-05-21 14:15:00 -04:00
|
|
|
* Copyright 2000 The OpenLDAP Foundation, All Rights Reserved.
|
2000-05-10 14:17:38 -04:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "portable.h"
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
#include <ac/socket.h>
|
|
|
|
|
#include <ac/string.h>
|
|
|
|
|
#include <ac/time.h>
|
|
|
|
|
|
|
|
|
|
#include "slap.h"
|
|
|
|
|
#include "back-dnssrv.h"
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
dnssrv_back_search(
|
|
|
|
|
Backend *be,
|
|
|
|
|
Connection *conn,
|
|
|
|
|
Operation *op,
|
2000-05-21 23:46:57 -04:00
|
|
|
const char *dn,
|
|
|
|
|
const char *ndn,
|
2000-05-10 14:17:38 -04:00
|
|
|
int scope,
|
|
|
|
|
int deref,
|
|
|
|
|
int size,
|
|
|
|
|
int time,
|
|
|
|
|
Filter *filter,
|
2000-05-21 23:46:57 -04:00
|
|
|
const char *filterstr,
|
2000-05-10 14:17:38 -04:00
|
|
|
char **attrs,
|
|
|
|
|
int attrsonly
|
|
|
|
|
)
|
|
|
|
|
{
|
2000-06-04 23:10:46 -04:00
|
|
|
return dnssrv_back_request( be, conn, op, dn, ndn,
|
|
|
|
|
scope, filter, attrs, attrsonly );
|
2000-05-10 14:17:38 -04:00
|
|
|
}
|