diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-11-21 09:51:45 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-11-30 17:17:19 +0100 |
commit | 6991fb385e3956892d904f871052aaede1137a29 (patch) | |
tree | e973c034209f559b773f7dfe9e9e092ea79e7b87 /source4/dsdb/samdb/ldb_modules | |
parent | 7fe1e61ab908264f2ac7b8df666b254ae2af4488 (diff) | |
download | samba-6991fb385e3956892d904f871052aaede1137a29.tar.gz samba-6991fb385e3956892d904f871052aaede1137a29.tar.bz2 samba-6991fb385e3956892d904f871052aaede1137a29.zip |
s4:dsdb/dirsync: use the correct nc_root to fetch replUpToDateVector
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/dirsync.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/dirsync.c b/source4/dsdb/samdb/ldb_modules/dirsync.c index 701170a2ca..5b00566261 100644 --- a/source4/dsdb/samdb/ldb_modules/dirsync.c +++ b/source4/dsdb/samdb/ldb_modules/dirsync.c @@ -705,12 +705,10 @@ static int dirsync_create_vector(struct ldb_request *req, struct ldb_result *resVector; const char* attrVector[] = {"replUpToDateVector", NULL }; uint64_t highest_usn; - struct ldb_dn *nc_root; uint32_t count = 1; int ret; struct drsuapi_DsReplicaCursor *tab; - nc_root = ldb_get_default_basedn(ldb); ret = ldb_sequence_number(ldb, LDB_SEQ_HIGHEST_SEQ, &highest_usn); if (ret != LDB_SUCCESS) { return ldb_error(ldb, LDB_ERR_OPERATIONS_ERROR, "Unable to get highest USN from current NC"); @@ -726,7 +724,7 @@ static int dirsync_create_vector(struct ldb_request *req, ret = dsdb_module_search_dn(dsc->module, dsc, &resVector, - nc_root, + dsc->nc_root, attrVector, DSDB_FLAG_NEXT_MODULE, req); if (ret != LDB_SUCCESS) { |