From 38ce4c7423af0a8cb20bb8dea6b4b5a18509771f Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Tue, 16 Oct 2012 03:03:49 +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/trunk@14021 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 00409f5b6..6a042416b 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -4568,6 +4568,9 @@ sub passwd { } return ([1, @data]); } + # setting the password expire time to 0, never expired + $t->cmd("accseccfg -pe 0 -T system:$mm"); + $mpatab->setAttribs({mpa=>$mpa,username=>$user},{password=>$pass}); if ($user eq "USERID") { my $fsp_api = ($::XCATROOT) ? "$::XCATROOT/sbin/fsp-api" : "/opt/xcat/sbin/fsp-api";