mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
Fix entry_get, only check mapped attr if attr was provided
This commit is contained in:
parent
6e17b60648
commit
7488f557cd
1 changed files with 9 additions and 9 deletions
|
|
@ -571,8 +571,6 @@ ldap_back_entry_get(
|
|||
rc = 1;
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
is_oc = (strcasecmp("objectclass", mapped.bv_val) == 0);
|
||||
if (oc && !is_oc) {
|
||||
gattr[0] = "objectclass";
|
||||
|
|
@ -582,6 +580,8 @@ ldap_back_entry_get(
|
|||
gattr[0] = mapped.bv_val;
|
||||
gattr[1] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (oc) {
|
||||
char *ptr;
|
||||
ldap_back_map(&li->rwmap.rwm_oc, &oc->soc_cname, &mapped,
|
||||
|
|
|
|||
Loading…
Reference in a new issue