freeipa/ipaserver/install
Petr Viktorin eab334dde8 Handle binascii.Error from base64.b64decode()
In Python 3, the base64.b64decode function raises binascii.Error (a ValueError
subclass) when it finds incorrect padding. In Python 2 it raises TypeError.

Callers should usually handle ValueError; unless they are specifically
concerned with handling base64 padding issues).

In some cases, callers should handle ValueError:
- ipalib.pkcs10 (get_friendlyname, load_certificate_request): callers should
  handle ValueError
- ipalib.x509 (load_certificate*, get_*): callers should handle ValueError

In other cases ValueError is handled:
- ipalib.parameters
- ipapython.ssh
- ipalib.rpc (json_decode_binary - callers already expect ValueError)
- ipaserver.install.ldapupdate

Elsewhere no error handling is done, because values come from trusted
sources, or are pre-validated:
- vault plugin
- ipaserver.install.cainstance
- ipaserver.install.certs
- ipaserver.install.ipa_otptoken_import

Reviewed-By: Tomas Babej <tbabej@redhat.com>
2015-10-22 18:34:46 +02:00
..
plugins topology: manage ca replication agreements 2015-10-15 14:24:33 +02:00
server Allow to install the KRA on a promoted server 2015-10-22 17:53:14 +02:00
__init__.py Remove __all__ specifications in ipaclient and ipaserver.install 2013-09-06 15:42:33 +02:00
adtrustinstance.py ipa-adtrust-install: Print complete SRV records 2015-10-14 12:42:25 +02:00
bindinstance.py Change DNS installer code to use passed in api 2015-10-15 14:24:33 +02:00
ca.py Allow ipa-ca-install to use the new promotion code 2015-10-22 13:40:04 +02:00
cainstance.py Allow to install the KRA on a promoted server 2015-10-22 17:53:14 +02:00
certs.py Implement replica promotion functionality 2015-10-15 14:24:33 +02:00
custodiainstance.py Allow to install the KRA on a promoted server 2015-10-22 17:53:14 +02:00
dns.py DNSSEC: Remove service containers from LDAP after uninstalling 2015-10-22 18:29:44 +02:00
dnskeysyncinstance.py Modernize use of range() 2015-09-01 11:42:01 +02:00
dogtaginstance.py Allow to install the KRA on a promoted server 2015-10-22 17:53:14 +02:00
dsinstance.py fix dsinstance.py:get_domain_level function 2015-10-20 17:34:33 +02:00
httpinstance.py Implement replica promotion functionality 2015-10-15 14:24:33 +02:00
installutils.py Add method to read changes from LDIF 2015-10-15 18:37:52 +02:00
ipa_backup.py Use six.moves.configparser instead of ConfigParser 2015-10-07 10:27:20 +02:00
ipa_cacert_manage.py Handle binascii.Error from base64.b64decode() 2015-10-22 18:34:46 +02:00
ipa_kra_install.py Allow to install the KRA on a promoted server 2015-10-22 17:53:14 +02:00
ipa_ldap_updater.py Alias "unicode" to "str" under Python 3 2015-09-17 11:08:43 +02:00
ipa_otptoken_import.py Alias long to int under Python 3 2015-10-13 14:16:32 +02:00
ipa_replica_prepare.py disable ipa-replica-prepare in non-zero IPA domain level 2015-10-20 18:23:22 +02:00
ipa_restore.py Use six.moves.configparser instead of ConfigParser 2015-10-07 10:27:20 +02:00
ipa_server_certinstall.py Modernize 'except' clauses 2015-08-12 18:17:23 +02:00
ipa_server_upgrade.py Upgrade: Do not show upgrade failed message when IPA is not installed 2015-07-08 12:58:50 +00:00
ipa_winsync_migrate.py winsync-migrate: Properly handle collisions in the names of external groups 2015-09-23 17:05:47 +02:00
kra.py Allow to install the KRA on a promoted server 2015-10-22 17:53:14 +02:00
krainstance.py Allow to install the KRA on a promoted server 2015-10-22 17:53:14 +02:00
krbinstance.py Implement replica promotion functionality 2015-10-15 14:24:33 +02:00
ldapupdate.py Handle binascii.Error from base64.b64decode() 2015-10-22 18:34:46 +02:00
memcacheinstance.py Use absolute imports 2015-08-12 18:17:23 +02:00
ntpinstance.py Use absolute imports 2015-08-12 18:17:23 +02:00
odsexporterinstance.py DNSSEC: store status of services only before first install 2015-10-22 18:26:59 +02:00
opendnssecinstance.py DNSSEC: warn user if DNSSEC key master is not installed 2015-10-22 18:29:44 +02:00
otpdinstance.py Use absolute imports 2015-08-12 18:17:23 +02:00
replication.py Allow to setup the CA when promoting a replica 2015-10-15 14:24:33 +02:00
schemaupdate.py Server Upgrade: fix traceback caused by cidict 2015-09-03 14:11:52 +02:00
service.py DNSSEC: Remove service containers from LDAP after uninstalling 2015-10-22 18:29:44 +02:00
sysupgrade.py Modernize 'except' clauses 2015-08-12 18:17:23 +02:00
upgradeinstance.py Make offline LDIF modify more robust 2015-10-15 18:37:52 +02:00