You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MIT Kerberos PR krb5/krb5#1359 adds support to run KDC locally and only accessible over a UNIX domain socket. When SSSD krb5 locator plugin is in use, it should prefer using UNIX domain socket if it is configured and return KRB5_PLUGIN_NO_HANDLE to allow MIT Kerberos to fall back to use UNIX domain socket.
Right now SSSD krb5 locator plugin has to be explicitly disabled to allow use on IPA servers which enabled UNIX domain socket in their KDC/krb5.conf configuration.
You can use COPR asn/localkdc to test SSSD changes against. This COPR repository provides custom MIT Kerberos build (as well as Samba build to support IAKERB to work with local KDCs but this is unrelated to UNIX domain socket support) and localkdc package that allows easy setup of the local KDC. The latter currently requires SELinux permissive mode (just a warning, as we are working on the policy extensions).
For IPA server, just update krb5 (and samba) packages from the COPR asn/localkdc and add the following in /var/kerberos/krb5kdc/kdc.conf:
thanks for the report. What kind of detection are you envision? Would it be sufficient to check if there is a kdc option for the given realm and check if there is a value starting with /? What about the case if the UNIX domain socket is only one of the values of the kdc option?
I think checking if UNIX domain socket is present as one of the values is enough. It is not necessary to be the first one, though, but consider this:
current locator plugin interface cannot handle non-IP transports anyway (only IPv4 and IPv6, not HTTPS ones, for example)
if UNIX domain socket is configured for this domain, it is local, so it could be preferred. This is particularly true for IPA servers where we do not want to contact other servers at all.
May be instead of the check in locator plugin, SSSD would treat this case as it does currently for krb5_use_kdcinfo=False?
MIT Kerberos PR krb5/krb5#1359 adds support to run KDC locally and only accessible over a UNIX domain socket. When SSSD krb5 locator plugin is in use, it should prefer using UNIX domain socket if it is configured and return KRB5_PLUGIN_NO_HANDLE to allow MIT Kerberos to fall back to use UNIX domain socket.
Right now SSSD krb5 locator plugin has to be explicitly disabled to allow use on IPA servers which enabled UNIX domain socket in their KDC/krb5.conf configuration.
You can use COPR asn/localkdc to test SSSD changes against. This COPR repository provides custom MIT Kerberos build (as well as Samba build to support IAKERB to work with local KDCs but this is unrelated to UNIX domain socket support) and localkdc package that allows easy setup of the local KDC. The latter currently requires SELinux permissive mode (just a warning, as we are working on the policy extensions).
For IPA server, just update krb5 (and samba) packages from the COPR asn/localkdc and add the following in
/var/kerberos/krb5kdc/kdc.conf
:and the following additional line in
/etc/krb5.conf
:The text was updated successfully, but these errors were encountered: