TNG: nmblib.c loops

Michael Breuer mbreuer at siac.com
Tue Feb 29 20:55:57 GMT 2000


Update: this problem is limited to rpcclient when one specifies a FQDN.  I'm guessing that there is a buffer overrun somewhere...
looks like the name is truncated.  Rpcclient worked (and did not loop) when I specified the host name without the dns suffix.

Michael Breuer wrote:

> Using rpclient and attempting to log in to a W2K server, nmblib.c loops
> at line 1008 (according to the log output of rpcclient).
>
> Scenario:
>
> I was experimenting with making samba a BDC to a W2K PDC.  I set up my
> smb.conf file as-per the FAQ.  When I ran rpcclient to connect to the
> PDC, rpclient hung.  With log level 100, I see many many messages of:
>
> [2000/02/29 14:19:47, 100] libsmb/nmblib.c:(1008)
>   receive_packet: 4 0
>
> (approx 14/second).
>
> Interspersed occasionally (about every 2 seconds) are:
> [2000/02/29 14:19:46, 4] libsmb/nmblib.c:(109)
>   nmb packet from <ip of samba server>(137) header: id=2862
> opcode=Query(0) response=No
>       header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
>
>       header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
>       question: q_name=<partial DNS name of PDC><20> q_type=32 q_class=1
>
> [2000/02/29 14:19:46, 5] libsmb/nmblib.c:(752)
>   Sending a packet of len 50 to (162.69.72.47) on port 137



More information about the samba-ntdom mailing list