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 1362272 - [RFE] Addition of email attribute to IDM LDAP compat tree
Summary: [RFE] Addition of email attribute to IDM LDAP compat tree
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.4
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Florence Blanc-Renaud
QA Contact: Kaleem
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-01 19:15 UTC by kludhwan
Modified: 2022-03-24 12:41 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-16 13:54:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7966 0 None None None 2022-03-13 14:26:17 UTC

Description kludhwan 2016-08-01 19:15:07 UTC
Description of problem:

There is no email attribute available for users (objectClass=posixAccount) in the LDAP compat tree for IDM which limits ability to use compat tree as authentication endpoint for many web services.   We require use of compat tree to be able to authenticate AD users in trusted AD domain with 2FA support (see Case #01674258 for background information on PCI-DSS 3.2 and 2FA).  Is it possible for email attribute to be added to compat tree?  There is some discussion on https://www.redhat.com/archives/freeipa-users/2015-June/msg00538.html.  Are there plans to add this in an upcoming AD release?

Comment 2 Petr Vobornik 2016-08-12 13:39:34 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/6208

Comment 3 Petr Vobornik 2016-08-12 13:47:11 UTC
this RFE may depend o/greatly benefit form Global Catalog RFE

Comment 6 Alexander Bokovoy 2018-11-12 12:14:40 UTC
The question is *where* to get that email information. We don't have
means so far to get it from SSSD via standard POSIX API we use. Since
there is no place to retrieve emails for AD users from, there is no
support for this.

Such support theoretically could be added but it will further complicate
slapi-nis code. We are in a process of refactoring the latter for other
means and will at some point be able to add such support after changing
how slapi-nis stores its database information. Current code is very
fragile in terms of adding new sources of information with unpredictable
latency (SSSD has D-Bus interface for extended attributes).

Adding this information would also require us to rethink access controls
to the compat tree. Right now information about POSIX attribute is
available without authentication because you'd get it from your POSIX
system without authentication anyway. Adding emails would mean a need to
change that. A change like this is not easy for existing deployments.

This work is currently not planned for RHEL 7.

Comment 9 Ernie Mikulic (SD) 2019-02-08 21:36:38 UTC
As a customer, I can understand the technical challenges. In our use case in our corporate world our 77 linux engineering users need both SSSD/ssh login and LDAP auth login mapping equivaency so their web services act exactly like the linux hosts systems using SSSD. 

This is key to sharing same source including group mappings and RBAC all defined in IDM. Having IDM groups map to AD groups but an LDAP service cannot see the same poses barriers, poses strong operational issues trying to realize IDM as the go between  gateway for LINUX <--> AD identity.

Not being able to map and translate all user attributes and group memberships through LDAP -> IDM -> AD causes a real disconnect in group management on both planes.

Comment 10 Alexander Bokovoy 2019-02-09 07:51:22 UTC
Please note that Compat tree is not exposing any RBAC rules by itself. It is not supposed to be used for those use cases which go outside of serving an nsswitch support on legacy clients (systems that cannot use SSSD for identity and access control) and as such is limited to RFC2307 objectclasses and attributes for most.

If you need to expose RBAC information to web services, I strongly suggest looking into integrating IdM with an IdP system, like RH SSO (Keycloak upstream) and then using SAML2 or OpenID Connect to provide all required details to those web services via assertions given by the IdP. When SSSD is used as a backend to RH SSO, it provides both the details you need and applies RBAC rules you need.

Compat tree is simply a wrong place to apply these decisions.

Comment 11 Amy Farley 2019-08-16 13:54:52 UTC
The current Global Catalog work will help this to be possible. Deferring until that work is complete.

Closing this for now.

Comment 12 Ernie Mikulic (SD) 2022-03-22 18:55:18 UTC
Still a very significant issue in our deployment where IDM is a Kerberos trusted domain/realm from AD. Email/Mail attribute exists in active directory today, but that attribute does not get passed through to IDM. So any regular application service can lookup users in IDM via LDAP but when the application wants to send the user mail (i.e. initial logon, password reset) it tries to send mail to the IDM domain, which has none. So instead of mailto://<user>@ActiveDirectory.com it sends to mailto://<user>@IDMDomain.com which never arrives anywhere.

There are ways to do lookups and alter MTA aliases in IDM might work-around but they are all hard to manage at scale, and break the basic model.

Comment 13 Alexander Bokovoy 2022-03-24 12:41:54 UTC
Ernie, as I said in comments 6 and 10, use of compat tree is not designed for what you are wanting to achieve. This is not going to change. If anything, compat tree support might disappear in future releases.


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