Bug 2325893 - sssd gpo_child doesn't have sufficient rights to populate GPO policies
Summary: sssd gpo_child doesn't have sufficient rights to populate GPO policies
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sssd
Version: 41
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Alexey Tikhonov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-13 13:18 UTC by nekopilot
Modified: 2025-12-02 07:26 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-12-02 07:26:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description nekopilot 2024-11-13 13:18:37 UTC
# 1. Issue
After upgrade from F39 to F41 via UI path the login to the system with AD account is not possible. Local account works well.

# 2. Workaround
sssd service works under sssd user in Fedora 41. The folder with GPO policies has wrong rights with owner root:
ls -lah /var/lib/sss/gpo_cache/example.com/Policies/
total 0
drwx------. 4 root root 98 Jan 10  2024 .
drwx------. 3 sssd sssd 22 Jan 10  2024 ..
drwx------. 3 root root 36 Nov 13 07:33 {31B2F332-016D-11D2-945F-00C04FBB84F9}
drwx------. 3 root root 36 Nov 13 07:33 {7E50761D-1E4D-4D2B-BD86-E667EED3DF1E}

It is possible to change the owner of the directories. After that the login with AD account works well.
chown -R sssd:sssd /var/lib/sss/gpo_cache

Reproducible: Always

Steps to Reproduce:
1. Your F39 system must be joined to AD with sssd and you can login to the system with AD account.
2. Upgrade from F39 to F41.
3. Try to login with AD account.

Actual Results:  
Login from Gnome UI is not possible with error: "Wrong user name or password".

Expected Results:  
You can login to the system with AD account.

Your F39 system must be joined to AD with sssd and you can login to the system with AD account.

After upgrade you can't login from UI with AD account but:
1. kinit user.name - works well.
1. id user.name - works well.
1. realm list - looks good.

In logs you can find error message:
cat /var/log/sssd/gpo_child.log
```
[gpo_child[4066]] [prepare_gpo_cache] (0x0020): [RID#23] mkdir(/var/lib/sss/gpo_cache/example.com/Policies/{31B2F332-016D-11D2-945F-00C04FBB84F9}) failed: 13
```

Comment 1 Alexey Tikhonov 2024-11-13 13:32:16 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/7672

* `master`
    * 2d0f0480a18aacd35a51b1854736d984d378d84e - chown() gpo cache recursively.
* `sssd-2-10`
    * 4acd8a3c8a32dc010a2ef763645a1565eaeaadae - chown() gpo cache recursively.

Comment 2 Adam Williamson 2025-12-02 01:35:36 UTC
This message is a reminder that Fedora Linux 41 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 41 on 2025-12-15.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '41'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 41 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.


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