summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-07-15 10:08:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:38 -0500
commite3e5fb088942b07a402a2ca267bb9bc39e8addbe (patch)
tree0962700985ad884143e519b82ea339e10647b522 /source4
parent90fbb2d01f203b3243856242b88c60a3e5fcf286 (diff)
downloadsamba-e3e5fb088942b07a402a2ca267bb9bc39e8addbe.tar.gz
samba-e3e5fb088942b07a402a2ca267bb9bc39e8addbe.tar.bz2
samba-e3e5fb088942b07a402a2ca267bb9bc39e8addbe.zip
r1519: show the ldb_errstring() value in the log for failed ldb calls
(This used to be commit 0c5a5632a8584e55a1013da634a279c6b3a9e085)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/common/gendb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/rpc_server/common/gendb.c b/source4/rpc_server/common/gendb.c
index c9e195db8c..76e9f72bb1 100644
--- a/source4/rpc_server/common/gendb.c
+++ b/source4/rpc_server/common/gendb.c
@@ -46,7 +46,9 @@ int gendb_search_v(struct ldb_context *ldb,
count = ldb_search(ldb, basedn, LDB_SCOPE_SUBTREE, expr, attrs, res);
- DEBUG(4,("gendb_search_v: %s %s -> %d\n", basedn?basedn:"NULL", expr, count));
+ DEBUG(4,("gendb_search_v: %s %s -> %d (%s)\n",
+ basedn?basedn:"NULL", expr, count,
+ count==-1?ldb_errstring(ldb):"OK"));
free(expr);