[4124] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Kerberos4 for SunOS4.1.3

daemon@ATHENA.MIT.EDU (Shawn Mamros)
Tue Nov 1 10:26:15 1994

To: kerberos@MIT.EDU
Date: Tue, 01 Nov 1994 09:52:59
From: mamros@ftp.com (Shawn Mamros)
Reply-To: mamros@ftp.com

shane@netnet.net (Operator) writes:
>I have it compiled but the kerberos server says bind socket
>in use.  the server gets the port num but the bind call fails..
>
>There isn't any kind of kerberos server running and rpcinfo
>savs that there isn't anything on 750...
>
>Please Help... I have the MIT dist. of kerb4.

I think I know this one...  Make sure that the sockaddr struct that
you feed to bind() is fully zero'd out (using memset() or bzero())
before you assign the needed fields.  Otherwise, bind() complains
because it sees garbage in the other fields.

This is a problem common to code which was originally written for
BSD on VAXen, a platform that was extremely forgiving of bad coding
practices (assuming memory was automagically initialized to all zeroes,
dereferencing NULL pointers, using malloc(0), etc. etc.).  I've been
bitten by just about all of them at one point or another... and the
Kerberos V4 code does them all... :-(

-Shawn Mamros
E-mail to: mamros@ftp.com


home help back first fref pref prev next nref lref last post