smbclient seems touched in the head

John Fox jjf at mail.wizzards.net
Fri Jun 11 23:55:37 GMT 1999


Hi, All

I'm brand new to the list, and here's what's going on:

I am running samba 1.9.18 on a RedHat Linux box (RH release 5.2).
Samba was installed via RPM rather than built locally.

While configuring smbd for a different purpose than I write about
here, I discoverd smbtar.  It struck me that this might prove a 
useful tool for backing up an NT mail-server (icky, I know) from a
Linux box.

However, I have encountered much difficulty while trying to make a 
go of this scheme.

"smbclient -L mail2" produces the error message "Try to connect to 
another name (instead of MAIL2)"

"smbclient -L mail2 -I 209.40.64.4" produces the same message. (Yes,
that *is* the correct IP.)

However, if I run the equivalent command ("net view \\mail2") from
a Windows machine (98 and NT) I immediately get the requested list of
shares on 'mail2'.

Careful scrutinization of the smbclient manpage leads me to believe that
perhaps "mail2" is not the proper LAN Manager name for the NT mail server.
I have been spectacularly unsuccessful in my attempts to locate the part
of NT wherein this name is defined.

I would appreciate any thoughts or words of wisdom that might shed some
light on this for me, and include below the output from "smbclient -d 10 
-L mail2 -I 209.40.64.4 ".

Thank you,

john
jjf at wmni.net

----debugging output:
1999/06/11 15:53:10 client started (version 1.9.18p10)
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/smb.conf"
Processing section "[global]"
doing parameter netbiosname = www
doing parameter guest account = nobody
doing parameter security = user
doing parameter encrypt passwords = yes
doing parameter share modes = yes
doing parameter server string = Flibberty-Gibbits
doing parameter workgroup = WIZZARDS.NET
doing parameter debug level = 2
codepage_initialise: client code page = 850
load_client_codepage: loading codepage 850.
Adding chars 0x85 0xb7 (l->u = True) (u->l = True)
Adding chars 0xa0 0xb5 (l->u = True) (u->l = True)
Adding chars 0x83 0xb6 (l->u = True) (u->l = True)
Adding chars 0xc6 0xc7 (l->u = True) (u->l = True)
Adding chars 0x84 0x8e (l->u = True) (u->l = True)
Adding chars 0x86 0x8f (l->u = True) (u->l = True)
Adding chars 0x91 0x92 (l->u = True) (u->l = True)
Adding chars 0x87 0x80 (l->u = True) (u->l = True)
Adding chars 0x8a 0xd4 (l->u = True) (u->l = True)
Adding chars 0x82 0x90 (l->u = True) (u->l = True)
Adding chars 0x88 0xd2 (l->u = True) (u->l = True)
Adding chars 0x89 0xd3 (l->u = True) (u->l = True)
Adding chars 0x8d 0xde (l->u = True) (u->l = True)
Adding chars 0xa1 0xd6 (l->u = True) (u->l = True)
Adding chars 0x8c 0xd7 (l->u = True) (u->l = True)
Adding chars 0x8b 0xd8 (l->u = True) (u->l = True)
Adding chars 0xd0 0xd1 (l->u = True) (u->l = True)
Adding chars 0xa4 0xa5 (l->u = True) (u->l = True)
Adding chars 0x95 0xe3 (l->u = True) (u->l = True)
Adding chars 0xa2 0xe0 (l->u = True) (u->l = True)
Adding chars 0x93 0xe2 (l->u = True) (u->l = True)
Adding chars 0xe4 0xe5 (l->u = True) (u->l = True)
Adding chars 0x94 0x99 (l->u = True) (u->l = True)
Adding chars 0x9b 0x9d (l->u = True) (u->l = True)
Adding chars 0x97 0xeb (l->u = True) (u->l = True)
Adding chars 0xa3 0xe9 (l->u = True) (u->l = True)
Adding chars 0x96 0xea (l->u = True) (u->l = True)
Adding chars 0x81 0x9a (l->u = True) (u->l = True)
Adding chars 0xec 0xed (l->u = True) (u->l = True)
Adding chars 0xe7 0xe8 (l->u = True) (u->l = True)
Adding chars 0x9c 0x0 (l->u = False) (u->l = False)
Netmask for eth0 = 255.255.255.128
Derived broadcast address 209.40.64.127
Added interface ip=209.40.64.5 bcast=209.40.64.127 nmask=255.255.255.128
Opening sockets
Connecting to 209.40.64.4 at port 139
Connected
write_socket(3,76)
write_socket(3,76) wrote 76
Sent session request
got smb length of 1
Session request failed (131,130) with myname=WWW destname=MAIL2
Called name not present
Try to connect to another name (instead of MAIL2)
You may find the -I option useful for this


More information about the samba mailing list