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

Make api.env.nss_dir relative to api.env.confdir #180

Closed
wants to merge 1 commit into from

Conversation

tiran
Copy link
Member

@tiran tiran commented Oct 24, 2016

api.env.nss_dir is no longer hard-coded to paths.IPA_NSSDB_DIR. Instead
the path is calculated relatively to api.env.confdir. The default value
is still /etc/ipa/nssdb. The change makes it a bit easier to run
FreeIPA's API with a custom configuration directory.

See https://fedorahosted.org/freeipa/ticket/6386

Signed-off-by: Christian Heimes cheimes@redhat.com

@tiran
Copy link
Member Author

tiran commented Oct 25, 2016

The improvement depends on PR #143.

api.env.nss_dir is no longer hard-coded to paths.IPA_NSSDB_DIR. Instead
the path is calculated relatively to api.env.confdir. The default value
is still /etc/ipa/nssdb. The change makes it a bit easier to run
FreeIPA's API with a custom configuration directory.

See https://fedorahosted.org/freeipa/ticket/6386

Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tkrizek
Copy link
Contributor

tkrizek commented Nov 10, 2016

I've discussed this change with @jcholast. He doesn't like this change unless we use nss_dir everywhere. However, like you mentioned in #143, that might not be easily achievable. I'm going to wait for his opinion on this.

@HonzaCholasta
Copy link
Contributor

See my comment on #143.

@tiran
Copy link
Member Author

tiran commented Nov 15, 2016

#143 has been merged. I made sure that consumers of hard-coded NSS directory will fail in the presence of IPA_CONFDIR.

@tkrizek tkrizek self-assigned this Nov 16, 2016
@tkrizek
Copy link
Contributor

tkrizek commented Nov 16, 2016

ACK. The only issue is the ticket is already closed.

@MartinBasti MartinBasti added ack Pull Request approved, can be merged pushed Pull Request has already been pushed labels Nov 16, 2016
@MartinBasti
Copy link
Contributor

@tiran tiran deleted the nssdb_in_confdir branch November 16, 2016 13:45
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
4 participants