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 2017-10-04 12:28:40 +05:30 committed by James Valleroy
parent a155f38eef
commit 56b071858b
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

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():