diff options
author | Milan KubĂk <mkubik@redhat.com> | 2016-07-07 15:35:23 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2016-07-12 10:55:50 +0200 |
commit | 0277a89825cf0d8d1099f537d9eb4ab1020751d2 (patch) | |
tree | 92556572038f445dc2ab3d389f04401d4db69a00 /ipatests/test_xmlrpc | |
parent | d88a12f1f59640bb6593169aa4c7ea204af18cee (diff) | |
download | freeipa-0277a89825cf0d8d1099f537d9eb4ab1020751d2.tar.gz freeipa-0277a89825cf0d8d1099f537d9eb4ab1020751d2.tar.xz freeipa-0277a89825cf0d8d1099f537d9eb4ab1020751d2.zip |
ipatests: remove ipacertbase option from test CSR configuration
The issue was found during test review. If the cert base contains
spaces, openssl req fails.
https://fedorahosted.org/freeipa/ticket/4559
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r-- | ipatests/test_xmlrpc/data/usercert.conf.tmpl | 1 | ||||
-rw-r--r-- | ipatests/test_xmlrpc/test_caacl_profile_enforcement.py | 6 |
2 files changed, 0 insertions, 7 deletions
diff --git a/ipatests/test_xmlrpc/data/usercert.conf.tmpl b/ipatests/test_xmlrpc/data/usercert.conf.tmpl index 22804be85..7a736a80e 100644 --- a/ipatests/test_xmlrpc/data/usercert.conf.tmpl +++ b/ipatests/test_xmlrpc/data/usercert.conf.tmpl @@ -7,7 +7,6 @@ req_extensions = exts [ dn ] commonName = "{username}" -{ipacertbase} [ exts ] subjectAltName=email:{username}@{ipadomain} diff --git a/ipatests/test_xmlrpc/test_caacl_profile_enforcement.py b/ipatests/test_xmlrpc/test_caacl_profile_enforcement.py index a70d81d88..a73e84539 100644 --- a/ipatests/test_xmlrpc/test_caacl_profile_enforcement.py +++ b/ipatests/test_xmlrpc/test_caacl_profile_enforcement.py @@ -30,18 +30,12 @@ CERT_OPENSSL_CONFIG_TEMPLATE = os.path.join(BASE_DIR, 'data/usercert.conf.tmpl') CERT_RSA_PRIVATE_KEY_PATH = os.path.join(BASE_DIR, 'data/usercert-priv-key.pem') -CERT_SUBJECT_BASE = ( - api.Command.config_show() - ['result']['ipacertificatesubjectbase'][0] -) - SMIME_USER_INIT_PW = u'Change123' SMIME_USER_PW = u'Secret123' def generate_user_csr(username, domain=None): csr_values = dict( - ipacertbase=CERT_SUBJECT_BASE, ipadomain=domain if domain else api.env.domain, username=username) |