Univention Bugzilla – Bug 47279
Fix handling when entering FQDN as DHCP server
Last modified: 2021-05-14 16:38:15 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
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.