smb.conf should include dhcp.conf by default

Bug #147276 reported by Oliver Regenfelder
4
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Software setup:
I have Kubuntu 7.04 installed as guest in VMWare 1.03 (Windows XP Host). The installation is fresh only including
updates proposed by the update manager but no extra software.

Bug:
We have a WINS Server which is announced by our DHCP-Server. Kubuntu now correctly makes a
/etc/samba/dhcp.conf file including the correct wins server entry. But his file is NOT included in the
default /etc/samba/smb.conf file which came with the Kubuntu installation. I haven't yet changed any
samba settings so it must be the default file. Hence browsing the shares accross subnet boundaries
doesn't work.

Supposed Bugfix:
I think the dhcp.conf file should be included by default. So that announced wins server work
automatically and no user intervention is needed.

Revision history for this message
Ralph Janke (txwikinger) wrote :

Thanks for the report

I can confirm the described behaviour in gutsy.

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 147276] Re: smb.conf doesn't include dhcp.conf by default

There is already a debconf question that asks if dhcp configuration
should be included. However its priority is medium and thus it is not seen
during a default installation.

 status triaged
 importance medium

Changed in samba:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Oleksij Rempel (olerem) wrote : Re: smb.conf doesn't include dhcp.conf by default

Hmm... how this issue should be fixed?
- debconf can't and should not ask user in desktop install. This mean or debconf should know, we making desktop install and not server install. or we need an other package which depend for example on ubuntu-desktop.deb and can configure samba to use dhcp.

- in first example, we need one more entry in /etc/lsb-release like "DISTRIB_CONFIG="Ubuntu Desktop"". and one script in debconf check it.

- in a second, we need package which will parse smb.conf and correctly add it correct place and not brake in changed .conf. or wee need to make smb.conf from beginning modular. for example:
-----------------------------------------------------------------------------------------
smb.conf:
.......
include = /etc/samba/extras.conf
......

extras.conf:
......
include = /etc/samba/dhcp.conf

this file will be empty after normal install and after installing samba-use-dhcp.deb will include dhcp.conf
-----------------------------------------------------------------------------------------
But this is too match tricky, to install one more conf to include other conf.

Any other suggestions... it will be nice to fix it for hardy.

Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

I don't find useful to add another package " samba-use-dhcp.deb", it's the same for the user to add that line by hand, IMHO if a user don't know there is a samba-use-dhcp.deb package, will add the line by hand and report the bug, it's too tricky.

Thierry Carrez (ttx)
Changed in samba (Ubuntu):
importance: Medium → Wishlist
summary: - smb.conf doesn't include dhcp.conf by default
+ smb.conf should include dhcp.conf by default
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.