]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print out the data which can't be parsed
authorAlan T. DeKok <aland@freeradius.org>
Sun, 19 Jan 2025 11:24:07 +0000 (06:24 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 19 Jan 2025 11:24:07 +0000 (06:24 -0500)
so the poor user knows what went wrong

src/modules/rlm_sql/sql.c

index 0320b71ad6b2a7eab816d4e9431faaad1ffcc995..11ccd1490eded892d702b060b4080b9760674c15 100644 (file)
@@ -324,7 +324,10 @@ static unlang_action_t sql_get_map_list_resume(rlm_rcode_t *p_result, UNUSED int
                        RETURN_MODULE_FAIL;
                }
                if (map_afrom_fields(map_ctx->ctx, &map, &parent, request, row[2], row[4], row[3], &lhs_rules, &rhs_rules) < 0) {
-                       RPEDEBUG("Error parsing user data from database result");
+                       RPEDEBUG("Data read from SQL cannot be parsed.");
+                       REDEBUG("    %s", row[2]);
+                       REDEBUG("    %s", row[4]);
+                       REDEBUG("    %s", row[3]);
                        RETURN_MODULE_FAIL;
                }
                if (!map->parent) map_list_insert_tail(map_ctx->out, map);