Hi! I have a problem with smbclient and the option -M. I'd like to send Winpop Messages to my Windows Clients. I have noticed that command only works with short hostnames. I have for example a win95test1.no.domain host. Name resolution is done by bind 8 on the samba box. if I do echo "Test PopupMessage" |smbclient -M win95test1 it works. (The winpopup.exe program is of course started on the Win95 box) If I try now to do echo "Test PopupMessage with full Hostname" |smbclient -M win95test1.no.domain it does not work any more. The output of samba is "session request failed" I have tried this with samba-2.0.4b and samba-2.0.5a and it did not work. Later I tried it with samba 1.9.18p10 and it surprisingly worked. Here is a part of the output of samba-2.0.4b with debug level 50: Derived broadcast address 172.16.1.255 Added interface ip=172.16.1.1 bcast=172.16.1.255 nmask=255.255.255.0 Client started (version 2.0.4b). resolve_name: Attempting lmhosts lookup for name win95test1.no.domain<0x20> resolve_name: Attempting host lookup for name win95test1.no.domain<0x20> Connecting to 172.16.1.17 at port 139 write_socket(3,76) write_socket(3,76) wrote 76 Sent session request got smb length of 1 << I have noticed that samba-1.9.18p10 writes here: 'got smb length of 0' size=1 << and here size = 0 smb_com=0x0 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=0 smb_flg2=0 smb_tid=0 smb_pid=0 smb_uid=0 smb_mid=0 smt_wct=0 smb_bcc=0 session request failed Is anybody already experienced in that problem ??? Thanks in advance! mad -- Martin Deinhofer mailto:mad@gams.at g.a.m.s. edv dienstleistungen gmbh +43 1 895 84 99-22 stiegergasse 15-17 ; 1150 Wien http://www.gams.at
Martin Deinhofer wrote:> > Hi! > > I have a problem with smbclient and the option -M. > I'd like to send Winpop Messages to my Windows Clients. > > I have noticed that command only works with short hostnames. > I have for example a win95test1.no.domain host. Name resolution is done > by > bind 8 on the samba box. > > if I do > echo "Test PopupMessage" |smbclient -M win95test1 > > it works. (The winpopup.exe program is of course started on the Win95 > box) > > If I try now to do > > echo "Test PopupMessage with full Hostname" |smbclient -M > win95test1.no.domain >There are a couple of things that could be wrong. Number 1 is not looking at the man page for smbclient. There are options in there for passing the IP address, etc, for the NetBios name you are connecting to. Number 2, your lmhosts on the samba side is not set up properly. Try setting it up, and if that doesn't work, try the options you find in the man page (I think -B <ip> is the operative one here). /etc/lmhosts has the following format: FQDN NetBios name your.machine.com your HTH, -- Matthew Vanecek Course of Study: http://www.unt.edu/bcis Visit my Website at http://people.unt.edu/~mev0003 For answers type: perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);' ***************************************************************** For 93 million miles, there is nothing between the sun and my shadow except me. I'm always getting in the way of something...