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 1660083 - extraAttributes is org.freedesktop.DBus.Error.UnknownProperty: Unknown property
Summary: extraAttributes is org.freedesktop.DBus.Error.UnknownProperty: Unknown property
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Tomas Halman
QA Contact: Steeve Goveas
URL:
Whiteboard:
Depends On: 1660067
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-17 13:18 UTC by Jakub Hrozek
Modified: 2020-05-04 11:08 UTC (History)
11 users (show)

Fixed In Version: sssd-2.0.0-40.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1660067
Environment:
Last Closed: 2019-06-14 01:55:22 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 4891 0 None None None 2020-05-04 11:08:37 UTC

Description Jakub Hrozek 2018-12-17 13:18:37 UTC
+++ This bug was initially created as a clone of Bug #1660067 +++

Description of problem:

Attempting to get extraAttributes via SSSD's ifp fails.

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

sssd-dbus-2.0.0-4.fc29.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. Install and configure FreeIPA server, for example via
   ipa-server-install -r EXAMPLE.TEST -n example.test -p Secret123 -a Secret123
2. Attempt to get extraAttributes for user admin:
   dbus-send --print-reply --system --dest=org.freedesktop.sssd.infopipe /org/freedesktop/sssd/infopipe/Users/example_2etest/$( id -u admin ) org.freedesktop.DBus.Properties.Get string:"org.freedesktop.sssd.infopipe.Users.User" string:"extraAttributes"

Actual results:

Error org.freedesktop.DBus.Error.UnknownProperty: Unknown property

Expected results:

method return time=1545051067.561377 sender=:1.96 -> destination=:1.115 serial=15 reply_serial=2
   variant       array [
      ]

Additional info:

This is regression against sssd-dbus-1.16.3-2.fc28.x86_64 and older versions.

This is breaking Ipsilon. It was found when testing https://pagure.io/webauthinfra on Fedora 29: testing https://travis-ci.org/adelton/webauthinfra/builds/466857916

--- Additional comment from Jakub Hrozek on 2018-12-17 13:16:43 UTC ---

Upstream ticket:
https://pagure.io/SSSD/sssd/issue/3906

Comment 2 Jakub Hrozek 2019-01-06 19:19:50 UTC
* master: 814889a7f4691a135b617058c3ae876b54d5b226

Comment 5 Jakub Hrozek 2019-01-08 11:06:18 UTC
Steeve, can you consider acking this bug? There is an automated test proposed at https://github.com/SSSD/sssd/pull/726 which can also be added to OSCI, so the bug would get verified 'for free'

Comment 10 Niranjan Mallapadi Raghavender 2019-02-22 03:16:33 UTC
Version:
sssd-krb5-common-2.0.0-43.el8.x86_64
sssd-tools-2.0.0-43.el8.x86_64
sssd-dbus-2.0.0-43.el8.x86_64
sssd-2.0.0-43.el8.x86_64
sssd-libwbclient-2.0.0-23.el8.x86_64
sssd-client-2.0.0-43.el8.x86_64
sssd-ipa-2.0.0-43.el8.x86_64
sssd-ldap-2.0.0-43.el8.x86_64
sssd-winbind-idmap-2.0.0-23.el8.x86_64
python3-sssdconfig-2.0.0-43.el8.noarch
sssd-common-pac-2.0.0-43.el8.x86_64
sssd-krb5-2.0.0-43.el8.x86_64
sssd-proxy-2.0.0-43.el8.x86_64
sssd-kcm-2.0.0-43.el8.x86_64
sssd-ad-2.0.0-43.el8.x86_64
sssd-nfs-idmap-2.0.0-23.el8.x86_64
sssd-common-2.0.0-43.el8.x86_64

Configure sssd.conf as below:


[sssd]
domains = EXAMPLE.TEST
config_file_version = 2
services = nss, pam, sudo, ifp

[domain/EXAMPLE.TEST]
enumerate = false
id_provider = ldap
ldap_uri = ldaps://foobar1.example.test
ldap_search_base = dc=example,dc=test
ldap_tls_cacert = /etc/openldap/cacerts/cacert.pem
auth_provider = krb5
krb5_server = foobar1.example.test
krb5_kpasswd = foobar1.example.test
krb5_realm = EXAMPLE.TEST
ldap_user_extra_attrs = phone:telephoneNumber
debug_level = 9

[nss]
debug_level = 9

[pam]
debug_level = 9

[secrets]
debug_level = 9

[kcm]
debug_level = 9

[ifp]
user_attributes = +phone


Add telephoneNumber attribute to ldap user foo1

[root@foobar1 ~]# ldapsearch -x -b 'dc=example,dc=test' -D 'cn=Directory Manager' -w Secret123 -h localhost  uid=foo1 telephoneNumber -LLL
dn: uid=foo1,ou=People,dc=example,dc=test
telephoneNumber: 123456789


Restart sssd 
systemctl restart sssd

execute dbus command.

dbus-send --system --print-reply --dest=org.freedesktop.sssd.infopipe /org/freedesktop/sssd/infopipe/Users/EXAMPLE_2eTEST/$( id -u foo1 ) org.freedesktop.DBus.Properties.Get string:"org.freedesktop.sssd.infopipe.Users.User" string:"extraAttributes"
method return time=1550805352.245084 sender=:1.313 -> destination=:1.316 serial=8 reply_serial=2
   variant       array [
         dict entry(
            string "phone"
            array [
               string "123456789"
            ]
         )
      ]


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