803fb7
From d7087b71c5b31bae35cb32a4b87e83d578a2d694 Mon Sep 17 00:00:00 2001
803fb7
From: Lennart Poettering <lennart@poettering.net>
803fb7
Date: Fri, 3 Apr 2015 14:31:35 +0200
803fb7
Subject: [PATCH] units: explicitly order systemd-user-sessions.service after
803fb7
 nss-user-lookup.target
803fb7
803fb7
We should not allow logins before NIS/LDAP users are available.
803fb7
803fb7
(cherry picked from commit efb3e19be9c568974b221990b9e84fb5304c5537)
803fb7
803fb7
Cherry-picked from: 6446de5
803fb7
Resolves: #1222517
803fb7
---
803fb7
 units/systemd-user-sessions.service.in | 2 +-
803fb7
 1 file changed, 1 insertion(+), 1 deletion(-)
803fb7
803fb7
diff --git a/units/systemd-user-sessions.service.in b/units/systemd-user-sessions.service.in
803fb7
index 0869e7399..c09c05d4d 100644
803fb7
--- a/units/systemd-user-sessions.service.in
803fb7
+++ b/units/systemd-user-sessions.service.in
803fb7
@@ -8,7 +8,7 @@
803fb7
 [Unit]
803fb7
 Description=Permit User Sessions
803fb7
 Documentation=man:systemd-user-sessions.service(8)
803fb7
-After=remote-fs.target
803fb7
+After=remote-fs.target nss-user-lookup.target
803fb7
 
803fb7
 [Service]
803fb7
 Type=oneshot