[sysadmin-bin] reset users password



commit 59cd9d04e786e3ace614fb18a31caff71f529889
Author: Olav Vitters <olav vitters nl>
Date:   Sun Mar 20 01:18:36 2011 +0100

    reset users password

 run-mango-special-cmd |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/run-mango-special-cmd b/run-mango-special-cmd
index 4eb5cde..b56c182 100755
--- a/run-mango-special-cmd
+++ b/run-mango-special-cmd
@@ -5,9 +5,7 @@
 if [ "$SSH_ORIGINAL_COMMAND" != "" ]; then
 	case "$SSH_ORIGINAL_COMMAND" in
 		"mango")
-			cat "/var/local/mango/`whoami`" 2> /dev/null
-			echo > "/var/local/mango/`whoami`" 2> /dev/null
-			exit
+			exec sudo -n -g root /home/admin/bin/handle-ldap-modules reset-my-passwd
 			;;
 	esac
 fi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]