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 1504701

Summary: IPA/AD trust setup is failing because of samba client trying to get delegation for the wrong krb5 principal
Product: Red Hat Enterprise Linux 7 Reporter: Thorsten Scherf <tscherf>
Component: sambaAssignee: Alexander Bokovoy <abokovoy>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.4CC: abokovoy, asn, fs-qe, gdeschner, gparente, gswami, jarrpa, jspanko, ksiddiqu, minyu, mpanaous, rharwood, saime, tscherf
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gssproxy-0.7.0-17.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-20 09:07:31 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:    
Bug Blocks: 1550132    
Attachments:
Description Flags
01986348-httpd-error-log
none
01986348-krb5kdc-log
none
01986348-gssproxy-log none

Description Thorsten Scherf 2017-10-20 12:34:51 UTC
Description of problem:

Setting up a trust with "ipa trust-add" is failing with the error:

"ipa: ERROR: Insufficient access: CIFS server idm.example.com denied your credentials"

where idm.example.com is the IdM server. 


Version-Release number of selected component (if applicable):
samba-4.6.2-8.el7.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

The following samba upstream ticket is related:

https://bugzilla.redhat.com/show_bug.cgi?id=1430759


The patches are part of samba since 4.6.0-3 though:

* Fri Mar 10 2017 Alexander Bokovoy <abokovoy> - 4.6.0-3
- Ensure we set realm when updating ccache in auth/credentials
- resolves: #1430759 - use GSSAPI gss_acquire_cred_from call for gssproxy support

Comment 10 Gaurav Swami 2018-01-09 00:33:01 UTC
Created attachment 1378823 [details]
01986348-httpd-error-log

Comment 11 Gaurav Swami 2018-01-09 00:34:52 UTC
Created attachment 1378824 [details]
01986348-krb5kdc-log

Comment 12 Gaurav Swami 2018-01-09 00:35:34 UTC
Created attachment 1378825 [details]
01986348-gssproxy-log

Comment 98 Alexander Bokovoy 2018-06-20 09:07:31 UTC
This bug was a combination of a wrong smb.conf and non-running sssd-nss service (missing services=nss from sssd.conf). Once configuration issues were fixed, everything started working.

We've got confirmation from all related customer cases that establishing trust works. Any of gssproxy-related issues were addressed by the gssproxy-specific erratas, thus closing this bug.

I'm closing it with CLOSED NOTABUG because after all, there was no bug in Samba on this issue, only misconfiguration.

Comment 99 Alexander Bokovoy 2018-07-10 08:10:26 UTC
I also opened a ticket upstream to prevent IPA restore on a server with incomplete package base: in a case of a full backup restore we have to ensure all required extra packages present before doing a restore that uses these features.

https://pagure.io/freeipa/issue/7630