s4-dsdb: fixed use of RMD flags in ldb search in dirsync module
authorAndrew Tridgell <tridge@samba.org>
Wed, 24 Aug 2011 05:53:58 +0000 (15:53 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 24 Aug 2011 23:10:13 +0000 (01:10 +0200)
I'm pretty sure a SHOW_DELETED was wanted here

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Aug 25 01:10:13 CEST 2011 on sn-devel-104

source4/dsdb/samdb/ldb_modules/dirsync.c

index 6a5703ab5f11d9442c081157d267434498d4ab32..676aaff21abbfccfb664345d23f99e1072680f5a 100644 (file)
@@ -845,8 +845,8 @@ static int dirsync_search_callback(struct ldb_request *req, struct ldb_reply *ar
                }
 
                flags = DSDB_FLAG_NEXT_MODULE |
-                               DSDB_RMD_FLAG_DELETED |
-                               DSDB_SEARCH_SHOW_EXTENDED_DN;
+                       DSDB_SEARCH_SHOW_DELETED |
+                       DSDB_SEARCH_SHOW_EXTENDED_DN;
 
                if (dsc->assystem) {
                        flags = flags | DSDB_FLAG_AS_SYSTEM;