diff options
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/common/gendb.c | 4 |
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); |