Bug 26258 - Absturz des DHCPd bei fehlendem Shared Subnet
Absturz des DHCPd bei fehlendem Shared Subnet
Status: NEW
Product: UCS
Classification: Unclassified
Component: DHCP
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-27 13:51 CET by Andreas Büsching
Modified: 2019-08-09 11:42 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 1: Will affect a very 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.046
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Büsching univentionstaff 2012-02-27 13:51:21 CET
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
Comment 1 Florian Best univentionstaff 2017-02-09 14:02:07 CET
Still valid?
Comment 2 Philipp Hahn univentionstaff 2019-08-09 11:42:34 CEST
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.