]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Print CAS on provider list too long
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 8 Jun 2026 15:39:01 +0000 (09:39 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 8 Jun 2026 15:39:01 +0000 (09:39 -0600)
Was missing the SHOULD:

> Relying Party implementations are RECOMMENDED to impose an upper
> bound on the number of Provider ASes for a given CAS.
> (...) an error SHOULD be logged in the
> local system, indicating the CAS for which the threshold was
> exceeded.

src/object/aspa.c

index 2589f7bde5d432ef3106f5a39ae41acb2d9cab2a..77613fc90e691263d6e8d8ac1853b0d63c19720a 100644 (file)
@@ -89,8 +89,8 @@ parse_providers(ProviderASSet_t *set, struct aspa *aspa)
 
        limit = config_get_max_aspa_providers();
        if (set->list.count > limit)
-               return pr_val_err("Too many providers: %d > %u",
-                   set->list.count, limit);
+               return pr_val_err("customerASID %u has too many providers: %d > %u",
+                   aspa->customer, set->list.count, limit);
 
        providers = pcalloc(set->list.count, sizeof(uint32_t));
        for (i = 0; i < set->list.count; i++) {