From 584a2d125ec564ffaa019aba53a2d3b29d4c09c3 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 12 Nov 2010 19:28:48 +0100 Subject: s4:repl_meta_data LDB module - convert two debug messages into error messages These regarding "objectGUID". --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index b2d5292a14..957ca3ccc5 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -770,8 +770,8 @@ static int replmd_add(struct ldb_module *module, struct ldb_request *req) guid_blob = ldb_msg_find_ldb_val(req->op.add.message, "objectGUID"); if ( guid_blob != NULL ) { if( !allow_add_guid ) { - ldb_debug_set(ldb, LDB_DEBUG_ERROR, - "replmd_add: it's not allowed to add an object with objectGUID\n"); + ldb_set_errstring(ldb, + "replmd_add: it's not allowed to add an object with objectGUID!"); talloc_free(ac); return LDB_ERR_UNWILLING_TO_PERFORM; } else { @@ -2169,8 +2169,8 @@ static int replmd_modify(struct ldb_module *module, struct ldb_request *req) guid_blob = ldb_msg_find_ldb_val(req->op.mod.message, "objectGUID"); if ( guid_blob != NULL ) { - ldb_debug_set(ldb, LDB_DEBUG_ERROR, - "replmd_modify: it's not allowed to change the objectGUID\n"); + ldb_set_errstring(ldb, + "replmd_modify: it's not allowed to change the objectGUID!"); talloc_free(ac); return LDB_ERR_CONSTRAINT_VIOLATION; } -- cgit