summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-06 20:56:19 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-08 13:03:02 +1100
commitac5d42606270423b409e2cac32550bb6e48b27de (patch)
tree0fcc99225904f1b447fd846b89696929348b0339 /source4
parentdcbba583d9a7acbbd0086889f3be722121754eae (diff)
downloadsamba-ac5d42606270423b409e2cac32550bb6e48b27de.tar.gz
samba-ac5d42606270423b409e2cac32550bb6e48b27de.tar.bz2
samba-ac5d42606270423b409e2cac32550bb6e48b27de.zip
s4-drs: added some debug messages
It is nice to see when a RID Alloc is successful
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/drsuapi/getncchanges.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c
index f2cc75cc39..64588f3a5d 100644
--- a/source4/rpc_server/drsuapi/getncchanges.c
+++ b/source4/rpc_server/drsuapi/getncchanges.c
@@ -597,6 +597,8 @@ static WERROR getncchanges_rid_alloc(struct drsuapi_bind_state *b_state,
!ldb_dn_validate(req_dn) ||
ldb_dn_compare(samdb_ntds_settings_dn(ldb), rid_manager_dn) != 0) {
/* that isn't the RID Manager DN */
+ DEBUG(0,(__location__ ": RID Alloc request for wrong DN %s",
+ req8->naming_context->dn));
ctr6->extended_ret = DRSUAPI_EXOP_ERR_MISMATCH;
return WERR_OK;
}
@@ -611,6 +613,7 @@ static WERROR getncchanges_rid_alloc(struct drsuapi_bind_state *b_state,
if (ldb_dn_compare(samdb_ntds_settings_dn(ldb), fsmo_role_dn) != 0) {
/* we're not the RID Manager - go away */
+ DEBUG(0,(__location__ ": RID Alloc request when not RID Manager"));
ctr6->extended_ret = DRSUAPI_EXOP_ERR_FSMO_NOT_OWNER;
return WERR_OK;
}
@@ -631,6 +634,9 @@ static WERROR getncchanges_rid_alloc(struct drsuapi_bind_state *b_state,
base_dn = samdb_base_dn(ldb);
+ DEBUG(2,("Allocated RID pool for server %s\n",
+ GUID_string(mem_ctx, &req8->destination_dsa_guid)));
+
/* to complete the rest of the operation we need to point
getncchanges at the base DN for the domain */
req8->naming_context->dn = ldb_dn_get_linearized(base_dn);