Bug 1403242

Summary: Samba can not access trusted domains through transitive trusts
Product: Red Hat Enterprise Linux 7 Reporter: Andreas Schneider <asn>
Component: sambaAssignee: Andreas Schneider <asn>
Status: CLOSED ERRATA QA Contact: Robin Hack <rhack>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: asn, bji, fjayalat, gdeschner, jarrpa, ktadimar, rhack
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: samba-4.6.0-0.1.rc3.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 18:19:59 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 Andreas Schneider 2016-12-09 13:37:00 UTC
+------------------+                +------------------+
|                  |                |                  |
| FOREST1 DOM ROOT <----------------+ FOREST2 DOM ROOT |
|                  |   two-way      |                  |
+------------------+    trust       +--------+---------+
                                             ^
                                             |
        ^                                    |
        |                            +-------+-------+
        |                            |               |
        |                            | CHILD.FOREST1 |
        |                            |               |
        |                            +-------+-------+
        |                                    ^
        |                                    |
        |                                    |
        | LOGIN                         +----+----+
        | FOREST1\Administrator         |         |
        +------------------------+      | WINBIND |
                                        |         |
                                        +---------+


WINBIND is a Linux machine and is joined to CHILD.FOREST1. Now a user from FOREST1 wants to login to WINBIND. This does not work and is known to be broken since 2011.

It can be fixed if the user does not want login (ssh) to the machine but access a Samba share.


P.S: This bug will track ONLY for this scenario. If you/the cusomter have different domain setup, open a new bug!

Comment 5 Andreas Schneider 2017-01-09 13:50:13 UTC
I configured the domains like described above and used Samba 4.2.10. I'm not able to get it in a working state with Samba 4.2.10.

Comment 7 Andreas Schneider 2017-01-16 10:11:10 UTC
This is from Samba 4.6rc1:


samba-cli01:~ # wbinfo --online-status
BUILTIN : online
SAMBA-CLI01 : online
MARS : online
EARTH : online
samba-cli01:~ # getent passwd BERLIN+administrator
BERLIN+administrator:*:500000500:500000513::/home/BERLIN/administrator:/bin/bash

BERLIN is a child domain of EARTH
EARTH and MARS have a two-way trust



We fixed this issue and the fix will be in Samba 4.6 and this in RHEL 7.4!

Comment 12 Andreas Schneider 2017-02-15 14:13:46 UTC
I don't know why this worked on samba-4.2.10 I'm not able to create a working scenario with 4.2.10.

Comment 24 errata-xmlrpc 2017-08-01 18:19:59 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/RHSA-2017:1950