Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1441545

Summary: With multiple subdomain sections id command output for user is not displayed for both domains
Product: Red Hat Enterprise Linux 7 Reporter: Sudhir Menon <sumenon>
Component: sssdAssignee: SSSD Maintainers <sssd-maint>
Status: CLOSED ERRATA QA Contact: Sudhir Menon <sumenon>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: abokovoy, extras-qa, grajaiya, jhrozek, ksiddiqu, lslebodn, mkosek, mzidek, nsoman, pbrezina, rharwood, sbose, sgoveas, ssorce, sumenon, tscherf
Target Milestone: rcKeywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.15.2-31.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1435662 Environment:
Last Closed: 2017-08-01 09:04:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1435662    
Bug Blocks:    

Comment 2 Sudhir Menon 2017-04-12 08:29:04 UTC
[root@master sssd]# ipa trust-find
---------------
1 trust matched
---------------
  Realm name: pne.qe
  Domain NetBIOS name: PNE
  Domain Security Identifier: S-1-5-21-2202318585-426110948-4011710778
  Trust type: Active Directory domain
  UPN suffixes: pune.in
----------------------------
Number of entries returned 1
----------------------------

[root@master sssd]# id test1
uid=1261601512(test1) gid=1261601512(test1) groups=1261601512(test1),1261601621(group3),1261600513(domain users)

[root@master sssd]# id aduser1.qe
id: aduser1.qe: no such user

(Wed Apr 12 03:31:43 2017) [sssd[be[testrelm.test]]] [generic_ext_search_handler] (0x4000):     Ref: ldap://DomainDnsZones.chd.pne.qe/DC=DomainDnsZones,DC=chd,DC=pne,DC=qe
(Wed Apr 12 03:31:43 2017) [sssd[be[testrelm.test]]] [sdap_search_user_process] (0x0400): Search for users, returned 1 results.  <====
(Wed Apr 12 03:31:43 2017) [sssd[be[testrelm.test]]] [sdap_search_user_process] (0x2000): Retrieved total 0 users  <===

Comment 3 Sudhir Menon 2017-04-12 08:32:55 UTC
Tested on RHEL7.4 with 
ipa-server-4.5.0-5.el7.x86_64
sssd-1.15.2-12.el7.x86_64

Comment 11 Lukas Slebodnik 2017-05-02 11:12:29 UTC
master:
* 4c49edbd8df651b1737c59459637962c117212c6

Comment 13 Sudhir Menon 2017-05-03 10:48:49 UTC
Tested using sssd-1.15.2-21.el7.x86_64

Found that ldap_user_search_base is not set for sssd even after having them in the sssd.conf

[domain/testqe.test/pne.qe]
debug_level = 9
ad_server = win1.pne.qe
ldap_search_base = dc=pne,dc=qe
ldap_user_search_base = ou=marketing,dc=pne,dc=qe

[domain/testqe.test/ptb.qe]
debug_level = 9
ad_server = apache.ptb.qe
ldap_search_base = dc=ptb,dc=qe
ldap_user_search_base = ou=sales,dc=ptb,dc=qe

(Wed May  3 06:26:50 2017) [sssd[be[testrelm.test]]] [dp_get_options] (0x0400): Option ldap_user_search_base has no value

Comment 14 Jakub Hrozek 2017-05-22 08:01:03 UTC
Could you please retest this build with the latest build (sssd-1.15.2-31.el7) ?

Comment 15 Sudhir Menon 2017-05-22 18:02:43 UTC
Jakub,

I did verify using sssd-1.15.2-31.el7.x86_64 and the fix is seen.

sssd-common-pac-1.15.2-31.el7.x86_64
sssd-dbus-1.15.2-31.el7.x86_64
sssd-proxy-1.15.2-31.el7.x86_64
sssd-client-1.15.2-31.el7.x86_64
sssd-common-1.15.2-31.el7.x86_64
sssd-ad-1.15.2-31.el7.x86_64
sssd-1.15.2-31.el7.x86_64
python-sssdconfig-1.15.2-31.el7.noarch
sssd-krb5-common-1.15.2-31.el7.x86_64
sssd-ldap-1.15.2-31.el7.x86_64
sssd-krb5-1.15.2-31.el7.x86_64
sssd-ipa-1.15.2-31.el7.x86_64
ipa-server-4.5.0-13.el7.x86_64
krb5-server-1.15.1-8.el7.x86_64
pki-ca-10.4.1-4.el7.noarch
selinux-policy-3.13.1-151.el7.noarch


[root@master sssd]# ipa trust-find
----------------
2 trusts matched
----------------
  Realm name: pne.qe
  Domain NetBIOS name: PNE
  Domain Security Identifier: S-1-5-21-2202318585-426110948-4011710778
  Trust type: Active Directory domain
  UPN suffixes: test.qa, 

  Realm name: win2k16.test
  Domain NetBIOS name: WIN2K16
  Domain Security Identifier: S-1-5-21-1240829736-1212639629-1557025649
  Trust type: Active Directory domain
  UPN suffixes: abc.test
----------------------------
Number of entries returned 2
----------------------------

[domain/testqe.test/pne.qe]
debug_level = 9
ad_server = win1.pne.qe
ldap_search_base = dc=pne,dc=qe
ldap_user_search_base = ou=marketing,dc=pne,dc=qe

[domain/testqe.test/win2k16.test]
debug_level = 9
ad_server = win9.win2k16.test
ldap_search_base = dc=win2k16,dc=test
ldap_user_search_base = ou=sales,dc=win2k16,dc=test

[root@master sssd]# id test21
uid=1261601541(test21) gid=1261601541(test21) groups=1261601541(test21),1261600513(domain users)

[root@master sssd]# id test1
uid=1559401119(test1) gid=1559401119(test1) groups=1559401119(test1),1559400513(domain users

Comment 16 Jakub Hrozek 2017-05-23 06:58:06 UTC
Thank you for testing, in that case the fixes for https://bugzilla.redhat.com/show_bug.cgi?id=1446535 did help in this case, too.

I will attach the builds to the errata during today.

Comment 18 Sudhir Menon 2017-05-24 09:30:13 UTC
Marking the bug as VERIFIED

sssd-1.15.2-31.el7.x86_64
ipa-server-4.5.0-13.el7.x86_64
sssd-1.15.2-31.el7.x86_64
krb5-server-1.15.1-8.el7.x86_64
pki-server-10.4.1-4.el7.noarch
selinux-policy-3.13.1-151.el7.noarch

Comment 19 errata-xmlrpc 2017-08-01 09:04:18 UTC
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.

https://access.redhat.com/errata/RHEA-2017:2294