mirror of
https://github.com/samba-team/samba.git
synced 2025-06-22 07:17:05 +03:00
Add showInAdvancedViewOnly to every new object
Unless already set, the default value for this comes from the defaultHidingValue in the schema. Andrew Bartlett (This used to be commit 673f1805006f879fa5302aab8411767a22488e64)
This commit is contained in:
parent
564e021ed9
commit
391f089d71
@ -532,6 +532,10 @@ static int objectclass_do_add(struct ldb_handle *h)
|
|||||||
ldb_msg_add_string(msg, "objectCategory",
|
ldb_msg_add_string(msg, "objectCategory",
|
||||||
current->objectclass->defaultObjectCategory);
|
current->objectclass->defaultObjectCategory);
|
||||||
}
|
}
|
||||||
|
if (!ldb_msg_find_element(msg, "showInAdvancedViewOnly")) {
|
||||||
|
ldb_msg_add_string(msg, "showInAdvancedViewOnly",
|
||||||
|
current->objectclass->defaultHidingValue ? "TRUE" : "FALSE");
|
||||||
|
}
|
||||||
if (!ldb_msg_find_element(msg, "nTSecurityDescriptor")) {
|
if (!ldb_msg_find_element(msg, "nTSecurityDescriptor")) {
|
||||||
DATA_BLOB *sd = get_sd(ac->module, mem_ctx, current->objectclass);
|
DATA_BLOB *sd = get_sd(ac->module, mem_ctx, current->objectclass);
|
||||||
ldb_msg_add_steal_value(msg, "nTSecurityDescriptor", sd);
|
ldb_msg_add_steal_value(msg, "nTSecurityDescriptor", sd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user