I Joined my Centos Box to a Windows Active Directory Domain with
realm join --user=DomUser dom2.local
Without any Problems. The Domain hast a one-way Trust relationship to Dom1. Our Windows Users can:
- Log-In with Dom1/User to Dom1/Host
- Log-In with Dom1/User to Dom2/Host
- Log-In with Dom2/User to Dom2/Host
On our Linux Boxes (in Dom2), only Dom2/Users can Log in. I found some evidence online, that sssd can be configured with two Domains, so i added a Block in the sssd config:
# cat /etc/sssd/sssd.conf [sssd] domains = dom1.local, dom2.local config_file_version = 2 services = nss, pam [domain/dom1.local] ad_domain = dom1.local krb5_realm = DOM1.LOCAL realmd_tags = manages-system joined-with-samba cache_credentials = True id_provider = ad krb5_store_password_if_offline = True default_shell = /bin/bash ldap_id_mapping = True use_fully_qualified_names = True fallback_homedir = /home/%u@%d access_provider = ad enumerate = True [domain/dom2.local] ad_domain = dom2.local krb5_realm = DOM2.LOCAL realmd_tags = manages-system joined-with-samba #cache_credentials = True cache_credentials = False id_provider = ad krb5_store_password_if_offline = True default_shell = /bin/bash ldap_id_mapping = True use_fully_qualified_names = True fallback_homedir = /home/%u@%d access_provider = ad enumerate = True
Now if i try to log in with a Dom2 User i get the following:
pam_sss(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=host.dom1.local email@example.com pam_sss(sshd:auth): received for user firstname.lastname@example.org: 6 (Permission denied) Failed password for email@example.com from 10.10.0.10 port 34442 ssh2
Has someone succefully configured two AD Domains with sssd? Or any Idea how to do that?
With getent passwd i can see all users from both domains, and both:
id firstname.lastname@example.org id email@example.com
work as well.