Merge commit 'origin/v4-0-test' into 4-0-local
authorAndrew Bartlett <abartlet@samba.org>
Fri, 18 Jan 2008 06:05:17 +0000 (17:05 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 18 Jan 2008 06:05:17 +0000 (17:05 +1100)
(This used to be commit 51422414bed28f425197519298c6b04a9f4e2c4e)

source4/dsdb/samdb/ldb_modules/objectclass.c

index d3beedc689ccb488d1c81f2ef921c19206de0ca9..871c38476b912410a0b47040eff4eecfdeb0e492 100644 (file)
@@ -532,6 +532,10 @@ 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")) {
+                                       ldb_msg_add_string(msg, "showInAdvancedViewOnly", 
+                                                          current->objectclass->defaultHidingValue ? "TRUE" : "FALSE");
+                               }
                                if (!ldb_msg_find_element(msg, "nTSecurityDescriptor")) {
                                        DATA_BLOB *sd = get_sd(ac->module, mem_ctx, current->objectclass);
                                        ldb_msg_add_steal_value(msg, "nTSecurityDescriptor", sd);