Univention Bugzilla – Bug 43072
Fix ptr_record/cname deletion in `con2ucs()` (s4connector/s4/dns.py)
Last modified: 2017-07-26 14:39:27 CEST
Created attachment 8251 [details]
Patches to use ucs_ptr_record_delete()/ucs_cname_delete()
The function `con2ucs()` in s4connector/s4/dns.py` does not correctly delete ptr_record/cname objects, but creates them on deletion due to a copy-paste bug.
These two patches fix this issue. All s4conenctor tests are passing on a single UCS 4.4-1 errata 332.
Committed in r80908/80909 (advisory r80911).
The patch is ok, but it doesn't have any effect, because the S4-Connector is unable to identify the type of object, because the dNSRecord attribute values have been stripped during deletion:
31.01.2016 17:27:08,72 LDAP (INFO ): dns con2ucs: Ignore unkown dns object: relativedomainname=foo,zonename=ar41i1.qa,cn=dns,dc=ar41i1,dc=qa
But generally it's correct to fix this.