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 1695481 - ipa trust-add failing with CIFS server communication error
Summary: ipa trust-add failing with CIFS server communication error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.7
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 1789205
TreeView+ depends on / blocked
 
Reported: 2019-04-03 08:11 UTC by Varun Mylaraiah
Modified: 2023-10-06 18:13 UTC (History)
11 users (show)

Fixed In Version: ipa-4.6.5-4.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1789205 (view as bug list)
Environment:
Last Closed: 2019-08-06 13:09:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
debug logs for httpd_error_logs and samba_logs (12.65 KB, application/gzip)
2019-04-03 08:13 UTC, Varun Mylaraiah
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2241 0 None None None 2019-08-06 13:09:54 UTC

Description Varun Mylaraiah 2019-04-03 08:11:24 UTC
Description of problem:
ipa trust-add failing with CIFS server communication error.

Version-Release number of selected component (if applicable):
ipa-server-4.6.5-3.el7.x86_64
samba-4.9.1-3.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.  Setup IPA server
2.  ipa-adtrust-install
3.  ipa trust-add

Actual results:
Fails with error:

ipa: ERROR: CIFS server communication error: code "3221225506", message "{Access Denied} A process has requested access to an object but has not been granted those access rights." (both may be "None")

Expected results:
Trust should add.

Additional info:
Attached error logs

Comment 2 Varun Mylaraiah 2019-04-03 08:13:03 UTC
Created attachment 1551277 [details]
debug logs for httpd_error_logs and samba_logs

Comment 5 Alexander Bokovoy 2019-04-03 08:48:21 UTC
Looks like this is due to not having two backports in ipa-4-6. Added them as a pull request against ipa-4-6: https://github.com/freeipa/freeipa/pull/2988

Comment 8 Varun Mylaraiah 2019-04-08 06:54:09 UTC
Verified

rpm -qa ipa-server
ipa-server-4.6.5-4.el7.x86_64


[root@bender ~]# echo Secret123 | ipa trust-add ipaad2016.test --admin Administrator  --range-type=ipa-ad-trust --password --two-way=True
-------------------------------------------------------
Added Active Directory trust for realm "ipaad2016.test"
-------------------------------------------------------
  Realm name: ipaad2016.test
  Domain NetBIOS name: IPAAD2016
  Domain Security Identifier: S-1-5-21-813110839-3732285123-1597101681
  Trust direction: Two-way trust
  Trust type: Active Directory domain
  Trust status: Established and verified

Comment 19 errata-xmlrpc 2019-08-06 13:09:37 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:2241

Comment 20 Corey Brown 2019-09-06 18:54:56 UTC
HI,

I have a customer that is still showing the same error messages with the updated errata packages. Is there anything else I can look for as to a root cause of this error message:

error message: CIFS server communication error: code "3221225506'', message "{Access Denied} A process has requested access to an object but has not been granted those access rights." (both may be "None")

Any insight would be appreciated.

Corey Brown

Comment 21 Florence Blanc-Renaud 2019-09-09 07:02:23 UTC
Hi Corey,
please ask your customer to provide fresh logs obtained with the updated errata packages (ipa-4.6.5-11.el7):

- Stop smb and winbind services on IdM server
systemctl stop smb winbind

- Set log level to increased debug so that packets smbd/winbindd receive get printed fully in the logs:
net conf setparm global 'log level' 100

- Set log level to increased debug so that communication done by IPA when establishing trust is printed fully in the logs. Change /usr/share/ipa/smb.conf.empty:
[global]
log level = 100

- Remove old /var/log/samba/log.*

- Start smb and winbind services
systemctl start smb winbind

- Re-add trust
date;ipa -vvv trust-add <forest roo> ...; date

- Provide the logs from /var/log/httpd/error_log /var/log/samba/log.* and the output of ipa trust-add

Comment 36 Red Hat Bugzilla 2023-09-18 00:15:48 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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