typedef struct ConfigOCs {
char *co_def;
ConfigType co_type;
- ObjectClass **co_oc;
ConfigTable *co_table;
ConfigLDAPadd *co_ldadd;
ConfigCfAdd *co_cfadd;
+ ObjectClass *co_oc;
struct berval *co_name;
} ConfigOCs;
ConfigDriver *cleanup;
} ConfigArgs;
+/* If lineno is zero, we have an actual LDAP Add request from a client.
+ * Otherwise, we're reading a config file or a config dir.
+ */
+#define CONFIG_ONLINE_ADD(ca) (!((ca)->lineno))
+
#define value_int values.v_int
#define value_long values.v_long
#define value_ber_t values.v_ber_t