This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Source: http://vmhacks.com/freeipa-password-expiry-notification-script-for-red-hat-identity-management/ | |
# notifies people a set number of days before expiry, once via email | |
# open a kerberos ticket using keytab authentication | |
# the following keytab file was made using ktutil with rc4-hmac | |
/usr/bin/kinit admin@YOURDOMAIN.COM -k -t /sextoys/admin.keytab |