diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-10 23:03:07 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-11 14:07:19 +1000 |
commit | fdb8758e698e6df602b14ad7abe1152a2551e706 (patch) | |
tree | 3a3b132ea0e89de0c6aa327fc78e79bfa5dca162 /source4/rpc_server | |
parent | 294e7cd5665975e72142409cdf18ada3b46d266c (diff) | |
download | samba-fdb8758e698e6df602b14ad7abe1152a2551e706.tar.gz samba-fdb8758e698e6df602b14ad7abe1152a2551e706.tar.bz2 samba-fdb8758e698e6df602b14ad7abe1152a2551e706.zip |
s4/drs: parentGUID needs to be specififcally asked for
Right now parentGUID is a normal attribute in s4, but it should be
generated, which means we need to ask for it in a search if we want to
use it.
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/drsuapi/getncchanges.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c index 2d06970b80..3b908fffbc 100644 --- a/source4/rpc_server/drsuapi/getncchanges.c +++ b/source4/rpc_server/drsuapi/getncchanges.c @@ -169,6 +169,7 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_ struct drsuapi_DsReplicaObjectListItemEx *currentObject; NTSTATUS status; DATA_BLOB session_key; + const char *attrs[] = { "*", "parentGUID", NULL }; /* * connect to the samdb. TODO: We need to check that the caller @@ -209,7 +210,7 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_ /* Construct response. */ 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, NULL, + ncRoot_dn, LDB_SCOPE_SUBTREE, attrs, "(&(uSNChanged>=%llu)(objectClass=*))", (unsigned long long)r->in.req->req8.highwatermark.highest_usn); if (ret != LDB_SUCCESS) { |