TNG: nmblib.c loops
Luke Kenneth Casson Leighton
lkcl at samba.org
Tue Feb 29 21:23:37 GMT 2000
never specified rpcclient with a fqdn. it _should_ truncate at the dot.
however.... it _should_... detect a dns name and try to use it as a dns
name and do a connection either to port 445 of to use *SMBSERVER.
oops, thx for reminding me of this.
On Wed, 1 Mar 2000, Michael Breuer wrote:
> 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
>
<a href=" mailto:lkcl at samba.org" > Luke Kenneth Casson Leighton </a>
<a href=" http://cb1.com/~lkcl" > Samba and Network Development </a>
<a href=" http://samba.org" > Samba Web site </a>
<a href=" http://www.iss.net" > Internet Security Systems, Inc. </a>
<a href=" http://mcp.com" > Macmillan Technical Publishing </a>
ISBN1578701503 DCE/RPC over SMB: Samba and Windows NT Domain Internals
More information about the samba-ntdom
mailing list