Bug 26258 - Absturz des DHCPd bei fehlendem Shared Subnet
Summary: Absturz des DHCPd bei fehlendem Shared Subnet
Status: RESOLVED WONTFIX
Alias: None
Product: UCS
Classification: Unclassified
Component: DHCP
Version: UCS 4.4
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UCS maintainers
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-27 13:51 CET by Andreas Büsching
Modified: 2024-06-27 12:11 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
Customer ID:
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.
Comment 3 Jan-Luca Kiok univentionstaff 2024-06-27 12:11:04 CEST
This issue has been filed against UCS 4.4.

UCS 4.4 is out of general maintenance and components may have vastly changed in later releases. Thus, this issue is now being closed.

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