s4:partition: pass down the SEARCH_OPTIONS control as uncritical
authorStefan Metzmacher <metze@samba.org>
Thu, 2 Oct 2008 09:11:14 +0000 (11:11 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 2 Oct 2008 10:20:58 +0000 (12:20 +0200)
metze

source4/dsdb/samdb/ldb_modules/partition.c

index ad2901c308bf4671edaa883bf282110622fcc955..ad3518e6b2ec61acf7e3374b9df75fb2f79862e2 100644 (file)
@@ -466,6 +466,14 @@ static int partition_search(struct ldb_module *module, struct ldb_request *req)
                return LDB_ERR_OPERATIONS_ERROR;
        }
 
+       /*
+        * for now pass down the LDB_CONTROL_SEARCH_OPTIONS_OID control
+        * down as uncritical to make windows 2008 dcpromo happy.
+        */
+       if (search_control) {
+               search_control->critical = 0;
+       }
+
        /* TODO:
           Generate referrals (look for a partition under this DN) if we don't have the above control specified
        */