Bug 28623 - leeres LDAP-Attribut "dhcpRange" nach Entfernen einer Range
leeres LDAP-Attribut "dhcpRange" nach Entfernen einer Range
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: DHCP
UCS 3.0
Other Linux
: P5 critical with 2 votes (vote)
: UCS 3.1
Assigned To: Lukas Walter
Stefan Gohmann
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-21 11:47 CEST by Hendrik Mangels
Modified: 2012-12-12 21:09 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik Mangels univentionstaff 2012-09-21 11:47:44 CEST
Nach Entfernen einer Range bleibt ein leeres LDAP-Attribut "dhcpRange"
bestehen, was anschließend dazu führt, das ein fehlerhaftes leeres "range ;"
Statement generiert wird, was den Parser des dhcpd durcheinander bringt:

# ldapsearch -xLLLLH ldapi:/// -b cn=10.200.25.0,cn=univention.qa,cn=dhcp,dc=univention,dc=qa

dn: cn=10.200.25.0,cn=univention.qa,cn=dhcp,dc=univention,dc=qa
objectClass: top
objectClass: univentionDhcpSubnet
objectClass: univentionObject
univentionObjectType: dhcp/subnet
cn: 10.200.25.0
dhcpNetMask: 24
dhcpRange:

# tail /var/log/daemon.log
Aug 24 01:52:02 master dhcpd: LDAP line 8: expecting numeric value.
Aug 24 01:52:02 master dhcpd: range ;
Aug 24 01:52:02 master dhcpd:        ^
Aug 24 01:52:02 master dhcpd: LDAP: cannot parse dhcpService entry 'cn=univention.qa,cn=dhcp,dc=univention,dc=qa'
Aug 24 01:52:02 master dhcpd: Configuration file errors encountered -- exiting

Mit einem ldapmodify kann das leere Attribut entfernt werden, dann startet der DHCP-Server wieder korrekt:

# cat remove_dhcpRange.ldif
dn: cn=10.200.25.0,cn=univention.qa,cn=dhcp,dc=univention,dc=qa
delete: dhcpRange
-

# ldapmodify -x -D "cn=admin,dc=univention,dc=qa" -w "$(cat /etc/ldap.secret)"  -f delete_dhcpRange.ldif
Comment 1 Stefan Gohmann univentionstaff 2012-09-28 07:17:58 CEST
Siehe auch Bug #28660.
Comment 2 Lukas Walter univentionstaff 2012-11-08 10:55:53 CET
univention-directory-manager-modules (8.0.89-1) unstable; urgency=low
  * remove dhcpRange attribute from dhcpSubnet if empty (Bug #28623)

svn 37018



Der Fehler bestand in einer fehlerhaften ldap modlist. Statt einer leeren Liste handelte es sich um eine Liste die einen leeren String enthielt.

Außerdem wurde ein fehlerhaftes mapping entfernt.
Comment 3 Stefan Gohmann univentionstaff 2012-11-19 08:37:30 CET
OK: Ich kann den Fehler mit 3.1 nicht mehr reproduzieren.

OK: Changelog
Comment 4 Stefan Gohmann univentionstaff 2012-12-12 21:09:15 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".