xref: /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-dnssrv/compare.c (revision a5847cc334d9a7029f6352b847e9e8d71a0f9e0c)
1 /*	$NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $	*/
2 
3 /* compare.c - DNS SRV backend compare function */
4 /* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/compare.c,v 1.18.2.5 2010/04/13 20:23:26 kurt Exp */
5 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
6  *
7  * Copyright 2000-2010 The OpenLDAP Foundation.
8  * Portions Copyright 2000-2003 Kurt D. Zeilenga.
9  * All rights reserved.
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted only as authorized by the OpenLDAP
13  * Public License.
14  *
15  * A copy of this license is available in the file LICENSE in the
16  * top-level directory of the distribution or, alternatively, at
17  * <http://www.OpenLDAP.org/license.html>.
18  */
19 /* ACKNOWLEDGEMENTS:
20  * This work was originally developed by Kurt D. Zeilenga for inclusion
21  * in OpenLDAP Software.
22  */
23 
24 #include "portable.h"
25 
26 #include <stdio.h>
27 
28 #include <ac/string.h>
29 #include <ac/socket.h>
30 
31 #include "slap.h"
32 #include "proto-dnssrv.h"
33 
34 int
35 dnssrv_back_compare(
36 	Operation	*op,
37 	SlapReply	*rs
38 )
39 {
40 #if 0
41 	assert( get_manageDSAit( op ) );
42 #endif
43 	send_ldap_error( op, rs, LDAP_OTHER,
44 		"Operation not supported within naming context" );
45 
46 	/* not implemented */
47 	return 1;
48 }
49