According to DRSR entries of objectclass=server should be returned only if the serverreference attribute is present and points to a valid DC object.
Created attachment 8051 [details]
Fix the bug by adding more precises tests
Karolin, please pick up for rc3.
Patch does not apply.
Re-assigning to Matthieu.
The line "ret = ldb_search(b_state->sam_ctx, mem_ctx, &res_account, ref_dn, " lacks a space at the beginning given the fact that I got the patch from git format-patch 3dd2b804b98e232bf9f28a29577f7fdd026a228c -1
I don't really understand how it has occurred.
Created attachment 8079 [details]
[PATCH] bug 9251 getdcinfo: Check that the server object has a serverreference objects pointing to a DC object
The problem was found by the DRSR testsuite where server objects were
created in the Site container without serverrefrence attribute
triggering error in the testsuite.
source4/rpc_server/drsuapi/dcesrv_drsuapi.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Generated with git format-patch on top of fa4b3c953c1addcac75ddea2d1a50b38d43fb668