mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
consistently allow explicit add/delete of superior objectClasses (ITS#5517)
This commit is contained in:
parent
7bfac88409
commit
1bab6404f5
1 changed files with 7 additions and 1 deletions
|
|
@ -99,7 +99,13 @@ modify_add_values(
|
|||
* server (whether from LDAP or from the underlying
|
||||
* database).
|
||||
*/
|
||||
flags = SLAP_MR_EQUALITY | SLAP_MR_VALUE_OF_ASSERTION_SYNTAX;
|
||||
if ( a->a_desc == slap_schema.si_ad_objectClass ) {
|
||||
/* Needed by ITS#5517 */
|
||||
flags = SLAP_MR_EQUALITY | SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX;
|
||||
|
||||
} else {
|
||||
flags = SLAP_MR_EQUALITY | SLAP_MR_VALUE_OF_ASSERTION_SYNTAX;
|
||||
}
|
||||
if ( mod->sm_nvalues ) {
|
||||
flags |= SLAP_MR_ASSERTED_VALUE_NORMALIZED_MATCH |
|
||||
SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH;
|
||||
|
|
|
|||
Loading…
Reference in a new issue