mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
prettify matchedDN
This commit is contained in:
parent
ba881c5e6f
commit
7a85e25402
@ -289,13 +289,19 @@ finish:;
|
||||
* At least one compare failed with matched portion,
|
||||
* and none was successful
|
||||
*/
|
||||
} else if ( match != NULL && match[0] != '\0' ) {
|
||||
struct berval matched;
|
||||
} else if ( match != NULL && match[ 0 ] != '\0' ) {
|
||||
struct berval matched, pmatched;
|
||||
|
||||
ber_str2bv( match, 0, 0, &matched );
|
||||
|
||||
dc.ctx = "matchedDN";
|
||||
ldap_back_dn_massage( &dc, &matched, &mmatch );
|
||||
if ( dnPretty( NULL, &mmatch, &pmatched, NULL ) == LDAP_SUCCESS ) {
|
||||
if ( mmatch.bv_val != match ) {
|
||||
free( mmatch.bv_val );
|
||||
}
|
||||
mmatch = pmatched;
|
||||
}
|
||||
}
|
||||
|
||||
if ( rres != LDAP_SUCCESS ) {
|
||||
|
Loading…
Reference in New Issue
Block a user