Red Hat Bugzilla – Bug 1113652
trusted domain logins cannot find KDC for requested realm
Last modified: 2014-10-14 04:10:54 EDT
Created attachment 912445 [details] debug logs for sssd Using a rhel6.6 20140625.n.0 nightly build, the test system is joined to the root AD domain sssdad.com. There are two other trusted domains a child domain child1.sssdad.com and a second tree domain sssdad_tree.com. Logins are successful for users in the sssdad.com domain but fail for users in the other two domains. NSS lookups of user data for all three domains works. Version tested: sssd-1.11.6-1.el6.x86_64 /etc/sssd/sssd.conf [sssd] config_file_version = 2 services = nss, pam domains = sssdad.com [nss] debug_level = 0xFFF0 [pam] debug_level = 0xFFF0 [domain/sssdad.com] debug_level = 0xFFF0 id_provider = ad access_provider = ad ad_domain = sssdad.com cache_credentials = True use_fully_qualified_names = True default_shell = /bin/bash fallback_homedir = /home/%d/%u /etc/krb5.conf was tested with realms and kdc's specified or set to resolve from dns. The srv records _kerberos._tcp.<domainname> and _kerberos._udp.<domainname> resolve correctly to each of the three domain controllers. /var/lib/sss/pubconf/krb5.include.d/domain_realm_sssdad_com [domain_realm] .child1.sssdad.com = CHILD1.SSSDAD.COM child1.sssdad.com = CHILD1.SSSDAD.COM .sssdad_tree.com = SSSDAD_TREE.COM sssdad_tree.com = SSSDAD_TREE.COM Logs have three login attempts using the administrator user for each of the three domains. the sssdad.com administrator login succeeds and the other two administrator logins fail. The following logs are observed in the /var/log/sssd/krb5_child.log and /var/log/messages logs on a failure. (Thu Jun 26 09:25:52 2014) [[sssd[krb5_child[22929]]]] [get_and_save_tgt] (0x0020): 981: [-1765328230][Cannot find KDC for requested realm] (Thu Jun 26 09:25:52 2014) [[sssd[krb5_child[22929]]]] [map_krb5_error] (0x0020): 1043: [-1765328230][Cannot find KDC for requested realm] Jun 26 09:25:52 dhcp129-34 [sssd[krb5_child[22929]]]: Cannot find KDC for requested realm
Jeremy, do you know if the same test works on RHEL-7 ? I wonder if this is a difference between sssd code or maybe libkrb settings. Does your krb5.conf contain dns_lookup_kdc=true? Does it help to set it?
Yes jakub, im seeing rhel7 work as expected using the same config. The earlier c#1 was using the krb5.conf with all realms and kdc's manually configured. Switching to dns resolution in /etc/krb5.conf results in similar errors, but in this case its reporting the realm name in the logs where before it was more generic. [logging] default = FILE:/var/log/krb5libs.log [libdefaults] default_realm = SSSDAD.COM dns_lookup_kdc = true dns_lookup_realm = true ticket_lifetime = 24h renew_lifetime = 7d forwardable = true rdns = false [realms] SSSDAD.COM = { } [domain_realm] sssdad.com = SSSDAD.COM .sssdad.com = SSSDAD.COM (Thu Jun 26 11:09:01 2014) [[sssd[krb5_child[23311]]]] [get_and_save_tgt] (0x0020): 981: [-1765328164][Cannot resolve servers for KDC in realm "CHILD1.SSSDAD.COM"] (Thu Jun 26 11:09:01 2014) [[sssd[krb5_child[23311]]]] [map_krb5_error] (0x0020): 1043: [-1765328164][Cannot resolve servers for KDC in realm "CHILD1.SSSDAD.COM"] (Thu Jun 26 11:10:25 2014) [[sssd[krb5_child[23335]]]] [get_and_save_tgt] (0x0020): 981: [-1765328164][Cannot resolve servers for KDC in realm "SSSDAD_TREE.COM"] (Thu Jun 26 11:10:25 2014) [[sssd[krb5_child[23335]]]] [map_krb5_error] (0x0020): 1043: [-1765328164][Cannot resolve servers for KDC in realm "SSSDAD_TREE.COM"]
Verified with krb5-libs-1.10.3-29.el6 . Almost all tests in the sssd ad forest suite now passes.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2014-1389.html