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 1016638 - gnome desktop login of ipa user fails with error "unable to open session"
Summary: gnome desktop login of ipa user fails with error "unable to open session"
Keywords:
Status: CLOSED DUPLICATE of bug 887193
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.5
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Martin Kosek
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-08 13:01 UTC by Kaleem
Modified: 2013-11-04 15:11 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
IdM server in Red Hat Enterprise Linux 6.3 introduced a technical preview of SELinux user mapping feature, which enabled a mapping of SELinux users to users managed by the IdM based on custom rules. However, the default configured SELinux user (guest_u:s0) used when no custom rule matches is too constraining. An IdM user authenticating to Red Hat Enterprise Linux 6.5 can be assigned the too constraining SELinux user in which case a login through graphical session would always fail. To work around this problem, change a too constraining default SELinux user in the IdM server from guest_u:s0 to a more relaxed value unconfined_u:s0-s0:c0.c1023: kinit admin ipa config-mod --ipaselinuxusermapdefault=unconfined_u:s0-s0:c0.c1023 An unconfined SELinux user will be now assigned to the IdM user by default, which will allow the user to successfully authenticate through graphical interface.
Clone Of:
Environment:
Last Closed: 2013-10-09 14:48:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
log file (4.15 KB, text/plain)
2013-10-08 13:01 UTC, Kaleem
no flags Details

Description Kaleem 2013-10-08 13:01:13 UTC
Created attachment 809266 [details]
log file

Description of problem:
Gnome login of ipa user fails with error "unable to open session"

/var/log/secure log shows that authentication is successful.

Setup is as follows:

RHEL-65 IPA Client ---- RHEL-63 IPA Server

Version-Release number of selected component (if applicable):

[root@65client ~]# rpm -q ipa-client selinux-policy gnome-desktop
ipa-client-3.0.0-37.el6.i686
selinux-policy-3.7.19-218.el6.noarch
gnome-desktop-2.28.2-11.el6.i686
[root@65client ~]#

How reproducible:
Always

Steps to Reproduce:
1. Install a RHEL-65 ipa client with a RHEL-63 ipa server
2. Add a user on IPA server
3. Try gnome desktop login with user created in step 2 on IPA client machine

Actual results:
Gnome desktop login failed with error message "unable to open session"

Expected results:
Gnome desktop login should be successfull

Additional info:
1. Please find the attached log file which is having content from /var/log/secure and /var/log/audit/audit.log files.

Comment 2 Martin Kosek 2013-10-09 11:43:48 UTC
I think is just too strict SELinux user role assigned by SSSD. You can check the settings on 6.3 IPA server:

# ipa config-show 
...
  Default SELinux user: unconfined_u:s0-s0:c0.c1023
...

I bet there will be "guest_u:s0" value. This is too restrictive default. IIRC, we fixed the default in RHEL-6.4.

If you change it to "unconfined_u:s0-s0:c0.c1023", you should be able to log in again. There should be a Known Issue and KB article for that.

Comment 3 Martin Kosek 2013-10-09 12:02:24 UTC
This is the RHEL 6.4 bug with documentation: Bug 887193. I would just close it as duplicate of it.

Comment 4 Daniel Walsh 2013-10-09 14:48:47 UTC

*** This bug has been marked as a duplicate of bug 887193 ***


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