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 1739500 - Lookup AD user by SID and not by hardcoded username
Summary: Lookup AD user by SID and not by hardcoded username
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa-healthcheck
Version: 8.1
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: 8.0
Assignee: Rob Crittenden
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-09 13:15 UTC by Rob Crittenden
Modified: 2020-11-14 07:23 UTC (History)
4 users (show)

Fixed In Version: ipa-healthcheck-0.3-4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 20:53:27 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3348 0 None None None 2019-11-05 20:53:37 UTC

Description Rob Crittenden 2019-08-09 13:15:55 UTC
Description of problem:

The IPATrustDomainsCheck currently executes id Administrator@REALM. This could generate false positives if AD is localized.

Instead it should look up the user by SID.

Version-Release number of selected component (if applicable):
ipa-healthcheck-0.3-2

Comment 1 Rob Crittenden 2019-08-09 13:17:05 UTC
Upstream PR https://github.com/freeipa/freeipa-healthcheck/pull/68

Comment 2 Rob Crittenden 2019-08-09 19:39:37 UTC
Fixed upstream:
c3586321aa82bd4e12e70c8463b85c2e3888c510
d6d06a3a22d441fbfb208eeb63caae7aafd434b4

Comment 6 Sudhir Menon 2019-09-16 08:16:11 UTC
Fix is seen. 

1. Installed RHEL8.1 with locale fr_FR.UTF-8 
2. Established trust with Windows2K16 fr_FR.UTF-8 installation and administrator user is "Administrateur"

ipa-server-4.8.0-10.module+el8.1.0+4098+f286395e.x86_64
ipa-healthcheck-0.3-4.module+el8.1.0+4098+f286395e.noarch

[root@master]# ipa trust-find
------------------------------------
1 confiance correspondante
------------------------------------
     Nom du royaume: yahoo.test
     Nom de domaine NetBIOS: YAHOO
     Identifiant de sécrurité du domaine: S-1-5-21-1189667791-2754545807-2221822332
     Type de confiance: Domaine Active Directory
----------------------------------------
Nombre d'entrées renvoyées 1
----------------------------------------

3. #ipa-healthcheck --source ipahealthcheck.ipa.trust command is run

  {
    "source": "ipahealthcheck.ipa.trust",
    "check": "IPATrustDomainsCheck",
    "result": "SUCCESS",
    "uuid": "0cb24735-494a-41de-8830-0209387f684f",
    "when": "20190912131539Z",
    "duration": "0.079331",
    "kw": {
      "key": "domain-list",
      "sssd_domains": "win2k16.test",
      "trust_domains": "win2k16.test"
    }
  },

Comment 7 Sudhir Menon 2019-09-16 08:26:18 UTC
Correction in the output pasted. 

3. #ipa-healthcheck --source ipahealthcheck.ipa.trust command is run

 {
    "source": "ipahealthcheck.ipa.trust",
    "check": "IPATrustDomainsCheck",
    "result": "SUCCESS",
    "uuid": "b2272a32-3fe1-4713-b5aa-ea6669a5cac7",
    "when": "20190912131539Z",
    "duration": "0.079331",
    "kw": {
      "key": "domain-list",
      "sssd_domains": "yahoo.test",
      "trust_domains": "yahoo.test"
    }
  },

  {
    "source": "ipahealthcheck.ipa.trust",
    "check": "IPATrustDomainsCheck",
    "result": "SUCCESS",
    "uuid": "7e009f7b-6a1a-408a-ae19-fb7eac6877c3",
    "when": "20190916082025Z",
    "duration": "0.191986",
    "kw": {
      "key": "domain-status",
      "domain": "yahoo.test"
    }
  },

Comment 9 errata-xmlrpc 2019-11-05 20:53:27 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/RHBA-2019:3348


Note You need to log in before you can comment on or make changes to this bug.