FreeIPA - Certificate Fun

Fixing web login for FreeIPA

There are some scripts on GitHub which automate renewing certs with let's encrypt and adding them to FreeIPA. This means no more browser warnings about self-signed certs.

Additional Setup Notes:

sudo semanage fcontext --add --type bin_t /var/local/lib/ipa/renew-le.sh
sudo chcon -Rv -u system_u -t bin_t /var/local/lib/ipa/renew-le.sh
sudo restorecon -R -v /var/local/lib/ipa/renew-le.sh

Firefox auto-login

From ipa clients who have kerberos tickets, it makes sense to allow logging into the web interface using that kerberos ticket. To do so:

(source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html/deployment_guide/sso-config-firefox)

Enabling for all users

It is also possible to enable trusting your domain for all users. The basic process would be to add the following to ".js" file in /usr/lib/firefox/defaults/pref/:

pref("network.negotiate-auth.trusted-uris", ".example.com");