[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#7065) changeType: modify "replace/delete" trick causes segmentation fault in cn=config
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#7065) changeType: modify "replace/delete" trick causes segmentation fault in cn=config
- From: h.b.furuseth@usit.uio.no
- Date: Mon, 24 Oct 2011 00:02:29 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
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