Open staeglis opened 11 months ago
Hi,
can you share the other SSSD logs as well and your sssd.conf
?
bye, Sumit
Sure.
Domain log:
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [sbus_dispatch] (0x4000): Dispatching.
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [sbus_dispatch] (0x4000): Dispatching.
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [sbus_method_handler] (0x2000): Received D-Bus method sssd.dataprovider.hostHandler on /sssd
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [sbus_senders_lookup] (0x2000): Looking for identity of sender [sssd.ssh]
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [dp_attach_req] (0x0400): [RID#1500] DP Request [HostID #1500]: REQ_TRACE: New request. [sssd.ssh CID #5] Flags [0000].
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [dp_attach_req] (0x0400): [RID#1500] Number of active DP request: 1
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [dp_find_method] (0x0100): [RID#1500] Target [hostid] is not initialized
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [_dp_req_recv] (0x0400): DP Request [HostID #1500]: Receiving request data.
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [dp_req_destructor] (0x0400): DP Request [HostID #1500]: Request removed.
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [dp_req_destructor] (0x0400): Number of active DP request: 0
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [sbus_issue_request_done] (0x0200): sssd.dataprovider.hostHandler: Error [1432158215]: DP target is not configured
(2024-01-12 12:55:33): [be[DOMAIN.TEST]] [sbus_dispatch] (0x4000): Dispatching.
sssd.conf:
[autofs]
[sudo]
[sssd]
config_file_version = 2
domains = DOMAIN.TEST
[pam]
offline_credentials_expiration = 0
[domain/DOMAIN.TEST]
debug_level = 9
id_provider = ad
access_provider = ad
cache_credentials = true
ldap_id_mapping = False
ad_gpo_access_control = permissive
autofs_provider = ad
ldap_autofs_search_base = ou=automount,dc=domain,dc=test
ldap_user_ssh_public_key = altSecurityIdentities
ldap_host_ssh_public_key = altSecurityIdentities
Please try enabling the ssh service in SSSD by adding the following line to the [sssd]
section of the configuration:
services = ssh
BTW, sss_ssh_knownhostsproxy
is deprecated in SSSD 2.10. sss_ssh_knownhosts
replaces it. More information in man sss_ssh_knownhosts(5)
.
I want to store the hosts in our AD using the attribute
altSecurityIdentities
and I've set this in the domain section of the sssd.conf:Then I've set the attribute the attribute via adcli (unfortunately this doesn't support multi-value attributes, so I've added only one key) in format as described in the documentation.
Unfortunately the output of
sss_ssh_knownhostsproxy
is empty:I guess that SSSD is not able to match testhost.domain.test with the machine account although testhost.domain.test is the value of
dNSHostName
.Log output:
See also:
https://github.com/SSSD/sssd/issues/7091