On Tue, May 21, 2019 at 02:43:45PM +0100, John Hearns wrote:
I have a test system which authenticates using sssd and an LDAP
provider.
So far so good!
In my LDAP object there is the field 'mail' which is my correct email
address.
I know I can get this using an ldapsearch.
However I am asking if there is any clean and small utility which will
print this out?
I am asking as obviously scripts sometimes want to send email.
In sssd.conf there s the field ldap_user_email
How would this be queried?
Try:
dbus-send --print-reply --system --dest=org.freedesktop.sssd.infopipe
/org/freedesktop/sssd/infopipe org.freedesktop.sssd.infopipe.GetUserAttr string:$username
array:string:mail
You need to have the [ifp] service enabled and call this this as a user
permitted in the ifp service's acls, see man sssd-ifp for some more
details.