mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
ITS#7695 Fix ldapsearch regression with CLDAP
Don't try to parse the result of a CLDAP bind request. Since these are faked, no message is actually returned.
This commit is contained in:
parent
d51ee964fc
commit
5c91989477
@ -1620,11 +1620,13 @@ tool_bind( LDAP *ld )
|
||||
}
|
||||
}
|
||||
|
||||
rc = ldap_parse_result( ld, result, &err, &matched, &info, &refs,
|
||||
&ctrls, 1 );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
tool_perror( "ldap_bind parse result", rc, NULL, matched, info, refs );
|
||||
tool_exit( ld, LDAP_LOCAL_ERROR );
|
||||
if ( result ) {
|
||||
rc = ldap_parse_result( ld, result, &err, &matched, &info, &refs,
|
||||
&ctrls, 1 );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
tool_perror( "ldap_bind parse result", rc, NULL, matched, info, refs );
|
||||
tool_exit( ld, LDAP_LOCAL_ERROR );
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST
|
||||
|
Loading…
Reference in New Issue
Block a user