From 42dfa71ef5d08b500e911e2ba54dba0b1b4a4599 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sun, 5 Sep 2010 02:56:30 +0400 Subject: dsdb: make the ATTRIBUTE NOT FOUND more clear --- source4/dsdb/common/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/dsdb/common/util.c') diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index fc117b9fa3..c409adbbe3 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1644,6 +1644,8 @@ int samdb_reference_dn(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, struct ldb_ *dn = ldb_msg_find_attr_as_dn(ldb, mem_ctx, res->msgs[0], attribute); if (!*dn) { talloc_free(res); + ldb_asprintf_errstring(ldb, "Cannot find dn of attribute %s of %s", attribute, + ldb_dn_get_linearized(base)); return LDB_ERR_NO_SUCH_ATTRIBUTE; } -- cgit