summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-12 19:28:48 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-12 18:55:04 +0000
commit584a2d125ec564ffaa019aba53a2d3b29d4c09c3 (patch)
tree37c226704ad960dcce68207762a8c9d610c46356 /source4
parent5585591b2e6959bebb005966ad72eb7af4bf1760 (diff)
downloadsamba-584a2d125ec564ffaa019aba53a2d3b29d4c09c3.tar.gz
samba-584a2d125ec564ffaa019aba53a2d3b29d4c09c3.tar.bz2
samba-584a2d125ec564ffaa019aba53a2d3b29d4c09c3.zip
s4:repl_meta_data LDB module - convert two debug messages into error messages
These regarding "objectGUID".
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c8
1 files changed, 4 insertions, 4 deletions
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;
}