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 2218102

Summary: ipa trust-find shows 'Cannot connect to .... Exceeded number of tries to forward a request'.
Product: Red Hat Enterprise Linux 7 Reporter: Sudhir Menon <sumenon>
Component: doc-Windows_Integration_GuideAssignee: lmcgarry
Status: CLOSED MIGRATED QA Contact: ipa-qe
Severity: medium Docs Contact: Filip Hanzelka <fhanzelk>
Priority: medium    
Version: 7.9CC: ftrivino, rcritten, rhel-docs, tcapek, tscherf
Target Milestone: rcKeywords: Documentation, MigratedToJIRA
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-14 15:44:34 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:

Description Sudhir Menon 2023-06-28 07:17:12 UTC
Description of problem:ipa trust-find shows 'Cannot connect to .... Exceeded number of tries to forward a request'.

Version-Release number of selected component (if applicable):


How reproducible:
Always.

Steps to Reproduce:
1.ipa-replica-manage connect --winsync --passsync=password --cacert=/root/windows.cer root-dc.ad.test --binddn "cn=Administrator,cn=users,dc=ad,dc=test" --bindpw password -v -p password
2.ipa-replica-manage list
3.ipa trust-add --type=ad ad.test --admin 'Administrator' --password
4. ipa-winsync-migrate -U --realm ad.test --server root-dc.ad.test
5. ipa-replica-manage list root-dc.ad.test
6. ipa trust-find

Actual results:
1. Added CA certificate /root/windows.cer to certificate database for master.testrelm.test
ipa: INFO: AD Suffix is: DC=ad,DC=test
The user for the Windows PassSync service is uid=passsync,cn=sysaccounts,cn=etc,dc=testrelm,dc=test
Adding Windows PassSync system account
ipa: INFO: Added new sync agreement, waiting for it to become ready . . .
ipa: INFO: Replication Update in progress: False: status: Error (0) Replica acquired successfully: Incremental update started: start: 20230626110027: end: 20230626110027
ipa: INFO: Agreement is ready, starting replication . . .
ipa: WARNING: This configuration ("--winsync") may imply that the log file contains clear text passwords.
Please ensure that these files can be accessed only by trusted accounts.
Starting replication, please wait until this has completed.
Update succeeded
Connected 'master.testrelm.test' to 'root-dc.ad.test'

2. [root@master slapd-TESTRELM-TEST]# ipa-replica-manage list
master.testrelm.test: master
root-dc.ad.test: winsync

3. [root@master ~]# ipa trust-add --type=ad ad.test --admin 'Administrator' --password
Active Directory domain administrator's password:
------------------------------------------------
Added Active Directory trust for realm "ad.test"
------------------------------------------------
  Realm name: ad.test
  Domain NetBIOS name: AD
  Domain Security Identifier: S-1-5-21-2348683041-784792550-297300638
  Trust direction: Trusting forest
  Trust type: Active Directory domain
  Trust status: Established and verified
 
4. [root@master ~]# ipa-winsync-migrate -U --realm ad.test --server root-dc.ad.test
Migration completed. Please note that if PassSync was configured on the given Active Directory server, it needs to be manually removed, otherwise it may try to reset password for accounts that are no longer existent.
The ipa-winsync-migrate command was successful

5. #ipa-replica-manage list
Directory Manager password:
master.testrelm.test: master
#ipa-replica-manage list root-dc.ad.test
Directory Manager password:
Cannot find root-dc.ad.test in public server list

[root@master ~]# ipa trust-find
ipa: ERROR: cannot connect to 'https://master.testrelm.test/ipa/session/json': Exceeded number of tries to forward a request.

Expected results:
ipa trust-find should display the result rather than the error.

Additional info:

Comment 2 Florence Blanc-Renaud 2023-06-30 15:05:33 UTC
From the logs, we can see that ipa-winsync-migrate happens between 2023-06-21T08:59:09-0400 and 2023-06-21T08:59:16-0400. Directory server audit log shows that the admin user gets deleted during this time:

time: 20230621085913
dn: uid=admin,cn=users,cn=accounts,dc=testrelm,dc=test
result: 0
changetype: delete
modifiersname: cn=Directory Manager

ipa-winsync-migrate looks for the users that were mirrored from AD with a search equivalent to
ldapsearch -b cn=users,cn=accounts,$BASEDN "(&(objectclass=ntuser)(ntUserDomainId=*))"

For each of these users, it performs a list of operations: creates an ID override, migrate membership etc and finally delete the user from the IPA server.

We need to understand why uid=admin is returned by the search with the ntuser filter (it should not). Maybe there is another user with the name "admin" on Windows and the sync added the objectclass?

Comment 7 RHEL Program Management 2023-09-14 14:22:17 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 8 RHEL Program Management 2023-09-14 15:44:34 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.

Comment 9 Red Hat Bugzilla 2024-01-13 04:25:33 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days