1999-09-09 03:06:24 +08:00
|
|
|
/* $OpenLDAP$ */
|
1999-08-18 03:00:59 +08:00
|
|
|
/*
|
2000-05-13 10:47:56 +08:00
|
|
|
* Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
|
1999-08-18 03:00:59 +08:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
*/
|
|
|
|
/* slapcommon.h - common definitions for the slap tools */
|
|
|
|
|
|
|
|
#ifndef SLAPCOMMON_H_
|
|
|
|
#define SLAPCOMMON_H_ 1
|
|
|
|
|
|
|
|
#define SLAPD_TOOLS 1
|
|
|
|
#include "../slap.h"
|
|
|
|
|
|
|
|
enum slaptool {
|
|
|
|
SLAPCAT=1, /* database -> LDIF tool */
|
|
|
|
SLAPADD, /* LDIF -> database tool */
|
|
|
|
SLAPINDEX, /* database index tool */
|
|
|
|
SLAPTEST /* database testing tool */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
extern char *progname;
|
|
|
|
extern char *conffile;
|
|
|
|
extern Backend *be;
|
|
|
|
extern int appendmode;
|
|
|
|
extern int verbose;
|
1999-08-18 09:45:59 +08:00
|
|
|
extern int continuemode;
|
2001-12-27 10:03:57 +08:00
|
|
|
extern int nosubordinates;
|
1999-08-18 03:00:59 +08:00
|
|
|
|
|
|
|
extern char *ldiffile;
|
|
|
|
extern FILE *ldiffp;
|
|
|
|
|
|
|
|
void slap_tool_init LDAP_P((
|
|
|
|
const char* name,
|
|
|
|
int tool,
|
|
|
|
int argc, char **argv ));
|
|
|
|
|
1999-08-20 01:20:15 +08:00
|
|
|
void slap_tool_destroy LDAP_P((void));
|
|
|
|
|
1999-08-18 03:00:59 +08:00
|
|
|
#endif /* SLAPCOMMON_H_ */
|