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

Use ldapconfig.h instead of hardcoded paths.

parent c2462059
......@@ -5,7 +5,8 @@
#include "../slap.h"
#include "../back-ldbm/back-ldbm.h"
#define DEFAULT_CONFIGFILE "/usr/local/etc/slapd.conf"
#include "ldapconfig.h"
#define MAXARGS 100
extern struct dbcache *ldbm_cache_open();
......@@ -69,7 +70,7 @@ main( int argc, char **argv )
Avlnode *avltypes = NULL;
extern char *optarg;
tailorfile = DEFAULT_CONFIGFILE;
tailorfile = SLAPD_DEFAULT_CONFIGFILE;
dbnum = -1;
while ( (i = getopt( argc, argv, "d:f:i:n:" )) != EOF ) {
switch ( i ) {
......
......@@ -5,7 +5,8 @@
#include "../slap.h"
#include "../back-ldbm/back-ldbm.h"
#define DEFAULT_CONFIGFILE "/usr/local/etc/slapd.conf"
#include "ldapconfig.h"
#define MAXARGS 100
extern struct dbcache *ldbm_cache_open();
......@@ -65,7 +66,7 @@ main( int argc, char **argv )
FILE *fp;
extern char *optarg;
tailorfile = DEFAULT_CONFIGFILE;
tailorfile = SLAPD_DEFAULT_CONFIGFILE;
dbnum = -1;
while ( (i = getopt( argc, argv, "d:f:i:n:" )) != EOF ) {
switch ( i ) {
......
......@@ -4,7 +4,8 @@
#include <sys/socket.h>
#include "../slap.h"
#define DEFAULT_CONFIGFILE "/usr/local/etc/slapd.conf"
#include "ldapconfig.h"
#define MAXARGS 100
extern void attr_index_config();
......@@ -59,7 +60,7 @@ main( int argc, char **argv )
extern char *optarg;
inputfile = NULL;
tailorfile = DEFAULT_CONFIGFILE;
tailorfile = SLAPD_DEFAULT_CONFIGFILE;
dbnum = -1;
while ( (i = getopt( argc, argv, "d:f:i:n:" )) != EOF ) {
switch ( i ) {
......
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