pam-ipmi: fix ipmitool user set password failed in 64bit environment

Symptom:
We try to use ipmitool user set password command to change root
password but we got IPMI command failed as below in our 64bit platform

root@evb-npcm845:~# ipmitool user set password 1 0penBmc0
IPMI command failed: Invalid data field in request
Set User Password command failed (user 1)

Root cause:
There is default ipmi_pass file be created and encrypted in 32bit
environment from pam-ipmi original design before. According the
failed message, we found that PAM_AUTHTOK_ERR return from
update_pass_special_file() function that cause ipmid got bad
authentication token. Seems this file cannot be used in 64bit
environment by default that will cause ipmitool user set password
got failed

Solution:
According current pam-ipmi design that already consider if this file
does not exist then BMC will create it once a user in the ipmi group
has been added. There should not be any file there by default.
Thus, there is no need for this file. Without install this file
by default then we can got command successful

Verified:
root@evb-npcm845:~# ipmitool user set password 1 0penBmc0
Set User Password command successful (user 1)
After device reboot, we can use new password to login successfully

Signed-off-by: Tim Lee <timlee660101@gmail.com>
Change-Id: Ic4e557568d18f64f59e41f9b02fd348aff97dd24
4 files changed