Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pki_pin only when needed #687

Closed
wants to merge 1 commit into from
Closed

Conversation

stlaz
Copy link
Contributor

@stlaz stlaz commented Apr 3, 2017

If both the pki-tomcat NSS database and its password.conf have been
created, don't try to override the password.conf file.

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

pki_pin = ipautil.ipa_generate_password()
config.set("CA", "pki_pin", pki_pin)
if not (os.path.exists(paths.PKI_TOMCAT_ALIAS_DIR) and
os.path.exists(paths.PKI_TOMCAT_PASSWORD_CONF)):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason you are using exists instead of isdir and isfile?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason, I can update that, thanks.

If both the pki-tomcat NSS database and its password.conf have been
created, don't try to override the password.conf file.

https://pagure.io/freeipa/issue/6839
@tkrizek
Copy link
Contributor

tkrizek commented Apr 5, 2017

Replica installation with CA and KRA seems to work fine now.

@tkrizek tkrizek added the ack Pull Request approved, can be merged label Apr 5, 2017
@tkrizek
Copy link
Contributor

tkrizek commented Apr 5, 2017

master:

  • 1aa77fe Add pki_pin only when needed

ipa-4-5:

  • f53c76b Add pki_pin only when needed

@tkrizek tkrizek added the pushed Pull Request has already been pushed label Apr 5, 2017
@tkrizek tkrizek closed this Apr 5, 2017
@stlaz stlaz deleted the replica_cakra branch July 7, 2017 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants