View previous topic :: View next topic |
Author |
Message |
JeroenV Guru


Joined: 16 Jul 2002 Posts: 447 Location: Amsterdam / Hamburg
|
Posted: Mon Jan 03, 2005 2:07 pm Post subject: smbclient -M from samba3 PDC fails |
|
|
Hi,
I have a samba3 + LDAP PDC on a domain with winXP clients.
When I try to do a
Code: |
server root # smbclient -d 3 -U Administrator -M gt-hd-wws-002
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
params.c:pm_process() - Processing configuration file "/etc/samba/GT_shares.conf"
added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
Client started (version 3.0.9).
resolve_lmhosts: Attempting lmhosts lookup for name gt-hd-wws-002<0x3>
resolve_wins: Attempting wins lookup for name gt-hd-wws-002<0x3>
resolve_wins: using WINS server 127.0.0.1 and tag '*'
Negative name query response, rcode 0x03: The name requested does not exist.
name_resolve_bcast: Attempting broadcast lookup for name gt-hd-wws-002<0x3>
Connection to gt-hd-wws-002 failed
|
It seems the host cannot be found? However,
Code: |
server root # smbclient -d 2 -U Administrator -L gt-hd-wws-002
added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
Password:
Domain=[GT] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
Domain=[GT] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
|
works fine.
Note that the first command doesn't ask for my password.
What is wrong here?
I can even shutdown the remote host gt-hd-wws-002 using net rpc shutdown, but it's not possible to send a message
TIA _________________ Cheers
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you! |
|
Back to top |
|
 |
JeroenV Guru


Joined: 16 Jul 2002 Posts: 447 Location: Amsterdam / Hamburg
|
Posted: Mon Jan 03, 2005 4:56 pm Post subject: [SOLVED] |
|
|
I disabled the Messenger Service on all XP clients (since in general most standard service stuff seems to be useless for normal operation, but instead they open the gates to hell for you)
Enabling this service made things work.
I made this little script to send a message to all connected clients:
Code: |
#! /bin/bash
CONN_HOSTS="$(smbstatus -b 2>/dev/null | awk '{ print $5 }' | grep -v \^\$ | sort | uniq)"
for N in ${CONN_HOSTS}; do
echo "$*" | smbclient -U "Administrator" -M ${N}
done
|
_________________ Cheers
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you! |
|
Back to top |
|
 |
|