mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
ITS#5328 - return LDAP result code from config_back_entry_get (back-config bi_entry_get_rw)
This commit is contained in:
parent
9ebe788370
commit
8a703aba83
1 changed files with 8 additions and 3 deletions
|
|
@ -5298,18 +5298,23 @@ int config_back_entry_get(
|
|||
{
|
||||
CfBackInfo *cfb;
|
||||
CfEntryInfo *ce, *last;
|
||||
int rc = LDAP_NO_SUCH_OBJECT;
|
||||
|
||||
cfb = (CfBackInfo *)op->o_bd->be_private;
|
||||
|
||||
ce = config_find_base( cfb->cb_root, ndn, &last );
|
||||
if ( ce ) {
|
||||
*ent = ce->ce_entry;
|
||||
if ( *ent && oc && !is_entry_objectclass_or_sub( *ent, oc ) ) {
|
||||
*ent = NULL;
|
||||
if ( *ent ) {
|
||||
rc = LDAP_SUCCESS;
|
||||
if ( oc && !is_entry_objectclass_or_sub( *ent, oc ) ) {
|
||||
rc = LDAP_NO_SUCH_ATTRIBUTE;
|
||||
*ent = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ( *ent == NULL ? 1 : 0 );
|
||||
return rc;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue