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

Reconfigure Kerberos library config as the last step of KDC install #564

Closed
wants to merge 1 commit into from

Conversation

martbab
Copy link
Contributor

@martbab martbab commented Mar 9, 2017

During KDC installation, we overwrite the existing /etc/krb5.conf file
from client version to use only local KDC for client requests. However,
this means that services such as certmonger may try to kinit against
local KDC before it is up and running, resulting in subtle but serious
bugs.

The file should be updated only when KDC is set up properly and running.

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

@abbra
Copy link
Contributor

abbra commented Mar 9, 2017

LGTM.

During KDC installation, we overwrite the existing `/etc/krb5.conf` file
from client version to use only local KDC for client requests. However,
this means that services such as certmonger may try to kinit against
local KDC before it is up and running, resulting in subtle but serious
bugs.

The file should be updated only when KDC is set up properly and running.

https://pagure.io/freeipa/issue/6739
@simo5
Copy link
Contributor

simo5 commented Mar 9, 2017

I do not think this is the correct fix/bug
What we want to do is to change kdc.conf to require certs only after we have installed them.
The KDC is already properly configured and running otherwise but fails to start on replica because certs are not there. We need it to not fail, not to allow certmonger to go oevr the network to other servers

@martbab
Copy link
Contributor Author

martbab commented Mar 9, 2017

But the certs are requested by certmonger on replica which tries to kinit against the very same KDC that is being configured and is not running yet because it was told so by the Kerberos config that was updated before starting KDC.

@abbra
Copy link
Contributor

abbra commented Mar 9, 2017

@simo5 KDC starts just fine with missing certs. It disables PKINIT if certs aren't reachable. However, if KDC is not running at all, certmonger cannot complete the cert request at all.

@simo5
Copy link
Contributor

simo5 commented Mar 9, 2017

@martbab @abbra see the pull request in #567

@martbab
Copy link
Contributor Author

martbab commented Mar 10, 2017

Ah right this won't work because on master there would be no library configuration for KDC deployment (realm, etc) that's why server install in travis crashed. Closing this PR as #567 superseds it.

@martbab martbab closed this Mar 10, 2017
@martbab martbab added the rejected Pull Request has been rejected label Mar 10, 2017
@martbab martbab deleted the replica-krb5-install-fix branch March 10, 2017 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rejected Pull Request has been rejected
Projects
None yet
3 participants