Univention Bugzilla – Bug 26258
Absturz des DHCPd bei fehlendem Shared Subnet
Last modified: 2019-08-09 11:42:34 CEST
Das Problem wurde aus Bug #25387 extrahiert: 2. Wird kein "Shared Subnet" angelegt, stürzt der DHCPd ab, da dessen Konfiguration damit ungültig ist: /var/log/daemon.log Dec 9 02:52:26 backup33 dhcpd: LDAP line 11: empty shared-network decl Dec 9 02:52:26 backup33 dhcpd: } Dec 9 02:52:26 backup33 dhcpd: ^ Dec 9 02:52:26 backup33 dhcpd: LDAP: cannot parse dhcpService entry 'cn=phahn.qa,cn=dhcp,dc=phahn,dc=qa' Dec 9 02:52:26 backup33 dhcpd: Configuration file errors encountered -- exiting
Still valid?
Yes, still in UCS-4.4 univention-install univention-dhcp udm dhcp/shared create --position "$(udm dhcp/service list|sed -ne 's/^DN: //p;T;q')" --set name=bug26258 systemctl restart isc-dhcp-server.service > LDAP line 3: empty shared-network decl > } > ^ ucr set dhcpd/ldap/debug=yes # Bug #49281 cat /var/log/dhcp-ldap-startup.log > #DHCP Service > shared-network "bug26258" { > } ... This is an upstream bug in server/ldap.c:2387 ldap_generate_config_string(), where oc:dhcpSharedNetwork is parsed and emitted by ldap_parse_shared_network() even when it does not contain at least one required oc:dhcpSubnet.