Files
freeipa/ipalib
Florence Blanc-Renaud e08a6de6af DNParam: raise Exception when multiple values provided to a 1-val param
When ipa user-add-certmapdata is called with multiple --subject or
multiple --issuer, the DNParam's _convert_scalar method is called with
a tuple containing all the params and should raise an exception as the
--subject and --issuer are single-value params.

The DNParam _convert_scalar method internally calls the DN init method,
and the DN init method is able to create a DN from a tuple of RDNs.
As such, it won't raise exception if a tuple/list is provided.

Check that _convert_scalar is only provided a single element.

Fixes: https://pagure.io/freeipa/issue/8097
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2019-11-20 11:15:28 +01:00
..
2019-10-21 18:01:32 +11:00
2019-10-21 18:01:32 +11:00
2018-09-27 16:11:18 +02:00
2018-07-14 12:04:19 +02:00
2018-09-27 16:11:18 +02:00
2016-11-24 15:46:40 +01:00
2019-07-01 14:55:29 +02:00
2017-11-21 16:13:28 +01:00
2017-02-17 10:22:07 +01:00
2017-10-25 09:46:41 +02:00
2018-09-27 11:49:04 +02:00
2018-11-07 08:39:42 +01:00
2016-10-20 18:43:37 +02:00
2018-07-05 19:46:42 +02:00
2018-09-27 11:49:04 +02:00
2019-07-17 17:58:58 +03:00