enum slaptool {
SLAPADD=1, /* LDIF -> database tool */
SLAPCAT, /* database -> LDIF tool */
+ SLAPDN, /* DN check w/ syntax tool */
SLAPINDEX, /* database index tool */
- SLAPPASSWD /* password generation tool */
+ SLAPPASSWD, /* password generation tool */
+ SLAPTEST, /* slapd.conf test tool */
+ SLAPAUTH, /* test authz-regexp and authc/authz stuff */
+ SLAPLAST
};
#define SLAP_TOOL_CTXCSN_KEEP 0
int tv_dryrun;
struct berval tv_sub_ndn;
FILE *tv_ldiffp;
+ struct berval tv_authcID;
+ struct berval tv_authzID;
} tool_vars;
extern tool_vars tool_globals;
#define dryrun tool_globals.tv_dryrun
#define sub_ndn tool_globals.tv_sub_ndn
#define ldiffp tool_globals.tv_ldiffp
+#define authcID tool_globals.tv_authcID
+#define authzID tool_globals.tv_authzID
void slap_tool_init LDAP_P((
const char* name,