mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
don't return entry if requested attr is not present (ITS#5650)
This commit is contained in:
parent
03b105339a
commit
c97ef0a708
1 changed files with 9 additions and 0 deletions
|
|
@ -401,6 +401,15 @@ dn2entry_retry:
|
|||
goto return_results;
|
||||
}
|
||||
|
||||
/* NOTE: attr_find() or attrs_find()? */
|
||||
if ( at && attr_find( e->e_attrs, at ) == NULL ) {
|
||||
Debug( LDAP_DEBUG_ACL,
|
||||
"<= bdb_entry_get: failed to find attribute %s\n",
|
||||
at->ad_cname.bv_val, 0, 0 );
|
||||
rc = LDAP_NO_SUCH_ATTRIBUTE;
|
||||
goto return_results;
|
||||
}
|
||||
|
||||
return_results:
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
/* free entry */
|
||||
|
|
|
|||
Loading…
Reference in a new issue