s4-dsdb: give full error message for operational failures
authorAndrew Tridgell <tridge@samba.org>
Sun, 28 Nov 2010 03:32:51 +0000 (14:32 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 29 Nov 2010 07:04:42 +0000 (18:04 +1100)
source4/dsdb/samdb/ldb_modules/operational.c

index ebeec71cabea50a84f2a9b38d92cbe662e221258..d98131113d259df75cabdb39d4d517d256f7a82c 100644 (file)
@@ -672,8 +672,8 @@ static int operational_search_post_process(struct ldb_module *module,
 
 failed:
        ldb_debug_set(ldb, LDB_DEBUG_WARNING,
-                     "operational_search_post_process failed for attribute '%s'",
-                     attrs_from_user[a]);
+                     "operational_search_post_process failed for attribute '%s' - %s",
+                     attrs_from_user[a], ldb_errstring(ldb));
        return -1;
 }