[Samba] smbclient -M

2009-09-11 Thread Lucio Crusca
Hello *,

I've fileserver with Debian Lenny and Samba 3.2.5 from the distro.
I want the server to notify clients on some events with a popup.

# smbclient -M Client01
Connection to Client01 failed. Error NT_STATUS_BAD_NETWORK_NAME

but:

# smbclient -L Client01 -U myuser
Enter myuser's password: 
Domain=[MYDOMAIN] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename   Type  Comment
-     ---
IPC$IPC   IPC remoto
scansioni   Disk  
ADMIN$  Disk  Amministrazione remota
C$  Disk  Condivisione predefinita
Domain=[MYDOMAIN] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server   Comment
----
CLIENT01 
CLIENT02 
CLIENT03 
SERVER   server server

WorkgroupMaster
----
MYDOMAIN CLIENT01
WORKGROUPPC-GUEST

What am I doing wrong with -M?


-- 
Virtual Bit di Lucio Crusca
http://www.virtual-bit.com


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] smbclient -M

2009-09-14 Thread Lucio Crusca
Marcello Romani wrote:

> Hallo,
> I can confirm that if the Messenger service is not running on the
> target machine, then NT_STATUS_BAD_NETWORK_NAME error is returned by
> smbclient -M
> If the messenger service is running, echo "message" | smbclient -M
>  works instead.

Thank you very much, I'm quite surprised the messenger service is not 
running on the clients of that LAN, but I take it and check ASAP.

However the smbclient manpage is misleading, it says:
"If they are not running WinPopup the message will be lost, and no error 
message will occur".

So is this a documentation bug or a bug in smbclient code? 

Assuming a documentation bug, I think there's a bug in the code anyway, 
because NT_STATUS_BAD_NETWORK_NAME is not the most obvious error message 
smbclient could give in that case...

-- 
Virtual Bit di Lucio Crusca
http://www.virtual-bit.com


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba