Linux – Configuring kerberos/ntlm single signon with apache and sssd

apache-2.4centos7linuxmod-auth-kerbsingle-sign-on

What is the proper/cleanest way of setting up apache to support SSO using NTLM, or preferably Kerberos, with CentOS7 running sssd connected to an Active Directory domain controller?

With realmd, joining the domain is now real easy, but I was unable to get apache to work in an evening. It seems that google is not well seeded with answers on this topic as of yet.

I have gotten SSO working with SSH using gssapi with putty.
All I have done after a fresh install of CentOS 7 is run realm join --user=admin@domain.fqdn --computer-ou=OU=Servers and add default_domain_suffix to sssd.conf.

Best Answer

You need to:

  1. Create a HTTP/hostname.fqdn@REALM.TEST service in FreeIPA
  2. Download HTTP service keytab on the web server with ipa-getkeytab and make it accessible to (only) apache
  3. Configure apache and mod_auth_kerb to secure some URI with Kerberos

See this example or this example. For more advanced integration between your Web service and SSSD, check Web_App_Authentication article on FreeIPA.org.

Related Topic