{"id":190,"date":"2009-02-04T01:41:14","date_gmt":"2009-02-03T23:41:14","guid":{"rendered":"http:\/\/gcolpart.evolix.net\/blog21\/?p=190"},"modified":"2009-02-04T01:41:14","modified_gmt":"2009-02-03T23:41:14","slug":"delete-facsimiletelephonenumber-attribute","status":"publish","type":"post","link":"https:\/\/gcolpart.evolix.net\/blog21\/delete-facsimiletelephonenumber-attribute\/","title":{"rendered":"Delete facsimileTelephoneNumber attribute"},"content":{"rendered":"<p><a href=\"http:\/\/www.lichteblau.com\/ldapvi\/\">ldapvi<\/a> is so wonderful. No Java\/Python\/PHP for &#8220;browsing&#8221; LDAP trees and the power of vi for LDAP administration. Nevertheless, today I had difficulty for deleting a facsimileTelephoneNumber attribute:<\/p>\n<pre>$ ldapvi\r\nAction? [yYqQvVebB*rsf+?] y\r\nldap_modify: Inappropriate matching (18)\r\nadditional info: modify\/delete: facsimileTelephoneNumber: no equality matching rule<\/pre>\n<p>Here is the LDIF change tried by ldapvi:<\/p>\n<pre>dn: uid=foo,ou=people,dc=evolix,dc=net\r\nchangetype: modify\r\ndelete: facsimileTelephoneNumber\r\nfacsimileTelephoneNumber: 0000<\/pre>\n<p>After a little search on the web, I find the reason on <a href=\"http:\/\/www.openldap.org\/lists\/openldap-bugs\/200304\/msg00008.html\">openldap-bugs list archives<\/a>:<\/p>\n<pre>Since the schema definition of facsimileTelephoneNumber has no matching rule\r\ndefined, the only modifications you can make are Replace or Delete w\/ no\r\nvalues.<\/pre>\n<p>facsimileTelephone attribute actually doesn&#8217;t have SYNTAX definition. See in core.ldif file:<\/p>\n<pre>Number olcAttributeTypes: ( 2.5.4.23 NAME ( 'facsimileTelephoneNumber' 'fax' )\r\n  DESC 'RFC2256: Facsimile (Fax) Telephone Number'\r\n  SYNTAX 1.3.6.1.4.1.1466.115.121.1.22 )<\/pre>\n<p>By default, ldapvi tries to delete a specific value (even if there is only one value) for an attribute. But according documentation, it&#8217;s impossible to delete only one of values for facsimileTelephoneNumber attribute!<\/p>\n<p>Note: for deleting all values of facsimileTelephoneNumber attribute, the LDIF change must be:<\/p>\n<pre>dn: uid=foo,ou=people,dc=evolix,dc=net\r\nchangetype: modify\r\ndelete: facsimileTelephoneNumber<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ldapvi is so wonderful. No Java\/Python\/PHP for &#8220;browsing&#8221; LDAP trees and the power of vi for LDAP administration. Nevertheless, today I had difficulty for deleting a facsimileTelephoneNumber attribute: $ ldapvi Action? [yYqQvVebB*rsf+?] y ldap_modify: Inappropriate matching (18) additional info: modify\/delete: facsimileTelephoneNumber: no equality matching rule Here is the LDIF change tried by ldapvi: dn: uid=foo,ou=people,dc=evolix,dc=net [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3],"tags":[60,77],"class_list":["post-190","post","type-post","status-publish","format-standard","hentry","category-debian","category-english","tag-ldap","tag-ldapvi"],"_links":{"self":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/posts\/190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/comments?post=190"}],"version-history":[{"count":10,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/posts\/190\/revisions"}],"predecessor-version":[{"id":200,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/posts\/190\/revisions\/200"}],"wp:attachment":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/media?parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/categories?post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/tags?post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}