diff --git a/HowtoOpenLDAP.md b/HowtoOpenLDAP.md index 525b70c0..a9fbddfd 100644 --- a/HowtoOpenLDAP.md +++ b/HowtoOpenLDAP.md @@ -422,10 +422,19 @@ ldap_modify: Inappropriate matching (18) additional info: modify/delete: foo_attribute: no equality matching rule ~~~ -Vérifiez que l'attribut concerné a bien une règle EQUALITY dansle schéma LDAP. +Vérifiez que l'attribut concerné a bien une règle EQUALITY dans le schéma LDAP. -Si ce n'est pas possible d'ajouter une règle EQUALITY dansle schéma LDAP (par exemple pour les SYNTAX binary comme jpegPhoto), n'utilisez pas ldapmodify (LDAP_MOD_REPLACE) mais plutôt suppression et recréation si besoin. +Si ce n'est pas possible d'ajouter une règle EQUALITY dansle schéma LDAP (par exemple pour les SYNTAX binary comme jpegPhoto), n'utilisez pas ldapmodify (LDAP_MOD_REPLACE) mais plutôt suppression (et recréation si besoin) : +~~~ +$ cat delete.ldif + +dn: cn=foo,dc=example,dc=com +changetype: modify +delete: jpegPhoto + +$ ldapvi --ldapmodify delete.ldif +~~~ ### no such value