[Pkg-samba-maint] Bug#407408: /etc/samba/dhcp.conf only created on change of wins server, but not initially

Erik Thiele erik at thiele-hydraulik.de
Thu Jan 18 08:51:25 CET 2007


Package: samba
Version: 3.0.23d-2+b1

The file /etc/samba/dhcp.conf is included from your smb.conf file to
get the "wins server" by DHCP. This is done by the
script /etc/dhcp3/dhclient-enter-hooks.d/samba. There are three issues
with this script:

1) when i CHANGE the "netbios-name-servers" in my dhcp server and then
do a ifdown and ifup to launch dhclient, then the script creates the
samba dhcp.conf file correctly. but if i run my system for some time
and then decide to install the samba package, the dhclient script will
NOT create the dhcp.conf file, because no change in
netbios-name-servers has occured since the last run of dhclient.


2) when first creating the file /etc/samba/dhcp.conf, the script prints
the error message: 

sed: can't read /etc/samba/dhcp.conf: No such file or directory

Maybe a message like "creating dhcp.conf from scratch because it is
missing" or even no message at all would be better.


3) in case of a change in /etc/samba/dhcp.conf, the script should let
the samba server reload its configuration files, otherwise the change
is ignored by the samba server.



cya & thx for all the work
erik




More information about the Pkg-samba-maint mailing list