From d70f6f4b1c744d642a6142fdaab4036805c8115b Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 13 May 2004 13:05:56 +0000 Subject: Use pdbedit if present (smbpasswd may syncronize with unix password). Similar when deleting (although no known problems there). --- deluser.local | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'deluser.local') diff --git a/deluser.local b/deluser.local index 4c312f4..5e5f078 100755 --- a/deluser.local +++ b/deluser.local @@ -3,7 +3,7 @@ # /usr/local/sbin/deluser.local # Copyright 2001-2002 Jonas Smedegaard # -# $Id: deluser.local,v 1.13 2003-01-27 15:35:16 jonas Exp $ +# $Id: deluser.local,v 1.14 2004-05-13 13:05:56 jonas Exp $ # # Common deluser additions for Spiff and Xenux networks # @@ -27,7 +27,9 @@ REMOVE_HOME=`grep REMOVE_HOME /etc/deluser.conf | awk -F= '{print $2}' | head -1 [ -f /etc/local/users.conf ] && . /etc/local/users.conf # Samba password -if [ -e /etc/samba/smbpasswd -a -x /usr/bin/smbpasswd ]; then +if [ -x /usr/bin/pdbedit ]; then + /usr/bin/pdbedit -x -u "$NEWUSERNAME" +elif [ -e /etc/samba/smbpasswd -a -x /usr/bin/smbpasswd ]; then /usr/bin/smbpasswd -x $OLDUSERNAME || true fi -- cgit v1.2.3