summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-10-27 19:48:19 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-11-04 16:06:57 +1100
commit169f90640864fab9fcb10665c79879b161a56329 (patch)
tree6690057c2040a11b38d01b2ca490f853ce662b8b /source4/dsdb
parent9381a78c391bcccd5eddc159a5d3a3e12d19fde3 (diff)
downloadsamba-169f90640864fab9fcb10665c79879b161a56329.tar.gz
samba-169f90640864fab9fcb10665c79879b161a56329.tar.bz2
samba-169f90640864fab9fcb10665c79879b161a56329.zip
Give a better error when ldb_dn_from_ldb_val fails
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/linked_attributes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/linked_attributes.c b/source4/dsdb/samdb/ldb_modules/linked_attributes.c
index a54a7d6472..dd199c0137 100644
--- a/source4/dsdb/samdb/ldb_modules/linked_attributes.c
+++ b/source4/dsdb/samdb/ldb_modules/linked_attributes.c
@@ -87,7 +87,9 @@ static int la_store_op(struct la_context *ac,
op_dn = ldb_dn_from_ldb_val(ac, ac->module->ldb, dn);
if (!op_dn) {
- return LDB_ERR_OPERATIONS_ERROR;
+ ldb_asprintf_errstring(ac->module->ldb,
+ "could not parse attribute as a DN");
+ return LDB_ERR_INVALID_DN_SYNTAX;
}
/* optimize out del - add operations that would end up