freeipa/ipaserver/install
Martin Basti e8f2a415b3 Fix PKCS11 helper
Slots in HSM are not assigned statically, we have to chose proper
slot from token label.

Softhsm i2.2.0 changed this behavior and now slots can change over
time (it is allowed by pkcs11 standard).

Changelog:
* created method get_slot() that returns slot number from
  used label
* replaces usage of slot in __init__ method of P11_Helper
  with label
* slot is dynamically detected from token label before
  session is opened
* pkcs11-util --init-token now uses '--free' instead '--slot'
  which uses first free slot (we don't care about slot numbers
  anymore)

https://pagure.io/freeipa/issue/6692

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
2017-04-12 09:54:10 +02:00
..
plugins Upgrade: add gidnumber to trusted domain entry 2017-04-07 12:38:35 +02:00
server Create system users for FreeIPA services during package installation 2017-04-11 17:51:49 +02:00
__init__.py Remove __all__ specifications in ipaclient and ipaserver.install 2013-09-06 15:42:33 +02:00
adtrust.py Remove surplus 'the' in output of ipa-adtrust-install 2017-04-11 13:06:13 +02:00
adtrustinstance.py adtrust: make sure that runtime hostname result is consistent with the configuration 2017-03-30 13:17:21 +02:00
bindinstance.py py3: create DNS zonefile: use textual mode 2017-02-10 14:03:04 +01:00
ca.py install: re-introduce option groups 2017-03-13 10:12:40 +01:00
cainstance.py Create system users for FreeIPA services during package installation 2017-04-11 17:51:49 +02:00
certs.py Remove publish_ca_cert() method from NSSDatabase 2017-04-03 13:06:29 +00:00
conncheck.py install: introduce installer class hierarchy 2016-11-11 12:17:25 +01:00
custodiainstance.py Moving ipaCert from HTTPD_ALIAS_DIR 2017-03-01 09:43:41 +00:00
dns.py install: re-introduce option groups 2017-03-13 10:12:40 +01:00
dnskeysyncinstance.py Fix PKCS11 helper 2017-04-12 09:54:10 +02:00
dogtag.py install: introduce installer class hierarchy 2016-11-11 12:17:25 +01:00
dogtaginstance.py Use https to get security domain from Dogtag 2017-03-03 13:33:51 +01:00
dsinstance.py Create system users for FreeIPA services during package installation 2017-04-11 17:51:49 +02:00
httpinstance.py Create system users for FreeIPA services during package installation 2017-04-11 17:51:49 +02:00
installutils.py Create system users for FreeIPA services during package installation 2017-04-11 17:51:49 +02:00
ipa_backup.py Backup CA cert from kerberos folder 2017-03-28 13:16:35 +02:00
ipa_cacert_manage.py scripts, tests: explicitly set confdir in the rest of server code 2017-02-22 08:07:48 +00:00
ipa_kra_install.py Fix Python 3 pylint errors 2017-03-15 19:11:32 +01:00
ipa_ldap_updater.py Set explicit confdir option for global contexts 2016-12-02 09:14:35 +01:00
ipa_otptoken_import.py Finish port to PyCA cryptography 2017-03-01 12:51:50 +01:00
ipa_replica_install.py install: re-introduce option groups 2017-03-13 10:12:40 +01:00
ipa_replica_prepare.py replica prepare: fix wrong IPA CA nickname in replica file 2017-03-22 15:56:54 +01:00
ipa_restore.py Create system users for FreeIPA services during package installation 2017-04-11 17:51:49 +02:00
ipa_server_certinstall.py scripts, tests: explicitly set confdir in the rest of server code 2017-02-22 08:07:48 +00:00
ipa_server_install.py install: re-introduce option groups 2017-03-13 10:12:40 +01:00
ipa_server_upgrade.py Set explicit confdir option for global contexts 2016-12-02 09:14:35 +01:00
ipa_winsync_migrate.py Set explicit confdir option for global contexts 2016-12-02 09:14:35 +01:00
kra.py Don't allow standalone KRA uninstalls 2017-03-13 16:27:23 +01:00
krainstance.py Add pki_pin only when needed 2017-04-05 10:12:53 +02:00
krbinstance.py Always check and create anonymous principal during KDC install 2017-03-30 15:30:56 +02:00
ldapupdate.py py3: ldapupdate: fix logging str(bytes) issue 2017-02-08 18:09:49 +01:00
ntpinstance.py installer: Stop adding distro-specific NTP servers into ntp.conf 2017-01-05 10:45:30 +01:00
odsexporterinstance.py services: replace admin_conn with api.Backend.ldap2 2016-11-22 16:17:27 +01:00
opendnssecinstance.py Fix PKCS11 helper 2017-04-12 09:54:10 +02:00
otpdinstance.py Enable pylint missing-final-newline check 2015-12-23 07:59:22 +01:00
replication.py Make wait_for_entry raise exceptions 2017-03-15 16:39:39 +01:00
schemaupdate.py Remove unused variables in the code 2016-09-27 13:35:58 +02:00
service.py installer: update time estimates 2017-03-10 15:46:34 +01:00
sysupgrade.py ipapython: move certmonger and sysrestore to ipalib.install 2016-11-29 14:50:51 +01:00
upgradeinstance.py installer: update time estimates 2017-03-10 15:46:34 +01:00