users: Restart nscd after setup

The changes made for system login will not be effective until a restart. This
includes SSH login, console login, getent answers, etc.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2017-10-07 07:08:27 -04:00
1 parent a155f38eef
commit 56b071858b
1 file changed
+1
+1
View File
@@ -63,6 +63,7 @@ def configure_slapd():
'ldap-sasl-mech': 'EXTERNAL'})
action_utils.dpkg_reconfigure('libnss-ldapd',
{'nsswitch': 'group, passwd, shadow'})
action_utils.service_restart('nscd')
def configure_ldap_structure():