[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#7065) changeType: modify "replace/delete" trick causes segmentation fault in cn=config



Reproduced in master by trying to change olcSaslHost:
	config_modify_internal() does this with a == NULL:
	5827				a->a_flags |= SLAP_ATTR_IXADD;

jeffreyc@ucsc.edu writes:
> To guarantee the removal of an attribute when I don't know if the attribute
> exists already or not I often employ the following LDIF:
> 
> ==============
> dn: cn=config
> changeType: modify
> replace: attrToDelete
> attrToDelete: dummy
> -
> delete: attrToDelete
> ==============

You can use this instead:
  dn: cn=config
  changeType: modify
  replace: attrToDelete
  -

-- 
Hallvard