s4-drs: fixed search expression
authorAndrew Tridgell <tridge@samba.org>
Sun, 13 Sep 2009 08:14:35 +0000 (18:14 +1000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 13 Sep 2009 23:40:00 +0000 (16:40 -0700)
At least on the command line the braces are needed. Strange.

source4/rpc_server/drsuapi/getncchanges.c

index 6f7637a970512e51a70ac030abd9505d67f0f8e6..2754c8f9b03c88e0c54c5068936ea91678901763 100644 (file)
@@ -315,7 +315,7 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_
        ncRoot_dn = ldb_dn_new(mem_ctx, sam_ctx, ncRoot->dn);
        ret = drsuapi_search_with_extended_dn(sam_ctx, mem_ctx, &site_res,
                                              ncRoot_dn, LDB_SCOPE_SUBTREE, attrs,
        ncRoot_dn = ldb_dn_new(mem_ctx, sam_ctx, ncRoot->dn);
        ret = drsuapi_search_with_extended_dn(sam_ctx, mem_ctx, &site_res,
                                              ncRoot_dn, LDB_SCOPE_SUBTREE, attrs,
-                                             "uSNChanged>=%llu", 
+                                             "(uSNChanged>=%llu)", 
                                              (unsigned long long)(r->in.req->req8.highwatermark.highest_usn+1));
        if (ret != LDB_SUCCESS) {
                return WERR_DS_DRA_INTERNAL_ERROR;
                                              (unsigned long long)(r->in.req->req8.highwatermark.highest_usn+1));
        if (ret != LDB_SUCCESS) {
                return WERR_DS_DRA_INTERNAL_ERROR;