Package: libpam-mklocaluser
Version: 0.5
Severity: important
Tags: patch

The code in the python module to call /usr/sbin/nscd to flush the nscd
passwd cache is executed also when the program is missing.  This
causes a error message during first time login, which confuses and
worries users.  This patch get rid of it.

Index: debian/pam-python.py
===================================================================
--- debian/pam-python.py        (revision 69427)
+++ debian/pam-python.py        (working copy)
@@ -97,7 +97,7 @@
       runcmd(pamh, "/bin/chown -R %d:%d '%s'" % (uid, gid, newhomedir))

       # Flush nscd cache to get rid of original user entry
-      runcmd(pamh, "/usr/sbin/nscd -i passwd")
+      runcmd(pamh, "if [ -x /usr/sbin/nscd ] ; then /usr/sbin/nscd -i passwd; 
fi")

       # Hook for adjusting the freshly created home directory
       # XXX Should be rewritten in python, I guess

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to