URL:
https://github.com/SSSD/sssd/pull/303
Title: #303: IFP: Add domain and domainname attributes to the user
fidencio commented:
"""
Testing:
- org.freedesktop.sssd.infopipe.Users.User:
```
[root@client1 x86_64]# dbus-send --system --print-reply
--dest=org.freedesktop.sssd.infopipe /org/freedesktop/sssd/infopipe/Users
org.freedesktop.sssd.infopipe.Users.FindByName string:"admin"
method return time=1496990920.218104 sender=:1.88 -> destination=:1.93 serial=15
reply_serial=2
object path "/org/freedesktop/sssd/infopipe/Users/ipa_2eexample/1790400000"
[root@client1 x86_64]# dbus-send --system --print-reply
--dest=org.freedesktop.sssd.infopipe
/org/freedesktop/sssd/infopipe/Users/ipa_2eexample/1790400000
org.freedesktop.DBus.Properties.Get
string:"org.freedesktop.sssd.infopipe.Users.User" string:"domain"
method return time=1496990928.699156 sender=:1.88 -> destination=:1.94 serial=17
reply_serial=2
variant object path
"/org/freedesktop/sssd/infopipe/Domains/ipa_2eexample"
[root@client1 x86_64]# dbus-send --system --print-reply
--dest=org.freedesktop.sssd.infopipe
/org/freedesktop/sssd/infopipe/Users/ipa_2eexample/1790400000
org.freedesktop.DBus.Properties.Get
string:"org.freedesktop.sssd.infopipe.Users.User"
string:"domainname"
method return time=1496990932.025692 sender=:1.88 -> destination=:1.95 serial=19
reply_serial=2
variant string "ipa.example"
```
- org.freedekstop.sssd.infopipe.GetUserAttr:
```
[root@client1 x86_64]# dbus-send --print-reply --system
--dest=org.freedesktop.sssd.infopipe /org/freedesktop/sssd/infopipe
org.freedesktop.sssd.infopipe.GetUserAttr string:"admin"
array:string:domainname
method return time=1496991218.956655 sender=:1.98 -> destination=:1.97 serial=5
reply_serial=2
array [
dict entry(
string "domainname"
variant array [
string "ipa.example"
]
)
]
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/303#issuecomment-307311137