dhcp.conf file created with invalid syntax
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Debian) |
Fix Released
|
Unknown
|
|||
samba (Ubuntu) |
Fix Released
|
Medium
|
Thierry Carrez |
Bug Description
Binary package hint: samba
I'm using Ubuntu 9.10 with dhcp3-client 3.1.2-1ubuntu7. We have a WINS server at 10.128.41.34, which clients are informed of via DHCP. The produced dhcp.conf file (generated by dhclient using /etc/dhcp3/
abolte@
wins server == br0:10.128.41.34
abolte@
Interestingly enough, the testparm command doesn't complain about it. The output does look wrong however. This could be another bug in itself I suppose, but is not the topic of this report.
abolte@
wins server = =, br0:10.128.41.34
abolte@
I've attached a patch which seems to fix the issue for me. Steps to use this would be (where "br0" is the interface in this case):
1. If needed, release the current lease
$ dhclient -r br0
2. Delete the dhcp.conf file
$ rm -f /etc/samba/
3. Replace /etc/dhcp3/
4. Grab a lease
$ dhclient br0
The dhcp.conf file will now be re-created correctly as follows:
abolte@
wins server = br0:10.128.41.34
abolte@
The patch was created against the latest (at time of reporting) samba-common_
The patch should also detect an invalid config and correct it if it exists - but only if we're making changes anyway. Perhaps this check should go in regardless of the WINS setup not changing from previous leases? There was a small change thrown in to fix up the dhcp.conf formatting too.
The problematic lines specifically seems to be:
other_servers==""
serverlist==""
which I believe end up assigning "=" instead of nothing.
Changed in samba (Ubuntu): | |
status: | Confirmed → Triaged |
tags: | added: bugzapping-target |
Changed in samba (Ubuntu): | |
assignee: | nobody → Thierry Carrez (ttx) |
status: | Triaged → In Progress |
Changed in samba (Debian): | |
status: | Unknown → Fix Released |
Thanks for the bug report ill look at getting this fixed for lucid.
Regards
chuck