]> git.sur5r.net Git - openldap/blob - servers/slapd/back-dnssrv/config.c
Suck in HEAD changes since 2.1alpha
[openldap] / servers / slapd / back-dnssrv / config.c
1 /* config.c - DNS SRV backend configuration file routine */
2 /* $OpenLDAP$ */
3 /*
4  * Copyright 2000-2002 The OpenLDAP Foundation, All Rights Reserved.
5  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6  */
7
8 #include "portable.h"
9
10 #include <stdio.h>
11
12 #include <ac/string.h>
13 #include <ac/socket.h>
14
15 #include "slap.h"
16 #include "external.h"
17
18 int
19 dnssrv_back_db_config(
20     BackendDB   *be,
21     const char  *fname,
22     int         lineno,
23     int         argc,
24     char        **argv )
25 {
26         struct ldapinfo *li = (struct ldapinfo *) be->be_private;
27
28         if ( li == NULL ) {
29                 fprintf( stderr, "%s: line %d: DNSSRV backend info is null!\n",
30                     fname, lineno );
31                 return( 1 );
32         }
33
34         /* no configuration options (yet) */
35         {
36                 fprintf( stderr,
37                         "%s: line %d: unknown directive \"%s\""
38                         " in DNSSRV database definition (ignored)\n",
39                     fname, lineno, argv[0] );
40         }
41         return 0;
42 }