Skip to content

Instantly share code, notes, and snippets.

View tmidi's full-sized avatar

Taleeb Midi tmidi

View GitHub Profile
@tmidi
tmidi / ipa_mail_passexpiration.sh
Created April 3, 2018 20:35 — forked from miticojo/ipa_mail_passexpiration.sh
send email for password expiration
#!/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