I am working on migrating a script (written in perl) that collects information on a specified user and reports back on the status of the users account with regards to whether or not it's locked. On trusted systems it obtained the information by parsing the contents of the user's /tcb/files/auth//$user file or the output of getprpw commands.
That method is not available on systems using SMSE and while I've been able to figure out how to get some of the same info other pieces of info have turned out to be elusive to me.
If anyone has any insight into how I can obtain the following information on a user's profile from a system using SMSE (HP-UX 11.31) I would be most grateful, if it's possible at all:
Date/time of the Last Un-successful password change attempt for $user
Consecutive number of Unsuccesful Logins by $user.
Something comparable to the "lockout" field from the trusted systems auth files.* That field had a 7 characters and depending on where a "1" appeared instead of a "0" it would indicate why a user's account was disabled/locked.
* - I think it's likely that the trusted system's lockout field has no analog in SMSE and that I will simply have to test for the various lockout conditions by comparing date-times, the various pertinent fields in /etc/passwd and /etc/shadow or the output of "#passwd -s $user".
Thank you in advance for your input ladies and gentlemen, have a great one!
--Tim