#12 Verify how removal of records works with various rdata
Opened 14 years ago by mnagy. Modified 7 years ago

When removing a DNS record from LDAP, we construct it's textual data representation from the internal BIND representation. This might cause problems for some records. If a record contains multiple values and we want to delete a particular one, which contains excessive whitespace in it's LDAP representation, the delete operation might fail.

More testing and research is required.


Tomas Hozza found that this causes problem with TXT records.

Reproducer:

  • Add a TXT record via WebUI, e.g. enter "string" without quotes (!)
  • Execute nsupdate command: update delete client123.example.com IN TXT
  • Result: SERVFAIL

    LDAP error: No such attribute: while modifying(del) entry 'idnsName=client123, idnsname=example.com,cn=dns,dc=example,dc=com'

The delete operation succeeds if the initial string contains quotes ("string").

Just to mention that as a result, the record is not deleted from the database.

Metadata Update from @thozza:
- Issue assigned to mnagy
- Issue set to the milestone: The Backlog

7 years ago

Login to comment on this ticket.

Metadata