Hi, I've been a Samba user/admin for about a decade with relative success, but now I'm stumped. I'm hoping someone might be a solution to this, or at least a solid answer. I'm looking to send out winpopup messages to our XP clients when one of our Samba fileshare servers needs to be rebooted. So I'm trying to sending the messages from a Linux/Samba server, which is not a member of a domain. Clients are pre-SP2 XP Pro boxes, and are domain (actually, active directory) members. Using NET SEND from one XP client to another, I can send winpopup messages all day long and drive everyone nuts.. Using "smbclient -M <client IP> -I <server hostname>", I get the ERRmsgoff error. Since I know the messenger service is running and this appears not to be a firewall problem, what am I left with? Server not member of domain? Is that the prime suspect? Couldn't find any clues about that anywhere. (Well... ok, I didn't check the source code yet....) If it's some kind of authentication-based problem, I see that there's a -U option to provide a username in -M mode, but no apparent option to provide a password. We have used such tricks in the past to print to an XP domain client's shared printer. Is there a similar way to authenticate for sending winpopups? Am I even barking up the right tree? If it helps, here's the response portion of the debug output: ... Sent session request got smb length of 0 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 write_socket(3,62) write_socket(3,62) wrote 62 got smb length of 35 size=35 smb_com=0xd5 smb_rcls=2 smb_reh=0 smb_err=82 smb_flg=136 smb_flg2=32769 smb_tid=65535 smb_pid=6188 smb_uid=0 smb_mid=2 smt_wct=0 smb_bcc=0 lang_tdb_init: /usr/lib/samba/en_US.UTF-8.msg: No such file or directory message start: ERRSRV - ERRmsgoff (Not receiving messages.) Is there enough info there to determine a specific cause? Any clues greatly appreciated!! Thanks, Charlie -- Charlie Wilkinson SysAdmin, Programmer, etc... Interactive Customer Contact Environment (ICCE) Formerly: Telephone Routing & Interactive Systems (TRIS) Phone: 202-283-3241 Phax: 202-283-5106 Charlie.E.Wilkinson@irs.gov <mailto:Charlie.E.Wilkinson@irs.gov> Modest people are #1!
On Fri, Apr 14, 2006 at 12:08:26PM -0400, Wilkinson Charlie E wrote:> Hi, > I've been a Samba user/admin for about a decade with relative success, > but now I'm stumped. I'm hoping someone might be a solution to this, or > at least a solid answer. > > If it helps, here's the response portion of the debug output:Nope, we need a full debug level 10 from smbclient and an ethereal trace would help. Jeremy.
Ok, well Jeremy... Apologies are in order. Turns out I screwed up. I'm sorry. I got my args mixed up and I was using -I specifying my own server hostname. So it seems I was talking to myself. DOH!! It was your request for an ethereal trace that resulted in that discovery. "Why aren't there any packets?" The good news -- If I just use -M and the netbios name, I can get popups on my XP workstation. However, if I use -M and an IP address, I get "session request failed." Problem is, I don't have the netbios name for all the clients I'm trying to connect to. Backing up a little.... I'm trying to get an smb-wall script to work. Again. I had written one myself years ago that I'm trying to get working again, and there's also the smb-wall.pl script that ships with Samba. They both use smbstatus/smbclient and function about the same. Or rather, they break about the same. Apparently an older form of smbstatus listed both the netbios name and IP address of connected clients. Now I instead have a single column with a mix of netbios names and IP addresses. Neither my script nor apparently the Samba smb-wall.pl script have been updated to deal with this. It appears I really need the netbios name to feed to smbclient, and possibly both the netbios name and IP address for non-local clients, right? So now I'm frantically RTFMing on how I might be able to do WINS lookups, get the desired format from smbstatus, or otherwise get the netbios name, or convince smbclient it doesn't need the name. Any further pointers that might help me along would be greatly appreciated. -cw- -----Original Message----- From: Jeremy Allison [mailto:jra@samba.org] Sent: Friday, April 14, 2006 1:13 PM To: Wilkinson Charlie E Cc: samba@lists.samba.org Subject: Re: [Samba] smbclient -M --> ERRmsgoff? On Fri, Apr 14, 2006 at 12:08:26PM -0400, Wilkinson Charlie E wrote:> Hi, > I've been a Samba user/admin for about a decade with relative success, > but now I'm stumped. I'm hoping someone might be a solution to this,or> at least a solid answer. > > If it helps, here's the response portion of the debug output:Nope, we need a full debug level 10 from smbclient and an ethereal trace would help. Jeremy.