Bug 39161 - S4-Connector doesn't remove DDNS-deleted objects in UDM
S4-Connector doesn't remove DDNS-deleted objects in UDM
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 4.0
Other Linux
: P3 normal (vote)
: ---
Assigned To: Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-12 20:51 CEST by Arvid Requate
Modified: 2019-01-03 07:17 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
gohmann: Patch_Available+


Attachments
fix_dns_object_removal.patch (5.39 KB, patch)
2015-08-12 20:51 CEST, Arvid Requate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2015-08-12 20:51:15 CEST
Created attachment 7102 [details]
fix_dns_object_removal.patch

When a DNS record is removed via DDNS (e.g. nsupdate), they don't get removed in UDM/OpenLDAP.

There are two issues that block this: The main one is, that Samba4/AD doesn't actually delete the objects in this case, but changes their type (wType) to DNS_TYPE_TOMBSTONE (See also Bug 38713).

Additionally, even if the object would be detected as removed, then some small code issues would cause a traceback. See the attached patch.

To fix the DNS_TYPE_TOMBSTONE I had to make use of the s4cache, to be able to identify the type of DNS object. The patch could be simplified by passing guid and old_s4_object from sync_to_ucs to the ucs_sync_function.
Comment 1 Stefan Gohmann univentionstaff 2019-01-03 07:17:28 CET
This issue has been filled against UCS 4.0. The maintenance with bug and security fixes for UCS 4.0 has ended on 31st of May 2016.

Customers still on UCS 4.0 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.