Bug 53773

Summary: Add warning if trying to remove DHCP-server object
Product: UCS Reporter: Daniel Duchon <duchon>
Component: LDAPAssignee: UCS maintainers <ucs-maintainers>
Status: NEW --- QA Contact: UCS maintainers <ucs-maintainers>
Severity: normal    
Priority: P5 CC: best, hahn
Version: UCS 4.4   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
What kind of report is it?: Feature Request What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?: Yes
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: 2021090621000153 Bug group (optional):
Max CVSS v3 score:

Description Daniel Duchon univentionstaff 2021-09-13 09:22:29 CEST
If you try to remove a DHCP-Server-Object under cn=dhcp,$(ucr get ldap/base), there should be a warning, that the DHCP-Server afterwards may not be working anymore.
Comment 1 Florian Best univentionstaff 2021-09-13 10:26:44 CEST
Can you give more details?
Which object did you delete and which error message is the DHCP server then throwing when trying to start it again?
Comment 2 Philipp Hahn univentionstaff 2021-09-13 10:52:22 CEST
Under `dhcp/service` there is one `dhcp/server` entry, which ist used by `isc-dhcpd-ldap` to find its configuration. If you delete this, `dhcpd` will no longer start and throw errors.

There are other objects to, which you should not delete. Deleting is always dangerous if you do not understand the underlying concepts.