]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
I do not find another better way how to fix this prob so I will use this
authorJuan Gomez <gomez@openldap.org>
Tue, 25 May 1999 22:48:06 +0000 (22:48 +0000)
committerJuan Gomez <gomez@openldap.org>
Tue, 25 May 1999 22:48:06 +0000 (22:48 +0000)
LDAP_MOD_SOFTADD hack and hide it in this file. A LDAP_MOD_SOFTADD is just
the same as LDAP_MOD_ADD, but it does not fail when the attribute value
being added already exist. This is needed for some special cases of ldap
modrdn.

servers/slapd/slap.h

index fa683b37dd1c5caf0123ad19b494fa33ca630c09..6a1bfd67b8a672b9a165066e5c8d41c75ff96c9e 100644 (file)
 #undef f_next /* name conflict between sys/file.h on SCO and struct filter */
 #endif
 
+/* LDAPMod.mod_op value ===> Must be kept in sync with ldap.h!
+ *
+ * This is a value used internally by the backends. It is needed to allow
+ * adding values that already exist without getting an error as required by
+ * modrdn when the new rdn was already an attribute value itself.
+ * JCG 05/1999 (gomez@engr.sgi.com)
+ */
+#define LDAP_MOD_SOFTADD       0x04    /* Just make sure value is there */
+
+
+
 #define DN_DNS 0
 #define DN_X500        1