mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
Fix GSSAPI connections to localhost
This commit is contained in:
parent
279760a467
commit
838c2d774e
1 changed files with 4 additions and 3 deletions
|
|
@ -598,9 +598,10 @@ ldap_int_sasl_bind(
|
|||
ld->ld_defconn->lconn_sasl_authctx = NULL;
|
||||
}
|
||||
|
||||
rc = ldap_int_sasl_open( ld, ld->ld_defconn,
|
||||
ld->ld_defconn->lconn_server->lud_host ?
|
||||
ld->ld_defconn->lconn_server->lud_host : "localhost" );
|
||||
{ char *saslhost = ldap_host_connected_to( ld->ld_sb, "localhost" );
|
||||
rc = ldap_int_sasl_open( ld, ld->ld_defconn, saslhost );
|
||||
LDAP_FREE( saslhost );
|
||||
}
|
||||
|
||||
if ( rc != LDAP_SUCCESS ) return rc;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue