dsdb:extended_dn_store: we need to pass down our altered request down on NO_SUCH_OBJECT
authorStefan Metzmacher <metze@samba.org>
Wed, 28 Feb 2018 09:31:21 +0000 (10:31 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 19 Mar 2018 19:30:50 +0000 (20:30 +0100)
It's quite likely that there're more than one attribute and we may
already altered values.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13307

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/dsdb/samdb/ldb_modules/extended_dn_store.c

index 8829de03a051822ea5660cd5b9ef9dcb70c50752..47bce532b14e3a5a989e2ed832e05e0a0729e41c 100644 (file)
@@ -143,7 +143,7 @@ static int extended_replace_dn(struct ldb_request *req, struct ldb_reply *ares)
                        /* Otherwise, we are done - let's run the
                         * request now we have swapped the DNs for the
                         * full versions */
-                       return ldb_next_request(os->ac->module, os->ac->req);
+                       return ldb_next_request(os->ac->module, os->ac->new_req);
                }
        }
        if (ares->error != LDB_SUCCESS) {