Make addhomedir call 'nscd -i passwd'

This commit is contained in:
David Bartley 2007-09-28 00:17:49 -04:00 committed by Michael Spang
parent e057560c7d
commit 2025df30a6
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ if not os.path.isdir(cfg['skeleton_dir']):
fail("invalid skeleton dir %s" % cfg['skeleton_dir'])
try:
os.execvp("/usr/sbin/nscd", ("/usr/sbin/nscd", "-i", "passwd"))
pwent = pwd.getpwnam(username)
uid = pwent.pw_uid
gid = pwent.pw_gid