freeipa / freeipa-community-portal

[ABANDONED] FreeIPA Community Portal extension
GNU General Public License v3.0
4 stars 6 forks source link

Simplify GSSAPI authentication #12

Closed tiran closed 8 years ago

tiran commented 8 years ago

Kerberos / GSSAPI authentication can be simplified a lot with a single env var:

os.environ['KRB5_CLIENT_KTNAME'] = 'FILE:/etc/ipa/portal.keytab'

With a client keytab and the env var, GSSAPI and ipalib will automatically pick up and use the keytab for authentication. That's all! Even the principal is looked up from the client keytab.

The path to the portal keytab should be configurable in the config file.