summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-12-05 17:19:44 +0200
committerKamen Mazdrashki <kamenim@samba.org>2010-12-06 00:18:48 +0200
commit05e77f52d701b5f8b87de7c89eda6f4076722e24 (patch)
tree1d46df73403b7fc85c3eca670b2ab3f50a7ba6b6 /source4/dsdb/samdb/ldb_modules
parentbe0a2a68914aa9cecb9d32361750b2f50af6cc06 (diff)
downloadsamba-05e77f52d701b5f8b87de7c89eda6f4076722e24.tar.gz
samba-05e77f52d701b5f8b87de7c89eda6f4076722e24.tar.bz2
samba-05e77f52d701b5f8b87de7c89eda6f4076722e24.zip
s4-linked_attributes: Give more info where an error occured
We have exact same error messages at different locations and it is little bit hard to tell where the error came from from the log.
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/linked_attributes.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/linked_attributes.c b/source4/dsdb/samdb/ldb_modules/linked_attributes.c
index 60455251e3..ebbc7c609c 100644
--- a/source4/dsdb/samdb/ldb_modules/linked_attributes.c
+++ b/source4/dsdb/samdb/ldb_modules/linked_attributes.c
@@ -223,7 +223,9 @@ static int linked_attributes_add(struct ldb_module *module, struct ldb_request *
= dsdb_attribute_by_lDAPDisplayName(ac->schema, el->name);
if (!schema_attr) {
ldb_asprintf_errstring(ldb,
- "attribute %s is not a valid attribute in schema", el->name);
+ "%s: attribute %s is not a valid attribute in schema",
+ __FUNCTION__,
+ el->name);
return LDB_ERR_OBJECT_CLASS_VIOLATION;
}
/* We have a valid attribute, now find out if it is a forward link */
@@ -325,7 +327,8 @@ static int la_mod_search_callback(struct ldb_request *req, struct ldb_reply *are
schema_attr = dsdb_attribute_by_lDAPDisplayName(ac->schema, rc->el[i].name);
if (!schema_attr) {
ldb_asprintf_errstring(ldb,
- "attribute %s is not a valid attribute in schema",
+ "%s: attribute %s is not a valid attribute in schema",
+ __FUNCTION__,
rc->el[i].name);
talloc_free(ares);
return ldb_module_done(ac->req, NULL, NULL,
@@ -454,7 +457,9 @@ static int linked_attributes_modify(struct ldb_module *module, struct ldb_reques
= dsdb_attribute_by_lDAPDisplayName(ac->schema, el->name);
if (!schema_attr) {
ldb_asprintf_errstring(ldb,
- "attribute %s is not a valid attribute in schema", el->name);
+ "%s: attribute %s is not a valid attribute in schema",
+ __FUNCTION__,
+ el->name);
return LDB_ERR_OBJECT_CLASS_VIOLATION;
}
/* We have a valid attribute, now find out if it is a forward link