From 8cbc577338a28e2f0e988485b9347c9c7b1435fc Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 28 Jun 2013 09:19:48 +1000 Subject: [PATCH] rpc_server-drsuapi: Improve comments and DEBUG lines Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher (cherry picked from commit 5e1f2795f28b0a213b4529e046edec68caa3bd41) --- source4/rpc_server/drsuapi/getncchanges.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c index 5ee87cbfbfa..9a405fd8645 100644 --- a/source4/rpc_server/drsuapi/getncchanges.c +++ b/source4/rpc_server/drsuapi/getncchanges.c @@ -1128,8 +1128,7 @@ static WERROR getncchanges_change_master(struct drsuapi_bind_state *b_state, return WERR_OK; } - /* retrieve the current role owner */ - /* find the DN of the RID Manager */ + /* find the DN of the current role owner */ ret = samdb_reference_dn_is_our_ntdsa(ldb, req_dn, "fSMORoleOwner", &is_us); if (ret != LDB_SUCCESS) { DEBUG(0,("Failed to find fSMORoleOwner in RID Manager object\n")); @@ -1138,8 +1137,8 @@ static WERROR getncchanges_change_master(struct drsuapi_bind_state *b_state, } if (!is_us) { - /* we're not the RID Manager - go away */ - DEBUG(0,(__location__ ": RID Alloc request when not RID Manager\n")); + /* we're not the RID Manager or role owner - go away */ + DEBUG(0,(__location__ ": FSMO role or RID manager transfer owner request when not role owner\n")); ctr6->extended_ret = DRSUAPI_EXOP_ERR_FSMO_NOT_OWNER; return WERR_OK; } -- 2.11.4.GIT