id,summary,reporter,owner,description,type,status,milestone,component,severity,resolution,keywords,cc
2808,DHCP fails to restart when there is a space in the name,marc.champagne09@…,ejhernandez@zentyal.com,"Hello,

The DHCP fails to restart when there is a space in the name of the host.

e.g.

Zentyal >> Object >> ''Name of the Object'' >> Adding a new member

Typing this kind of info will make the DHCP server fails to restart:



Name: Marc workstation << THIS IS THE BAD ENTRY

IP address: 192.168.2.80

MAC: so:me:bo:gu:sm:ac (I'm using a real one - of course!)




Error given by the DHCP server when trying to restart it:
{{{
Failed to start dhcpd :

dhcpd self-test failed. Please fix the config file.
The error was: 
Internet Systems Consortium DHCP Server V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp3/dhcpd.conf line 125: expecting left brace.
	  	   host Marc workstation 
                             ^
Configuration file errors encountered -- exiting

Lines around 125 in /etc/dhcp3/dhcpd.conf :

           }
  	   group {
                   

	  	   host Marc workstation {
		  	  hardware ethernet so:me:bo:gu:sm:ac;
			  fixed-address 192.168.2.80;
                          

                          }
           }
}}}

Removing the space in the name fix the problem.

Best,

Marcus",defect,closed,2.0.X,dhcp,major,fixed,,
