]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/tools/slapcommon.h
honor '!' (objectClass negation) when checking attribute presence in list
[openldap] / servers / slapd / tools / slapcommon.h
index 3a1120ba98caac7a7a0669ab1c2e0be8770430b1..47a51c76f11f7e399e5958ba57a550019bea649f 100644 (file)
@@ -1,9 +1,18 @@
+/* slapcommon.h - common definitions for the slap tools */
 /* $OpenLDAP$ */
-/*
- * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 1998-2003 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
  */
-/* slapcommon.h - common definitions for the slap tools */
 
 #ifndef SLAPCOMMON_H_
 #define SLAPCOMMON_H_ 1
@@ -18,12 +27,23 @@ enum slaptool {
        SLAPTEST        /* database testing tool */
 };
 
+#define SLAP_TOOL_CTXCSN_KEEP  0
+#define SLAP_TOOL_CTXCSN_ENTRY 1
+#define SLAP_TOOL_CTXCSN_BATCH 2
 
 extern char    *progname;
 extern char    *conffile;
 extern Backend *be;
 extern int             appendmode;
 extern int             verbose;
+extern int             update_ctxcsn;
+extern int             retrieve_ctxcsn;
+extern int             retrieve_synccookie;
+extern int             replica_promotion;
+extern int             replica_demotion;
+extern char    *replica_id_string;
+extern char    **replica_id_strlist;
+extern int     *replica_id_list;
 extern int             continuemode;
 extern int             nosubordinates;
 extern int             dryrun;