Issue 3298 - incorrect hostname in SASL bind within rebind function
Summary: incorrect hostname in SASL bind within rebind function
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: 2004-08-24 03:07 UTC by Luke Howard
Modified: 2014-08-01 21:06 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 Luke Howard 2004-08-24 03:07:01 UTC
Full_Name: Luke Howard
Version: 2.2.15
OS: Linux
URL: http://www.padl.com/~lukeh/sasl.diff
Submission from: (NULL) (203.13.32.92)


ldap_int_sasl_bind() calls ldap_host_connected_to() to determine the currently
connected host, which is passed to ldap_int_sasl_open().

In the case of the GSSAPI SASL mechanism, the SASL library uses this hostname to
determine which ticket to acquire for authenticating. We have a rebind callback
that will do a GSSAPI SASL bind on referral.

ldap_host_connected_to() actually returns the referring host rather than the
referred host, hence the wrong ticket is acquired and the SASL bind eventually
fails.

It appears that ld->ld_sb points to the referring host, whereas
ld->ld_defconn->lconn_sb points to the referred host.

See the attached patch for more information, it fixes the problem for me.

Comment 1 Kurt Zeilenga 2004-08-27 20:28:45 UTC
moved from Incoming to Software Bugs
Comment 2 Kurt Zeilenga 2004-08-27 20:44:34 UTC
changed notes
Comment 3 Kurt Zeilenga 2004-08-27 20:44:48 UTC
changed state Open to Test
Comment 4 Kurt Zeilenga 2004-08-30 19:22:29 UTC
changed notes
Comment 5 Kurt Zeilenga 2004-08-30 19:22:38 UTC
changed state Test to Release
Comment 6 Kurt Zeilenga 2004-08-30 19:50:16 UTC
Please test OPENLDAP_REL_ENG_2_2.  Thanks, Kurt
Comment 7 Kurt Zeilenga 2004-09-09 21:04:26 UTC
changed state Release to Closed
Comment 8 Howard Chu 2009-02-17 05:07:21 UTC
moved from Software Bugs to Archive.Software Bugs
Comment 9 OpenLDAP project 2014-08-01 21:06:33 UTC
fixed in HEAD/re22