freeipa/ipatests
Fraser Tweedale 852618fd65 csrgen: fix when attribute shortname is lower case
OpenSSL requires attribute short names ("CN", "O", etc) to be in
upper case, otherwise it fails to add the attribute.  This can be
triggered when FreeIPA has been installed with --subject-base
containing a lower-case attribute shortname (e.g.
--subject-base="o=Red Hat").

Explicitly convert the attribute type string to an OID
(ASN1_OBJECT *).  If that fails, upper-case the type string and try
again.

Add some tests for the required behaviour.

Fixes: https://pagure.io/freeipa/issue/7496
Reviewed-By: Christian Heimes <cheimes@redhat.com>
2018-04-25 14:41:12 +02:00
..
man Replace ntpd with chronyd in installation 2018-04-09 11:00:02 -04:00
pytest_plugins Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_cmdline Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_install Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_integration Fix trust tests for Posix Support 2018-04-25 11:52:32 +02:00
test_ipaclient csrgen: fix when attribute shortname is lower case 2018-04-25 14:41:12 +02:00
test_ipalib Generate same API.txt under Python 2 and 3 2018-02-15 09:41:30 +01:00
test_ipaplatform Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_ipapython Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_ipaserver Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_webui Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_xmlrpc Allow dot as a valid character in an selinux identity name 2018-04-25 08:23:47 +02:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py Make fasttest pass without ~/.ipa/default.conf 2018-03-16 11:50:41 +01:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py Have all the scripts run in python 3 by default 2018-02-15 18:43:12 +01:00
ipa-run-tests Fix compatibility with latest pytest 2018-03-23 13:08:39 +01:00
ipa-test-config Have all the scripts run in python 3 by default 2018-02-15 18:43:12 +01:00
ipa-test-task Have all the scripts run in python 3 by default 2018-02-15 18:43:12 +01:00
Makefile.am Build: fix distribution of static files for web UI 2016-11-09 13:08:32 +01:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Add mocked test for named crypto policy update 2018-02-20 17:01:52 +01:00
test_util.py Silence pytest.yield_fixture deprecation warning 2017-05-30 12:28:51 +02:00
util.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00