Tugger the SLUGger!SLUG Mailing List Archives

[chat] Samba cannot connect a Linux redhat9 box to windows 2000 box


Hi all

Any ideas anyone:

Samba cannot connect a Linux redhat9 box to windows 2000 box

*But* can from my redhat7.2 box.  The same smb.conf file is used on both boxes.

The redhat 9 has a stock kernel.

The redhat 7.2 has NOT a stock kernel.

Perhaps the redhat9 kernel needs some extra functionality??

 

 

Nmblookup response below is not working on my redhat9 box.

The required response is:

###############

Sending a packet of len 50 to (192.168.0.200) on port 137

read_udp_socket: lastip 192.168.0.200 lastport 137 read: 62

###############

 

///The faulty respnse is:

/// Redhat 9

######################################################################

#nmblookup -d10 -B 192.168.0.200 '*'

..

..

querying * on 192.168.0.200

Sending a packet of len 50 to (192.168.0.200) on port 137

tdb(unknown): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory

tdb(unknown): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory

tdb(unknown): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory

name_query failed to find name *

 

///after the file  is created "unexpected.tdb" manually

 

querying * on 192.168.0.200

Sending a packet of len 50 to (192.168.0.200) on port 137

Sending a packet of len 50 to (192.168.0.200) on port 137

Sending a packet of len 50 to (192.168.0.200) on port 137

name_query failed to find name *

######################################################################

 

 

/// the correct response is:

/// linux box (redhat 7.2) it produces the output below:

///////////////////////////////////////////

#nmblookup -d10 -B 192.168.0.200 '*'

..

..

querying * on 192.168.0.200

Sending a packet of len 50 to (192.168.0.200) on port 137

read_udp_socket: lastip 192.168.0.200 lastport 137 read: 62

parse_nmb: packet id = 31469

Received a packet of len 62 from (192.168.0.200) port 137

nmb packet from 192.168.0.200(137) header: id=31469 opcode=Query(0) response=Yes

    header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes

    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0

    answers: nmb_name=*<00> rr_type=32 rr_class=1 ttl=300000

    answers   0 char ......   hex E000C0A800C8

Got a positive name query response from 192.168.0.200 ( 192.168.0.200 )

192.168.0.200 *<00>

///////////////////////////////////////////

 

The error in the tcpdump response is:

14:19:46.721224 EB800 > 333win2000: icmp: EB800 udp port 32782 unreachable [tos 0xc0]