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,17 +571,17 @@ ldap_back_entry_get(
|
||||||
rc = 1;
|
rc = 1;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
is_oc = (strcasecmp("objectclass", mapped.bv_val) == 0);
|
||||||
|
if (oc && !is_oc) {
|
||||||
|
gattr[0] = "objectclass";
|
||||||
|
gattr[1] = mapped.bv_val;
|
||||||
|
gattr[2] = NULL;
|
||||||
|
} else {
|
||||||
|
gattr[0] = mapped.bv_val;
|
||||||
|
gattr[1] = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
is_oc = (strcasecmp("objectclass", mapped.bv_val) == 0);
|
|
||||||
if (oc && !is_oc) {
|
|
||||||
gattr[0] = "objectclass";
|
|
||||||
gattr[1] = mapped.bv_val;
|
|
||||||
gattr[2] = NULL;
|
|
||||||
} else {
|
|
||||||
gattr[0] = mapped.bv_val;
|
|
||||||
gattr[1] = NULL;
|
|
||||||
}
|
|
||||||
if (oc) {
|
if (oc) {
|
||||||
char *ptr;
|
char *ptr;
|
||||||
ldap_back_map(&li->rwmap.rwm_oc, &oc->soc_cname, &mapped,
|
ldap_back_map(&li->rwmap.rwm_oc, &oc->soc_cname, &mapped,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue