#8073 Backup/restore does not restore /etc/pkcs11/modules/softhsm2.module
Closed: fixed 5 years ago by abbra. Opened 5 years ago by frenaud.

Issue

The backup / restore operation does not restore the file /etc/pkcs11/modules/softhsm2.module.

Steps to Reproduce

  1. install ipa server, the file /etc/pkcs11/modules/softhsm2.module gets created in order to disable global p11-kit configuration for NSS
  2. perform a full backup with ipa-backup
  3. uninstall the server with ipa-server-install --uninstall -U
  4. restore with ipa-backup /path/to/backup
  5. The file /etc/pkcs11/modules/softhsm2.module hasn't been updated (if it did not exist prior to ipa-backup, it's not created, and if there was a file with different content, the content is not overwritten).

Actual behavior

ipa-backup does not backup the content of /etc/pkcs11/modules/softhsm2.module
ipa-restore does not restore the content of /etc/pkcs11/modules/softhsm2.module

Expected behavior

ipa-backup should backup the file, and ipa-restore should restore the file.

Version/Release/Distribution

master branch from 2019 Sep 19


As the file was introduced in ipa 4.8 release with commit 74e0908 + backported to ipa-4-7 with ae5831b, the fix is needed on master, ipa-4-8 and ipa-4-7 branches only.

Metadata Update from @frenaud:
- Issue set to the milestone: FreeIPA 4.8.2

5 years ago

Metadata Update from @frenaud:
- Issue assigned to frenaud

5 years ago

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3685

5 years ago

master:

  • 055ea25 ipa-backup: backup the PKCS module config files setup by IPA
  • 2919237 ipatests: ensure that backup/restore restores pkcs 11 modules config file

Metadata Update from @abbra:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

5 years ago

ipa-4-8:

  • ebec637 ipa-backup: backup the PKCS module config files setup by IPA
  • 71c09ad ipatests: ensure that backup/restore restores pkcs 11 modules config file

ipa-4-7:

  • 5bf6a39 ipa-backup: backup the PKCS module config files setup by IPA
  • a716865 ipatests: ensure that backup/restore restores pkcs 11 modules config file

Log in to comment on this ticket.

Metadata