Issue 660 - localhost, openldap 2.0+SASL+GSI(GSSAPI)
Summary: localhost, openldap 2.0+SASL+GSI(GSSAPI)
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-08-14 22:50 UTC by mei@isi.edu
Modified: 2014-08-01 21:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mei@isi.edu 2000-08-14 22:50:44 UTC
Full_Name: mei-hui su
Version: 2.0 latest
OS: sun solaris 2.7
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (128.9.64.206)


Hi,

  While trying to figure out why my 'ldapsearch -h localhost -p 9009' works
with -x but not -Y GSSAPI. I think I might have found the problem.

  I am using openldap the latest, cyrus-sasl 1.5.24 and globus gsi(GSSAPI)
and I have sent in a message to developer mailing list (200008/msg00062).

1) In libraries/libldap/init.c line #433, shouldn't hostbuf be declared
static char ?

void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl )
{
        if ( gopts->ldo_valid == LDAP_INITIALIZED ) {
                return;
        }

#if defined(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND) \
        || defined(HAVE_TLS) || defined(HAVE_CYRUS_SASL)
        {
                char hostbuf[MAXHOSTNAMELEN+1];          
<<<--------------------
                if( gethostname( hostbuf, MAXHOSTNAMELEN ) == 0 ) {


2) In libraries/libldap/os-ip.c line #465, should INADDR_ANY be INADDR_LOOPBACK
instead ??

        case AF_INET:
                addr = (char *) &((struct sockaddr_in *)&sa)->sin_addr;
                len = sizeof( struct in_addr );

                {
                        struct sockaddr_in localhost;
                        localhost.sin_addr.s_addr = htonl( INADDR_ANY );
<<<-----

                        if( memcmp ( &localhost.sin_addr,


mei
Comment 1 Kurt Zeilenga 2000-08-15 00:04:40 UTC
At 10:50 PM 8/14/00 +0000, mei@isi.edu wrote:
>1) In libraries/libldap/init.c line #433, shouldn't hostbuf be declared
>static char ?

Yes... I've committed new get local host FQDN code...

>2) In libraries/libldap/os-ip.c line #465, should INADDR_ANY be INADDR_LOOPBACK
>instead ??

Likely both should be checked.  The assumptions of such checks
may actually be incorrect...

Comment 2 Kurt Zeilenga 2000-08-15 18:36:35 UTC
changed notes
changed state Open to Closed
moved from Incoming to Development
Comment 3 OpenLDAP project 2014-08-01 21:05:27 UTC
fixed.