Bug 1826720
| Summary: | SSSD doesn't honour the customized ID view created in IPA | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Alexey Tikhonov <atikhono> |
| Component: | sssd | Assignee: | Pavel Březina <pbrezina> |
| Status: | CLOSED ERRATA | QA Contact: | sssd-qe <sssd-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.2 | CC: | grajaiya, jhrozek, lslebodn, mniranja, mzidek, pbrezina, sgoveas, thalman, tscherf |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | sync-to-jira | ||
| Fixed In Version: | sssd-2.3.0-1.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1786341 | Environment: | |
| Last Closed: | 2020-11-04 02:05:05 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
Alexey Tikhonov
2020-04-22 12:16:10 UTC
* `master`
* 1b84c3a1f17f59e134bb882f0f15109d18599193 - sysdb: check if the id override belongs to requested domain
Versions:
Server:
ipa-server-dns-4.8.7-7.module+el8.3.0+7376+c83e4fcd.noarch
ipa-server-4.8.7-7.module+el8.3.0+7376+c83e4fcd.x86_64
ipa-server-trust-ad-4.8.7-7.module+el8.3.0+7376+c83e4fcd.x86_64
ipa-server-common-4.8.7-7.module+el8.3.0+7376+c83e4fcd.noarch
Client:
ipa-client-4.8.7-7.module+el8.3.0+7376+c83e4fcd.x86_64
ipa-client-common-4.8.7-7.module+el8.3.0+7376+c83e4fcd.noarch
sssd-client-2.3.0-6.el8.x86_64
sssd-common-pac-2.3.0-6.el8.x86_64
sssd-ipa-2.3.0-6.el8.x86_64
sssd-tools-2.3.0-6.el8.x86_64
sssd-nfs-idmap-2.3.0-6.el8.x86_64
sssd-kcm-2.3.0-6.el8.x86_64
sssd-common-2.3.0-6.el8.x86_64
sssd-dbus-2.3.0-6.el8.x86_64
sssd-krb5-common-2.3.0-6.el8.x86_64
Windows AD: 2012R2
1. Established AD Trust with Windows
[root@server ~]# ipa trust-show cygnus.test
Realm name: cygnus.test
Domain NetBIOS name: CYGNUS
Domain Security Identifier: S-1-5-21-362265945-4067830278-750207296
Trust direction: Trusting forest
Trust type: Active Directory domain
2. Created customized ID Views
dn: ipaanchoruuid=:SID:S-1-5-21-362265945-4067830278-750207296-1108,cn=foobar_ad_client,cn=views,cn=accounts,dc=example,dc=test
Anchor to override: foobar1
UID: 23000
GID: 23000
ipaoriginaluid: foobar1
objectclass: ipaOverrideAnchor, top, ipaUserOverride, ipasshuser, ipaSshGroupOfPubKeys
3. Override the uid, gid and home directory for the user foobar1
dn: ipaanchoruuid=:SID:S-1-5-21-362265945-4067830278-750207296-1108,cn=foobar_ad_client,cn=views,cn=accounts,dc=example,dc=test
Anchor to override: foobar1
UID: 23000
GID: 23000
Home directory: /home/ad/foobar1
ipaoriginaluid: foobar1
objectclass: ipaOverrideAnchor, top, ipaUserOverride, ipasshuser, ipaSshGroupOfPubKeys
4. Login as foobar1 ipa client
script.sh" 12L, 208C written
5. Clear sssd cache.
[root@client tmp]# systemctl stop sssd
[root@client tmp]# date; rm -rf /var/log/sssd/* /var/lib/sss/{mc,db}/*
Tue Aug 4 16:13:24 IST 2020
[root@client tmp]# date; systemctl start sssd
Tue Aug 4 16:13:26 IST 2020
[root@client tmp]# su - foobar1
Last login: Tue Aug 4 16:09:49 IST 2020 on pts/0
[foobar1@client ~]$ pwd
/home/ad/foobar1
Execute the below script:
cat //tmp/script.sh
x=1
while [ $x -le 15 ]
do
pwd
date;getent passwd 23000 | grep -w "foobar1"
if [ $? -ne 0 ]; then
echo "1346401108 found at count $x"
break
fi
x=$(( $x + 1 ))
sleep 30
done
[foobar1@client ~]$ sh /tmp/script.sh
/home/ad/foobar1
Tue Aug 4 16:13:41 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:14:11 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:14:41 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:15:11 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:15:41 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:16:11 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:16:41 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:17:11 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:17:41 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:18:11 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:18:41 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:19:11 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:19:41 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:20:11 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
/home/ad/foobar1
Tue Aug 4 16:20:41 IST 2020
foobar1:*:23000:23000:foobar1:/home/ad/foobar1:
UID and GID lookups are successful . Marking it verified.
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 (sssd bug fix and enhancement update), 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-2020:4569 |