mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
More for prev commit. What about ldap_pvt_sasl_getmechs() ?
This commit is contained in:
parent
fca72f333b
commit
120d2ce228
@ -451,20 +451,23 @@ ldap_sasl_interactive_bind(
|
||||
#endif
|
||||
|
||||
if( mechs == NULL || *mechs == '\0' ) {
|
||||
/* FIXME: this needs to be asynchronous too;
|
||||
* perhaps NULL should be disallowed for async usage?
|
||||
*/
|
||||
rc = ldap_pvt_sasl_getmechs( ld, &smechs );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"ldap_sasl_interactive_bind_s: server supports: %s\n",
|
||||
"ldap_sasl_interactive_bind: server supports: %s\n",
|
||||
smechs, 0, 0 );
|
||||
|
||||
mechs = smechs;
|
||||
|
||||
} else {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"ldap_sasl_interactive_bind_s: user selected: %s\n",
|
||||
"ldap_sasl_interactive_bind: user selected: %s\n",
|
||||
mechs, 0, 0 );
|
||||
}
|
||||
}
|
||||
@ -509,6 +512,8 @@ ldap_sasl_interactive_bind_s(
|
||||
serverControls, clientControls,
|
||||
flags, interact, defaults, result, &rmech, &msgid );
|
||||
|
||||
ldap_msgfree( result );
|
||||
|
||||
if ( rc != LDAP_SASL_BIND_IN_PROGRESS )
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user