From b49a7d90708e816120ff88ce5a88fa62b35ff795 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 10 Sep 2013 18:24:41 -0400 Subject: util: Use systemd-login to check user sessions Use systemd-lgin in preference to check if the user is logged in or not. Fall back to the old method if no systemd-login support is available at compile time or if it returns a fatal error, and can't determine the status of the user on its own. This will allow to consider a user really active (in order to reuse or refresh crdentials) only if it really is logged into the system, and not just if one of the user's processes is stuck around. Resolves: https://fedorahosted.org/sssd/ticket/2084 --- contrib/sssd.spec.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib') diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 3b6c2596f..fe002b6fa 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -125,6 +125,9 @@ BuildRequires: libnl3-devel %else BuildRequires: libnl-devel %endif +%if (0%{?use_systemd} == 1) +BuildRequires: systemd-devel +%endif # RHEL 5 is too old to support samba4 and the PAC responder %if !0%{?is_rhel5} -- cgit