Hi,
I have a domain "example.com" which has several child domains "abc.example.com", "def.example.com", "ghi.example.com".
I have joined my CentOS 6.8 server to the domain "example.com" using adcli and my sssd version is sssd-1.13.3-22
Here is my sssd.conf:
====================== BEGIN =======================
[sssd] services = nss, pam, ssh config_file_version = 2 domains = example.com
[pam] pam_id_timeout = 20
[domain/example.com] id_provider = ad auth_provider = ad ldap_id_mapping = true cache_credentials = true override_homedir = /home/%u subdomain_enumerate = all krb5_auth_timeout = 20
[nss] override_shell = /bin/bash
======================== END =========================
I have user1 in example.com and user2 in abc.example.com
when I run "getent passwd user1" I get the expected output. user1:*:123456789:987654321:User 1:/home/user1:/bin/bash
But when I run "getent passwd user2", I do not get any output. And when I run "getent passwd user2@abc.example.com", I get the output as follows; user2@abc.infores.com:*:123456780:987654321:User 2:/home/user2:/bin/bash
I would like to use only the username (without the child domain name suffix) for all purposes (login/id command/getent command etc).
How can I get the getent output for the IDs in the child domain to be the same as the getent output for IDs in the parent domain?
I have read the man pages and also tried the "use_fully_qualified_names = false" option. It didn't help the child domain IDs
Thanks in advance,
On Wed, Nov 02, 2016 at 03:59:18PM -0000, downloader009@gmail.com wrote:
Hi,
I have a domain "example.com" which has several child domains "abc.example.com", "def.example.com", "ghi.example.com".
I have joined my CentOS 6.8 server to the domain "example.com" using adcli and my sssd version is sssd-1.13.3-22
Here is my sssd.conf:
====================== BEGIN =======================
[sssd] services = nss, pam, ssh config_file_version = 2 domains = example.com
[pam] pam_id_timeout = 20
[domain/example.com] id_provider = ad auth_provider = ad ldap_id_mapping = true cache_credentials = true override_homedir = /home/%u subdomain_enumerate = all krb5_auth_timeout = 20
[nss] override_shell = /bin/bash
======================== END =========================
I have user1 in example.com and user2 in abc.example.com
when I run "getent passwd user1" I get the expected output. user1:*:123456789:987654321:User 1:/home/user1:/bin/bash
But when I run "getent passwd user2", I do not get any output. And when I run "getent passwd user2@abc.example.com", I get the output as follows; user2@abc.infores.com:*:123456780:987654321:User 2:/home/user2:/bin/bash
I would like to use only the username (without the child domain name suffix) for all purposes (login/id command/getent command etc).
How can I get the getent output for the IDs in the child domain to be the same as the getent output for IDs in the parent domain?
I have read the man pages and also tried the "use_fully_qualified_names = false" option. It didn't help the child domain IDs
The trusted domains are always fully qualified, this is currently hardcoded and cannot be changed. One workaround you can try is to set: full_name_format = %1$s
However, this is known to work only with sssd-1.14+. I've seen quite a few issues reported by people who tried this option with IPA-AD trust setups, but I don't remember off-hand if the same issues would appear with AD direct integration.
The input must always be qualified, though, this might only change in the upcoming version (1.15).
The other option is to disable the subdomains provider and declare both domains separately in the configuration file.
Hi,
Thanks for your reply. So, I seem to have two options;
1) upgrade the sssd version to 1.14+ and set the full_name_format=%1$s OR 2) disable the subdomains provider and mention each domain separately in the configuration file.
For the second option, would it mean that I need to join the computer each domain separately? (I mean should I run the adcli join <domain> command for each of the child domains? I was thinking this might cause a conflict where the same computer object exists in the parent domain as well as the child domain)
On Thu, Nov 03, 2016 at 08:13:22AM -0000, downloader009@gmail.com wrote:
Hi,
Thanks for your reply. So, I seem to have two options;
- upgrade the sssd version to 1.14+ and set the full_name_format=%1$s
OR 2) disable the subdomains provider and mention each domain separately in the configuration file.
Yes.
For the second option, would it mean that I need to join the computer each domain separately? (I mean should I run the adcli join <domain> command for each of the child domains? I was thinking this might cause a conflict where the same computer object exists in the parent domain as well as the child domain)
As long as the domains trust each other you should be OK with a single keytab. You might need to explicitly specify the principal for the 'second' domain with ldap_sasl_authid though.
sssd-users@lists.fedorahosted.org