Menu

#4998 DHCP configuration "removes" quotations

1.850
closed-fixed
nobody
None
5
2017-07-22
2017-07-20
Marek
No

Hi.
The GUI DHCP Server confguration tool, removes the quotation marks for DHCP custom option in the dhcpd.conf file. After it, the DHCP service crashed down during restart.

I added the line:
option option-132-VLAN-ID code 132 = text;
option option-132-VLAN-ID "91";
to the file but, when I'have do some other changes using GUI, the Webmin saves the line as:
option option-132-VLAN-ID 91;
Without quotation marks sorrounding value 91. I have to change it manualy and since this, I can start service correctly.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2017-07-21

    Ok ... I guess this is because the VLAN-ID custom option is defined as "text" type?

     
  • Marek

    Marek - 2017-07-21

    Hi. The custom option has been definied as "text" and, as the page https://linux.die.net/man/5/dhcpd-options can help, the "text" option "...must be enclosed in double quotes" but currently usinf Webmin, doesn't.
    Thanks for any help.
    Marek

     
  • Jamie Cameron

    Jamie Cameron - 2017-07-22
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2017-07-22

    Thanks - Webmin is handling the "string" option type correctly, but not "text". I will fix this in the next release.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.