ldb_msg_add_string(msg, "objectCategory",
current->objectclass->defaultObjectCategory);
}
- if (!ldb_msg_find_element(msg, "showInAdvancedViewOnly")) {
+ if (!ldb_msg_find_element(msg, "showInAdvancedViewOnly") && (current->objectclass->defaultHidingValue == true)) {
ldb_msg_add_string(msg, "showInAdvancedViewOnly",
- current->objectclass->defaultHidingValue ? "TRUE" : "FALSE");
+ "TRUE");
}
if (!ldb_msg_find_element(msg, "nTSecurityDescriptor")) {
DATA_BLOB *sd = get_sd(ac->module, mem_ctx, current->objectclass);