[Bug 442335] New: dhcpcd-hook-samba fails
https://bugzilla.novell.com/show_bug.cgi?id=442335 Summary: dhcpcd-hook-samba fails Product: openSUSE 11.0 Version: Final Platform: i686 OS/Version: openSUSE 11.0 Status: NEW Severity: Minor Priority: P5 - None Component: Samba AssignedTo: samba-maintainers@SuSE.de ReportedBy: guenther.schwarz@physik.uni-erlangen.de QAContact: samba-maintainers@SuSE.de Found By: --- Package samba-client-3.2.3-0.1 The script /etc/sysconfig/network/scripts/dhcpcd-hook-samba fails to write the wins server entry to the file /etc/samba/dhcp.conf. As a consequence e.g. smbclient does not work: # smbclient -v //domain/name Connection to domain failed (Error NT_STATUS_BAD_NETWORK_NAME) Adding the entry by hand in /etc/samba/dhcp.conf is a workaround: wins server =eth0:192.168.164.195 peth0:192.168.164.195 But then this is not the idea behind using a dhcp server. On various other versions of OpenSuSE and SLES/D the script works correctly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 User jmcdonough@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=442335#c1 James McDonough <jmcdonough@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |samba-maintainers@SuSE.de AssignedTo|samba-maintainers@SuSE.de |anschneider@novell.com --- Comment #1 from James McDonough <jmcdonough@novell.com> 2008-11-09 14:26:42 MST --- Andreas, can you take a look at this one? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 Andreas Schneider <anschneider@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 User anschneider@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=442335#c2 Andreas Schneider <anschneider@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |guenther.schwarz@physik.uni-erlangen.de --- Comment #2 from Andreas Schneider <anschneider@novell.com> 2008-11-10 02:07:34 MST --- Are you using NetworkManager or the traditional mode? Could you please attach the leases file of the dhcp client? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 Andreas Schneider <anschneider@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Target Milestone|--- |openSUSE 11.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 User guenther.schwarz@physik.uni-erlangen.de added comment https://bugzilla.novell.com/show_bug.cgi?id=442335#c3 --- Comment #3 from Guenther Schwarz <guenther.schwarz@physik.uni-erlangen.de> 2008-11-10 04:09:04 MST --- Network configuration (IP and MAC adresses as well as host names changed for the sake of privacy): NetXtreme BCM5751 Gigabit Ethernet PCI Express ││ ││MAC : 00:30:05:48:29:dc ││ * Device Name: eth0 ││ * Started automatically at boot ││ * IP address assigned using DHCP from /var/log/boot.msg: Setting up network interfaces: lo lo IP address: 127.0.0.1/8 IP address: 127.0.0.2/8 done eth0 device: Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express (rev 11) eth0 (DHCP) . . . . . . . . <notice>pidofproc: dhcpcd 2511 <notice>killproc: kill(1908,20) <notice>killproc: kill(1914,1) <notice>killproc: kill(1908,18) <notice>killproc: kill(1908,12) IP/Netmask: '192.168.164.207' / '255.255.255.192' ('suse11') doneSetting up service network . . . . . . . . . . . . . . . done
cat /var/lib/dhcpcd/dhcpcd-eth0.info IPADDR='192.168.164.207' NETMASK='255.255.255.192' NETWORK='192.168.164.192' BROADCAST='192.168.164.255' ROUTES='' GATEWAYS='192.168.164.193' HOSTNAME='suse11' DNSDOMAIN='mycompany.de' DNSSERVERS='192.168.164.197' NTPSERVERS='192.168.164.193' NISDOMAIN='MYDOMAIN' NISSERVERS='192.168.164.206' DHCPSID='192.168.164.197' LEASEDFROM='1226302350' LEASETIME='86400' RENEWALTIME='43200' REBINDTIME='75600' INTERFACE='eth0' CLASSID='dhcpcd 3.2.3' CLIENTID='01:00:30:05:48:29:dc' DHCPCHADDR='00:30:05:48:29:dc' NETBIOSNAMESERVER='192.168.164.197'
Note that $NISSERVERS is a non-existant address in the subnet and a residue from the time we still used yellow pages. I hope this helps. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 User anschneider@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=442335#c4 Andreas Schneider <anschneider@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|guenther.schwarz@physik.uni-erlangen.de | --- Comment #4 from Andreas Schneider <anschneider@novell.com> 2008-11-10 06:07:01 MST --- I see the problem, I'm rewriting the hook atm. I will send you a file to test as soon as it has been reviewed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 User anschneider@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=442335#c5 --- Comment #5 from Andreas Schneider <anschneider@novell.com> 2008-11-10 10:33:07 MST --- Created an attachment (id=251100) --> (https://bugzilla.novell.com/attachment.cgi?id=251100) dhcpcd-hook-samba script Could you please test the attached script. Overwrite the file in /etc/sysconfig/network/scripts make sure it is executable. Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 Andreas Schneider <anschneider@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |guenther.schwarz@physik.uni-erlangen.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 User guenther.schwarz@physik.uni-erlangen.de added comment https://bugzilla.novell.com/show_bug.cgi?id=442335#c6 --- Comment #6 from Guenther Schwarz <guenther.schwarz@physik.uni-erlangen.de> 2008-11-10 10:56:11 MST ---
ls -l /etc/sysconfig/network/scripts/dhcpcd-hook-samba* -rwxr-xr-x 1 root root 6463 2008-11-10 18:51 /etc/sysconfig/network/scripts/dhcpcd-hook-samba -rwxr-xr-x 1 root root 5327 2008-11-10 18:50 /etc/sysconfig/network/scripts/dhcpcd-hook-samba.bak -rw-r--r-- 1 root root 1619 2008-08-27 13:23 /etc/sysconfig/network/scripts/dhcpcd-hook-samba-functions
smbclient -v //domain/name Connection to domain failed (Error NT_STATUS_BAD_NETWORK_NAME)
:-(
cat /etc/samba/dhcp.conf # This file is created by /etc/sysconfig/network/scripts/dhcpcd-hook-samba. # It's possible to disable dynamic changes by setting DHCLIENT_MODIFY_SMB_CONF # of /etc/sysconfig/network/dhcp to 'no'.
I suppose I do not have to restart some services after altering the script?! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 User anschneider@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=442335#c7 --- Comment #7 from Andreas Schneider <anschneider@novell.com> 2008-11-10 12:34:37 MST --- Well you have to restart the network. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 User guenther.schwarz@physik.uni-erlangen.de added comment https://bugzilla.novell.com/show_bug.cgi?id=442335#c8 Guenther Schwarz <guenther.schwarz@physik.uni-erlangen.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|guenther.schwarz@physik.uni-erlangen.de | --- Comment #8 from Guenther Schwarz <guenther.schwarz@physik.uni-erlangen.de> 2008-11-11 01:33:50 MST --- Ok, I should have guessed that.
/etc/init.d/network restart
cat /etc/samba/dhcp.conf # This file is created by /etc/sysconfig/network/scripts/dhcpcd-hook-samba. # It's possible to disable dynamic changes by setting DHCLIENT_MODIFY_SMB_CONF # of /etc/sysconfig/network/dhcp to 'no'. wins server = eth0:192.168.164.195
smbclient -v //domain/user Enter users's password: Domain=[DOMAIN] OS=[Unix] Server=[Samba 3.0.26a-0.7-1616-SUSE-SLES9] smb: \> exit
:-) Thanks a lot. I'm looking forward to the next update of samba-client. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 User anschneider@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=442335#c9 Andreas Schneider <anschneider@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #9 from Andreas Schneider <anschneider@novell.com> 2008-11-27 04:02:00 MST --- Fix committed in our tree. It will be available in our Build Service repository in the next days. Thanks for the report. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442335 User swamp@suse.com added comment https://bugzilla.novell.com/show_bug.cgi?id=442335#c10 Swamp Script User <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:sle10-sp2:21 | |530 --- Comment #10 from Swamp Script User <swamp@suse.com> 2009-02-04 16:01:12 MST --- Update released for: cifs-mount, ldapsmb, libmsrpc, libmsrpc-devel, libsmbclient, libsmbclient-devel, libsmbsharemodes, libsmbsharemodes-devel, samba, samba-client, samba-krb-printing, samba-python, samba-vscan, samba-winbind Products: SLE-DESKTOP 10-SP2 (i386, x86_64) SLE-SDK 10-SP2 (i386, ia64, ppc, s390x, x86_64) SLE-SERVER 10-SP2 (i386, ia64, ppc, s390x, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com