From: Juan Gomez Date: Tue, 25 May 1999 22:48:06 +0000 (+0000) Subject: I do not find another better way how to fix this prob so I will use this X-Git-Tag: OPENLDAP_REL_ENG_1_2_2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=581bb2b951a1d787b82363faf172d1497e1f8373;p=thirdparty%2Fopenldap.git I do not find another better way how to fix this prob so I will use this 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. --- diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index fa683b37dd..6a1bfd67b8 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -27,6 +27,17 @@ #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