Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
smbclient -M from samba3 PDC fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Mon Jan 03, 2005 2:07 pm    Post subject: smbclient -M from samba3 PDC fails Reply with quote

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 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Mon Jan 03, 2005 4:56 pm    Post subject: [SOLVED] Reply with quote

:oops:
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 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum