Bug 55954 - "DHCP Dynamic DNS" policies: document usage of domain names
"DHCP Dynamic DNS" policies: document usage of domain names
Status: NEW
Product: UCS
Classification: Unclassified
Component: UMC - Policies
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-04-11 12:23 CEST by Dirk Ahrnke
Modified: 2023-04-11 12:23 CEST (History)
0 users

See Also:
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?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Ahrnke univentionstaff 2023-04-11 12:23:45 CEST
A "DHCP Dynamic DNS" policy can contain a "DDNS domain name" and a "DDNS reverse domain name". 
There is no further documentation about the syntax and the hover-text simply says "domain name that will be appended..."
When simply adding a domain name one will (hopefully) notice that the DHCP server refuses to start because the syntax of "ddns-domainname" and "ddns-rev-domainname" needs a quoted string which has to be defined in the policy.

valid:
root@dn-hb01:/etc/dhcp# udm policies/dhcp_dnsupdate list

DN: cn=DDNS-Bremen,cn=policies,dc=training,dc=ucs
  clientUpdates: allow
  ddnsDoForwardUpdate: true
  ddnsDomainname: "bremen.training.ucs"
  ddnsHostname: None
  ddnsRevDomainname: "bremen.training.ucs"
  ddnsUpdateStyle: ad-hoc
  ddnsUpdates: on
  ldapFilter: None
  name: DDNS-Bremen
  updateStaticLeases: None

invalid:

root@dn-hb01:/etc/dhcp# udm policies/dhcp_dnsupdate list

DN: cn=DDNS-Bremen,cn=policies,dc=training,dc=ucs
  clientUpdates: allow
  ddnsDoForwardUpdate: true
  ddnsDomainname: bremen.training.ucs
  ddnsHostname: None
  ddnsRevDomainname: bremen.training.ucs
  ddnsUpdateStyle: ad-hoc
  ddnsUpdates: on
  ldapFilter: None
  name: DDNS-Bremen
  updateStaticLeases: None

root@dn-hb01:/etc/dhcp# grep ddns /var/log/dhcp-ldap-startup.log 
ddns-domainname bremen.training.ucs;
ddns-rev-domainname bremen.training.ucs;
ddns-update-style ad-hoc;
ddns-updates on;

Apr 11 12:22:21 dn-hb01 systemd[1]: Starting ISC DHCP Server for IPv4...
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: LDAP line 12: semicolon expected.
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: ddns-domainname bremen.
Apr 11 12:22:21 dn-hb01 dhcpd[7854]:                        ^
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: LDAP line 12: expecting a parameter or declaration
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: ddns-domainname bremen.training.ucs;
Apr 11 12:22:21 dn-hb01 dhcpd[7854]:                                     ^
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: LDAP: cannot parse dhcpService entry 'cn=training.ucs,cn=dhcp,dc=training,dc=ucs'
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: Configuration file errors encountered -- exiting
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: 
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: If you think you have received this message due to a bug rather
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: than a configuration issue please read the section on submitting
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: bugs on either our web page at www.isc.org or in the README file
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: before submitting a bug.  These pages explain the proper
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: process and the information we find helpful for debugging.
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: 
Apr 11 12:22:21 dn-hb01 dhcpd[7854]: exiting.
Apr 11 12:22:21 dn-hb01 systemd[1]: isc-dhcp-server.service: Control process exited, code=exited, status=1/FAILURE
Apr 11 12:22:21 dn-hb01 systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
Apr 11 12:22:21 dn-hb01 systemd[1]: Failed to start ISC DHCP Server for IPv4.
^C