s4-rpc_server/drsuapi: Print ldb error showing why we failed to perform the access...
authorAndrew Bartlett <abartlet@samba.org>
Sun, 8 Sep 2013 21:57:27 +0000 (09:57 +1200)
committerStefan Metzmacher <metze@samba.org>
Mon, 16 Sep 2013 17:37:20 +0000 (19:37 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/rpc_server/drsuapi/drsutil.c

index d3b8d23b708d1240756275070115c1b5db5ac6e9..2762a4e5cc2701d76f69f0b737f78e0dc0b5a873 100644 (file)
@@ -170,7 +170,7 @@ static WERROR drs_security_access_check_log(struct ldb_context *sam_ctx,
                security_token_debug(2, 0, token);
                return WERR_DS_DRA_ACCESS_DENIED;
        } else if (ret != LDB_SUCCESS) {
-               DEBUG(1,("Failed to perform access check on %s\n", ldb_dn_get_linearized(dn)));
+               DEBUG(1,("Failed to perform access check on %s: %s\n", ldb_dn_get_linearized(dn), ldb_strerror(ret)));
                return WERR_DS_DRA_INTERNAL_ERROR;
        }
        return WERR_OK;