1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Only set showOnlyInAdvancedView: TRUE when adding default values.

False is the default, so only set this when the schema requires the
hiding behaviour.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2008-01-18 18:08:49 +11:00
parent e9003feb1b
commit 45f6ccefda

View File

@ -532,9 +532,9 @@ static int objectclass_do_add(struct ldb_handle *h)
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);