s4-dsdb Allow repl server to start even when no master NCs are present
authorAndrew Bartlett <abartlet@samba.org>
Fri, 30 Sep 2011 00:05:38 +0000 (17:05 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 6 Oct 2011 00:11:34 +0000 (02:11 +0200)
source4/dsdb/repl/drepl_partitions.c

index 934c75e776dc1c19f51553cd15d5fe4625b8be3d..7c5424555a91f3c5c3f6b98bb96d057ca08d5f4d 100644 (file)
@@ -63,14 +63,8 @@ WERROR dreplsrv_load_partitions(struct dreplsrv_service *s)
        }
 
        el = ldb_msg_find_element(res->msgs[0], "hasMasterNCs");
-       if (!el) {
-               DEBUG(1,("Finding hasMasterNCs element in root_res failed: %s\n",
-                        ldb_errstring(s->samdb)));
-               talloc_free(tmp_ctx);
-               return WERR_DS_DRA_INTERNAL_ERROR;
-       }
 
-       for (i=0; i<el->num_values; i++) {
+       for (i=0; el && i<el->num_values; i++) {
                struct ldb_dn *pdn;
                struct dreplsrv_partition *p;