Bug 47279 - Fix handling when entering FQDN as DHCP server
Fix handling when entering FQDN as DHCP server
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - DHCP
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-03 08:40 CEST by Christian Völker
Modified: 2021-05-14 16:38 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
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.023
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 Christian Völker univentionstaff 2018-07-03 08:40:54 CEST
When you add a server to a DHCP server you have to enter the hostname of the server.

If you enter the fqdn the dhcp service will fail with 

Aug  5 14:25:58 master dhcpd: Error: Cannot find LDAP entry matching (&(objectClass=dhcpServer)(cn=<short_server_name>))
Aug  5 14:25:58 master dhcpd: Configuration file errors encountered -- exiting

dhcpd looks for short hostname, while the entries are stored as hostname.dom.ain


This is verified by:

root@master:~# univention-ldapsearch -LLL "(&(objectClass=dhcpServer)(cn=$(hostname)))"


root@master:~# udm dhcp/server list

DN: cn=master.multi.ucs,cn=multi.ucs,cn=dhcp,dc=multi,dc=ucs
  server: master.multi.ucs


After removing fqdn from dhcp service and re-adding with shortname:


root@master:~# univention-ldapsearch -LLL "(&(objectClass=dhcpServer)(cn=$(hostname)))"
dn: cn=master,cn=multi.ucs,cn=dhcp,dc=multi,dc=ucs
objectClass: top
objectClass: univentionObject
objectClass: dhcpServer
dhcpServiceDN: cn=multi.ucs,cn=dhcp,dc=multi,dc=ucs
univentionObjectType: dhcp/server
cn: master


root@master:~# udm dhcp/server list

DN: cn=master,cn=multi.ucs,cn=dhcp,dc=multi,dc=ucs
  server: master
Comment 1 Ingo Steuwer univentionstaff 2021-05-14 16:38:15 CEST
This issue has been filed against UCS 4.3.

UCS 4.3 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

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