Operating System - HP-UX
1825643 Members
3537 Online
109685 Solutions
New Discussion

trusted system info manipulation

 
The Valspar Corporation
Occasional Contributor

trusted system info manipulation

I am a sys admin running hpux 10.20 and hpux 11.0, both in Trusted Systems mode. I need to create utilities for verifying and changing passwords, and for determining the number of days left until password expiration. I was able to get the password verification working using "getprpwuid", and comparing the "fd_encrypt" field with the encrypted version of the password passed in to my program (using the salt from fd_encrypt). I was able to get password changing accomplished by encrypting the new password (with a randomly generated salt) and storing the new encrypted password in the "fd_encrypt" field, followed by performing a "putprpwnam". I then run the system command "modprpw -v " for hpux 10.20 or "modprpw -l -v " for hpux 11.0. However, from the man pages and searching the ITRC I have not been able to determine how to extract the number of days until password expiration. The "fd_expire" field shows zero. I'd really appreciate any help, but a working C code snippet would be fabulous.

From what I've seen from postings on the ITRC it certainly sounds like a much more detailed reference about manipulation of the trusted systems database would help A LOT of sys admins. Whadyasay HP? : )