Fix sequence number generation against OpenLDAP
authorAndrew Bartlett <abartlet@samba.org>
Wed, 10 Dec 2008 06:23:44 +0000 (17:23 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 10 Dec 2008 06:23:44 +0000 (17:23 +1100)
It seems that in 2deeb99fff1a90c79ba1927e1a069362e250a63c adding the
partition control to this request was missed out.

Andrew Bartlett

source4/dsdb/samdb/ldb_modules/partition.c

index 2a321e2..5500c75 100644 (file)
@@ -895,6 +895,14 @@ static int partition_sequence_number(struct ldb_module *module, struct ldb_reque
                                return ret;
                        }
 
+                       ret = ldb_request_add_control(treq,
+                                                     DSDB_CONTROL_CURRENT_PARTITION_OID,
+                                                     false, data->partitions[i]);
+                       if (ret != LDB_SUCCESS) {
+                               talloc_free(res);
+                               return ret;
+                       }
+
                        ret = partition_request(data->partitions[i]->module, treq);
                        if (ret != LDB_SUCCESS) {
                                talloc_free(res);