#8206 Add checks to prevent assigning authentication indicators to internal IPA services
Closed: fixed by rcritten. Opened by abbra.

Authentication indicators currently should not be enforced against internal IPA services because not all users of those services can produce Kerberos tickets with required authentication indicators. Enforcing the indicators will lead to a broken FreeIPA deployment for such services. Thus, we should add a logic that prevents such broken setup.

host/..., ldap/.., HTTP/.., and 'cifs/..` principals on IPA masters should not allow setting any authentication indicators as of the moment.

In Active Directory infrastructure all services running on the machine are aliases of the machine account (represented with host/... service principal). It means they all have the same Kerberos keys. In FreeIPA there is no strong aliasing between the services running on a host; host/... and cifs/... keys can be different. However, host/... service principal on any IPA system running Samba plays important role for DCE RPC calls authenticated with the help of Kerberos because DCE RPC clients will use host/... key to encrypt a request and DCE RPC server will have to use own host/.. keys to decrypt that request. It means DCE RPC clients will attempt to obtain a service ticket to host/.. on a target DCE RPC server automatically. Assigning an authentication indicator to it will prevent this operation, rendering SMB (and DCE RPC) services impossible to use.

This means that for IPA clients which have Samba services enabled (have cifs/... service principal), there should also be not possible to assign authentication indicator to host/... and cifs/.. principals on the hosts.

We need to figure out if using hardened authentication indicator could be permitted.


https://github.com/freeipa/freeipa/pull/5617

Metadata Update from @antorres:
- Issue assigned to antorres

master:

  • 0bdbf11442024715e405b8f1fc27eb2fce4f4a9c Add checks to prevent adding auth indicators to internal IPA services
  • da72a576586f40d3378a3cb376ba0af510c74b86 ipatests: ensure auth indicators can't be added to internal IPA services

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1979625

Issue linked to Bugzilla: Bug 1979625

Issue linked to Bugzilla: Bug 1979629

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1979625, https://bugzilla.redhat.com/show_bug.cgi?id=1979629 (was: https://bugzilla.redhat.com/show_bug.cgi?id=1979625)

ipa-4-9:

  • a5d2857297cfcf87ed8973df96e89ebcef22850d Add checks to prevent adding auth indicators to internal IPA services
  • 28484c3dee225662e41acc691bfe6b1c1cee99c8 ipatests: ensure auth indicators can't be added to internal IPA services

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

An exception is raised if an authentication indicator is included when a host is added because the Kerberos principal can't be determined. See BZ for stack trace.

Metadata Update from @rcritten:
- Issue status updated to: Open (was: Closed)

https://github.com/freeipa/freeipa/pull/5889

master:

  • bd0d43745072ec7976207c231cba8411efb41e17 Fall back to krbprincipalname when validating host auth indicators

ipa-4-9:

  • 8ad535b618d60fa016061212ff85d0ad28ccae59 Fall back to krbprincipalname when validating host auth indicators

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata