Bug#1039700: Invalid DHCP configuration for systems in LDAP
On Wed, 28 Jun 2023 13:36:04 +0200 Guido Berhoerster <guido@berhoerster.name> wrote:
> Package: debian-edu-config
> Version: 2.12.32
>
> After adding a workstation (hostname: "ws01.intern") as shown in
> https://jenkins.debian.net/userContent/debian-edu-doc/debian-edu-doc-en/debian-edu-bullseye-manual-images/gosa_systems_edit_host.png
> the following DHCPD error appears, suggesting invalid syntax:
>
> 2023-06-28T11:19:42.890913+02:00 tjener dhcpd[1368]: LDAP-HOST line 2: semicolon expected.
> 2023-06-28T11:19:42.891073+02:00 tjener dhcpd[1368]: option host-name ws01.
> 2023-06-28T11:19:42.891107+02:00 tjener dhcpd[1368]: ^
> 2023-06-28T11:19:42.891133+02:00 tjener dhcpd[1368]: uid lease 10.0.16.22 for client 00:16:3e:22:7b:5e is duplicate on intern
> 2023-06-28T11:19:42.891172+02:00 tjener dhcpd[1368]: DHCPDISCOVER from 00:16:3e:22:7b:5e via eth0
> 2023-06-28T11:19:42.891207+02:00 tjener dhcpd[1368]: DHCPOFFER on 10.0.0.2 to 00:16:3e:22:7b:5e via eth0
> 2023-06-28T11:19:42.891859+02:00 tjener dhcpd[1368]: LDAP-HOST line 2: semicolon expected.
> 2023-06-28T11:19:42.891915+02:00 tjener dhcpd[1368]: option host-name ws01.
> 2023-06-28T11:19:42.891947+02:00 tjener dhcpd[1368]: ^
> 2023-06-28T11:19:42.891982+02:00 tjener dhcpd[1368]: uid lease 10.0.16.22 for client 00:16:3e:22:7b:5e is duplicate on intern
> 2023-06-28T11:19:42.898709+02:00 tjener dhcpd[1368]: DHCPREQUEST for 10.0.0.2 (10.0.2.2) from 00:16:3e:22:7b:5e via eth0
> 2023-06-28T11:19:42.898830+02:00 tjener dhcpd[1368]: DHCPACK on 10.0.0.2 to 00:16:3e:22:7b:5e via eth0
It turns out that this is another problem caused by
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1042083
It only happens when the added hostname is fully qualified,
as incorrectly suggested in the above documentation
screenshot. We need to fix this in gosa as it is easy to
get wrong and causes all kinds of weird issues.
--
Guido Berhoerster
Reply to: