dsdb: Improve debug messages
authorAndrew Bartlett <abartlet@samba.org>
Wed, 14 Jun 2017 02:13:18 +0000 (14:13 +1200)
committerGarming Sam <garming@samba.org>
Wed, 14 Jun 2017 23:24:25 +0000 (01:24 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c
source4/dsdb/samdb/ldb_modules/schema_data.c

index ce06ee8901352fd54145416dafd6cec6efb188bd..2715db840830004bf59f8d049ca64407f63e6470 100644 (file)
@@ -4528,7 +4528,7 @@ static int replmd_name_modify(struct replmd_replicated_request *ar,
                                 DSDB_FLAG_OWN_MODULE|DSDB_FLAG_REPLICATED_UPDATE,
                                 req);
        if (ret != LDB_SUCCESS) {
-               DEBUG(0,(__location__ ": Failed to modify rDN/name of conflict DN '%s' - %s",
+               DEBUG(0,(__location__ ": Failed to modify rDN/name of DN being DRS renamed '%s' - %s",
                         ldb_dn_get_linearized(dn),
                         ldb_errstring(ldb_module_get_ctx(ar->module))));
                return ret;
@@ -4540,7 +4540,7 @@ static int replmd_name_modify(struct replmd_replicated_request *ar,
 
 failed:
        talloc_free(msg);
-       DEBUG(0,(__location__ ": Failed to setup modify rDN/name of conflict DN '%s'",
+       DEBUG(0,(__location__ ": Failed to setup modify rDN/name of DN being DRS renamed '%s'",
                 ldb_dn_get_linearized(dn)));
        return LDB_ERR_OPERATIONS_ERROR;
 }
index 996b1f2238618964f5449a02d8832cf635530051..5362ef091c3fe9131c6dabcb2fab7b98ef43d139 100644 (file)
@@ -171,13 +171,13 @@ static int schema_data_add(struct ldb_module *module, struct ldb_request *req)
 
        if (!schema->fsmo.we_are_master && !rodc) {
                ldb_debug_set(ldb, LDB_DEBUG_ERROR,
-                         "schema_data_add: we are not master: reject request\n");
+                         "schema_data_add: we are not master: reject add request\n");
                return LDB_ERR_UNWILLING_TO_PERFORM;
        }
 
        if (!schema->fsmo.update_allowed && !rodc) {
                ldb_debug_set(ldb, LDB_DEBUG_ERROR,
-                         "schema_data_add: updates are not allowed: reject request\n");
+                         "schema_data_add: updates are not allowed: reject add request\n");
                return LDB_ERR_UNWILLING_TO_PERFORM;
        }
 
@@ -333,13 +333,13 @@ static int schema_data_modify(struct ldb_module *module, struct ldb_request *req
 
        if (!schema->fsmo.we_are_master && !rodc) {
                ldb_debug_set(ldb, LDB_DEBUG_ERROR,
-                         "schema_data_modify: we are not master: reject request\n");
+                         "schema_data_modify: we are not master: reject modify request\n");
                return LDB_ERR_UNWILLING_TO_PERFORM;
        }
 
        if (!schema->fsmo.update_allowed && !rodc) {
                ldb_debug_set(ldb, LDB_DEBUG_ERROR,
-                         "schema_data_modify: updates are not allowed: reject request\n");
+                         "schema_data_modify: updates are not allowed: reject modify request\n");
                return LDB_ERR_UNWILLING_TO_PERFORM;
        }