freeipa/daemons/dnssec
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
..
ipa-dnskeysync-replica Fix PKCS11 helper 2017-04-12 09:54:10 +02:00
ipa-dnskeysyncd Set explicit confdir option for global contexts 2016-12-02 09:14:35 +01:00
ipa-dnskeysyncd.service.in configure: Use ODS_USER and NAMED_GROUP in daemons/dnssec/*.service.in 2017-03-22 13:39:18 +01:00
ipa-ods-exporter Fix PKCS11 helper 2017-04-12 09:54:10 +02:00
ipa-ods-exporter.service.in configure: Use ODS_USER and NAMED_GROUP in daemons/dnssec/*.service.in 2017-03-22 13:39:18 +01:00
ipa-ods-exporter.socket.in Build: fix path in ipa-ods-exporter.socket unit file 2016-11-21 17:24:58 +01:00
Makefile.am configure: Use ODS_USER and NAMED_GROUP in daemons/dnssec/*.service.in 2017-03-22 13:39:18 +01:00