From 734b00e875987d8d4272a14c2a68a24767e8b9d0 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Tue, 16 Oct 2012 02:59:57 +0000 Subject: [PATCH] setting the password expire time to 0, never expired git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@14020 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 96fd9290b..f6523a445 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -4479,6 +4479,9 @@ sub passwd { return ([1, @data]); } } + # setting the password expire time to 0, never expired + $t->cmd("accseccfg -pe 0 -T system:$mm"); + @data = (); my $snmp_cmd = "users -n $user -ap sha -pp des -ppw $pass -T system:$mm"; @data = $t->cmd($snmp_cmd);