Open TJM opened 6 years ago
If the cert is already added to the kdb file, but with a different name, the add will fail like so:
Error: /Stage[main]/Aixldap::Configure/Exec[trust-adldap-cert]: Failed to call refresh: 'gsk8capicmd_64 -cert -add -db '/usr/lib/security/adldap.kdb' -pw 'xxxxxx' -type cms -file '/usr/lib/security/adldap.crt' -trust enable -format ascii -label 'adldap'' returned 24 instead of one of [0] Error: /Stage[main]/Aixldap::Configure/Exec[trust-adldap-cert]: 'gsk8capicmd_64 -cert -add -db '/usr/lib/security/adldap.kdb' -pw 'xxxxxx' -type cms -file '/usr/lib/security/adldap.crt' -trust enable -format ascii -label 'adldap'' returned 24 instead of one of [0]
Workaround: rm /usr/lib/security/adldap.*
rm /usr/lib/security/adldap.*
This would probably be something best handled by a proper type/provider, rather than random "exec(s)" ... However I do not currently have the time to work on that. I welcome PR's :)
~tommy
If the cert is already added to the kdb file, but with a different name, the add will fail like so:
Workaround:
rm /usr/lib/security/adldap.*