Univention Bugzilla – Bug 55035
Template dhcp.conf using @%@hostname@%@ for ldap-dhcp-server-cn breaks isc-dhcp-server.service
Last modified: 2022-08-29 18:31:06 CEST
On upgrading the Domain Master --> Primary, 4-4.9 --> 5.0, the dhcp service failed to launch. A temporary vim edit of /etc/dhcp/dhcpd.conf: ldap-server "ucs-9412.grrr.com"; #ldap-dhcp-server-cn "ucs-9412"; ldap-dhcp-server-cn "ucs-9412.grrr.com"; ldap-username "cn=ucs-9412,cn=dc,cn=computers,dc=grrr,dc=com"; ldap-password-file "/etc/machine.secret"; ldap-port 7389; ldap-base-dn "cn=dhcp,dc=grrr,dc=com"; ldap-method dynamic; enable the service to start successfully. It appears, in this case, that the FQDN is required in order to satisfy a dependency. I've modified the template file in the interim.
Can you provide the error messages of the service start failure?
Just the generic output - not terribly helpful: Jul 25 06:39:12 ucs-9412 dhcpd[1761]: Configuration file errors encountered – exiting Jul 25 06:39:12 ucs-9412 dhcpd[1761]: Jul 25 06:39:12 ucs-9412 systemd[1]: isc-dhcp-server.service: Control process exited, code=exited, status=1/FAILURE Jul 25 06:39:12 ucs-9412 dhcpd[1761]: If you think you have received this message due to a bug rather Jul 25 06:39:12 ucs-9412 systemd[1]: isc-dhcp-server.service: Failed with result ‘exit-code’. Jul 25 06:39:12 ucs-9412 dhcpd[1761]: than a configuration issue please read the section on submitting Jul 25 06:39:12 ucs-9412 systemd[1]: Failed to start ISC DHCP Server for IPv4. Jul 25 06:39:12 ucs-9412 dhcpd[1761]: bugs on either our web page at www.isc.org or in the README file Jul 25 06:39:12 ucs-9412 dhcpd[1761]: before submitting a bug. These pages explain the proper Jul 25 06:39:12 ucs-9412 dhcpd[1761]: process and the information we find helpful for debugging. Jul 25 06:39:12 ucs-9412 dhcpd[1761]: Jul 25 06:39:12 ucs-9412 dhcpd[1761]: exiting. I took an educated guess that it needed the FQDN versus hostname in the conf file.