Use the new SEARCH_FLAG_ANR define
authorAndrew Bartlett <abartlet@samba.org>
Wed, 20 Aug 2008 06:18:44 +0000 (16:18 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 20 Aug 2008 06:18:44 +0000 (16:18 +1000)
source/dsdb/samdb/ldb_modules/anr.c

index 1252c9ee42f1ae2c65fbb82dd875baae34101850..bd494c841b14ded6fc8a097bf3e69ea1e1b40088 100644 (file)
@@ -146,7 +146,7 @@ struct ldb_parse_tree *anr_replace_callback(TALLOC_CTX *mem_ctx,
                op = LDB_OP_SUBSTRING;
        }
        for (cur = schema->attributes; cur; cur = cur->next) {
-               if (!(cur->searchFlags & 0x4)) continue;
+               if (!(cur->searchFlags & SEARCH_FLAG_ANR)) continue;
                match_tree = make_match_tree(module, mem_ctx, op, cur->lDAPDisplayName, match);
 
                if (tree) {