int i;
for (i = 0; attrs[i]; i++) {
- if (strcasecmp(attrs[i], attr) == 0)
+ if (ldb_attr_cmp(attrs[i], attr) == 0)
return true;
}
}
static int inject_extended_dn_out(struct ldb_reply *ares,
- struct ldb_context *ldb,
- int type,
- bool remove_guid,
- bool remove_sid)
+ struct ldb_context *ldb,
+ int type,
+ bool remove_guid,
+ bool remove_sid)
{
int ret;
const struct ldb_val *val;
}
/* check if attrs only is specified, in that case check wether we need to modify them */
- if (req->op.search.attrs) {
+ if (req->op.search.attrs && !is_attr_in_list(req->op.search.attrs, "*")) {
if (! is_attr_in_list(req->op.search.attrs, "objectGUID")) {
ac->remove_guid = true;
}