mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
c775624c9f
maybe I should trim this also). Useful to check LARGE ldif files which will require TONS on indices without failing at the very last entry for a silly typo after 45 min. or more :)
42 lines
854 B
C
42 lines
854 B
C
/* $OpenLDAP$ */
|
|
/*
|
|
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
|
|
* 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;
|
|
extern int continuemode;
|
|
extern int nosubordinates;
|
|
extern int dryrun;
|
|
|
|
extern char *ldiffile;
|
|
extern FILE *ldiffp;
|
|
|
|
void slap_tool_init LDAP_P((
|
|
const char* name,
|
|
int tool,
|
|
int argc, char **argv ));
|
|
|
|
void slap_tool_destroy LDAP_P((void));
|
|
|
|
#endif /* SLAPCOMMON_H_ */
|