Tr: [Samba] getpeername failed -> PLEASE HELP

John H Terpstra jht at samba.org
Wed Aug 24 17:42:27 GMT 2005


On Wednesday 24 August 2005 09:57, Bahya NASSR EDDINE wrote:
> --- Bahya NASSR EDDINE <bahya_nassr at yahoo.fr> a écrit
>
> > Date: Wed, 24 Aug 2005 12:14:37 +0200 (CEST)
> > De: Bahya NASSR EDDINE <bahya_nassr at yahoo.fr>
> > À: samba at lists.samba.org
> > Objet: [Samba] getpeername failed
> >
> > Hello there,
> >
> > I am using a samba 3 PDC with OpenLDAP directory. I
> > can't log on to my samba domain any more from my
> > windows clients!
> >
> > Once the samba domain joined, I reboot the client
> > machine  and I try to log on to the domain. The
> > later
> > operation falls with an error message telling that
> > it
> > a connection cannot be opened. I check my smbd log
> > file, it reports the following:
> >   [2005/08/24 09:49:09, 0]
> > lib/util_sock.c:get_peer_addr(1150)
> >     getpeername failed. Error was Transport endpoint
> > is not connected
> >   [2005/08/24 09:49:09, 0]
> > lib/util_sock.c:write_socket_data(430)
> >     write_socket_data: write failure. Error =
> > Connection reset by peer
> >   [2005/08/24 09:49:09, 0]
> > lib/util_sock.c:write_socket(455)
> >     write_socket: Error writing 4 bytes to socket
> > 25:
> >  ERRNO = Connection reset by peer
> >   [2005/08/24 09:49:09, 0]
> > lib/util_sock.c:send_smb(647)
> >     Error writing 4 bytes to client. -1. (Connection
> > reset by peer)
> >
> > Would you have any idea of what is going wrong
> > there?

Add to your smb.conf [globals]:

	smb ports = 139

If the problem persists, check your ether-switches, HUBS,  network cables and 
ethernet cards.

- John T.


More information about the samba mailing list