Bug 5943 - nmbd does not return the entries that are in the lmhost
Summary: nmbd does not return the entries that are in the lmhost
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Nmbd (show other bugs)
Version: 3.2.5
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-05 07:39 UTC by David Markey
Modified: 2009-02-04 13:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Markey 2008-12-05 07:39:54 UTC
When acting as a wins server, the nscd does not return the entries that are in the lmhosts file even though in the logs nmbd says it loaded them.


root@ubuntu:/opt# cat /opt/cs/lib/lmhosts
192.9.200.1    TESTPC
192.9.200.20   NTSERVER#20
192.9.200.21   SAMBASERVER

root@ubuntu:/opt# /opt/cs/sbin/nmbd -i | grep -i lmhosts
doing parameter name resolve order = wins lmhosts hosts bcast
doing parameter name resolve order = wins lmhosts hosts bcast
getlmhostsent: lmhost entry: 192.9.200.1 TESTPC
getlmhostsent: lmhost entry: 192.9.200.20 NTSERVER#20
getlmhostsent: lmhost entry: 192.9.200.21 SAMBASERVER
Loaded hosts file /opt/cs/lib/lmhosts


root@ubuntu:/opt# /opt/cs/bin/nmblookup -U localhost -R TESTPC
querying TESTPC on 127.0.0.1
Sending a packet of len 50 to (127.0.0.1) on port 137
read_udp_v4_socket: ip 127.0.0.1 port 35072 read: 56
parse_nmb: packet id = 21161
Received a packet of len 56 from (127.0.0.1) port 137
nmb packet from 127.0.0.1(137) header: id=21161 opcode=Query(0) response=Yes
    header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
    header: rcode=3 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=TESTPC<00> rr_type=10 rr_class=1 ttl=0
Negative name query response, rcode 0x03: The name requested does not exist.
name_query failed to find name TESTPC
root@ubuntu:/opt# /opt/cs/bin/nmblookup -U localhost -R TESTPC
Comment 1 David Markey 2009-02-04 13:26:48 UTC
This can be achieved by editing wins.dat. This bug isnt really valid.