dsdb: Make log message more clear
authorAndrew Bartlett <abartlet@samba.org>
Mon, 11 Aug 2014 03:53:44 +0000 (15:53 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 31 Aug 2014 22:36:42 +0000 (00:36 +0200)
Change-Id: Ibf3c55748e755d2f6dae57293bfde11cdf7ba3ae
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-By: Jelmer Vernooij <jelmer@samba.org>
source4/dsdb/common/util.c

index 18f16f698149e736232e51a060d5b513015ea730..409191d12b0f271ca730065129ca6a2ed5c16d6c 100644 (file)
@@ -4285,8 +4285,12 @@ int dsdb_validate_dsa_guid(struct ldb_context *ldb,
 
        account_dn = ldb_msg_find_attr_as_dn(ldb, tmp_ctx, msg, "serverReference");
        if (account_dn == NULL) {
-               DEBUG(1,(__location__ ": Failed to find account_dn for DSA with objectGUID %s, sid %s\n",
-                        GUID_string(tmp_ctx, dsa_guid), dom_sid_string(tmp_ctx, sid)));
+               DEBUG(1,(__location__ ": Failed to find account dn "
+                        "(serverReference) for %s, parent of DSA with "
+                        "objectGUID %s, sid %s\n",
+                        ldb_dn_get_linearized(msg->dn),
+                        GUID_string(tmp_ctx, dsa_guid),
+                        dom_sid_string(tmp_ctx, sid)));
                talloc_free(tmp_ctx);
                return ldb_operr(ldb);
        }