diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-01-18 18:08:49 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-01-18 18:08:49 +1100 |
commit | 7e2ea67b2118d31d11ed668d081568f7ef2243ae (patch) | |
tree | 9eb0b5345389181b8c790da767a1b0e8bd5c624c /source4/dsdb/samdb/ldb_modules | |
parent | 53c1cdd11ad56723cd7bada2df0cc2faa88227df (diff) | |
download | samba-7e2ea67b2118d31d11ed668d081568f7ef2243ae.tar.gz samba-7e2ea67b2118d31d11ed668d081568f7ef2243ae.tar.bz2 samba-7e2ea67b2118d31d11ed668d081568f7ef2243ae.zip |
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 used to be commit 45f6ccefda39e8f0a9820ba55b1924b7cfb12262)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/objectclass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 871c38476b..737475ca78 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -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); |