Operating System - HP-UX
1833590 Members
3969 Online
110061 Solutions
New Discussion

Password Aging Warning Notification Message to be sent to Exchange Mailbox

 
Steven Gabriel_1
Occasional Contributor

Password Aging Warning Notification Message to be sent to Exchange Mailbox

Hi All
I know personally that when your password is about to expire, you will receive a message at your terminal/PC upon login. What I would like to see is this same message sent to Exchange mailbox via "mail -s or Sendmail".
I know that mail aliases will need to be created which will include outside mailboxes but
Where is this source file that the system calls to generate this warning message and it is configurable to add in the external mailing option.
If not, does anyone have a script (shell or Perl) they are willing to share that does this same tasking?
This will eliminate the user community complaining that they did not see their warning message. By having this sent to their mailbox will be additional proof that this warning messages actually exist.
Thanks for all your help and I look forward to your replies

Steven Gabriel
1 REPLY 1
Rod McLean
Occasional Advisor

Re: Password Aging Warning Notification Message to be sent to Exchange Mailbox

Hi Steven,
I've got a similar requirement and found some useful stuff by searching the forums. I've attached a perl script originally posted by Clay. I haven't had a chance to do anything with it yet. The original question and answere were as follows:-


On April 05, 2002 07:43 AM GMT Michael Kan asked: How to determine number of days left till password expire?


A. Clay Stephenson replied:
You were fortunate in that I already had a Perl script to do this. Note that in a non-trusted environment the expiration is encoded as the number of weeks left in base64. Man 4 passwd for details.

If you execute pwwarn.pl user1 [user2 ...], it will output a line for each user like this
user1 4096
user2 2
user3 0

Where the number is the number of weeks left. 4096 (64 * 64) indicates that this passwd does not expire.