FreeIPA password expriation and locked user notifier
Project description
FreeIPA Notification
Notify IPA Users for password expiration and locked users to admin
- Obtain a keytab with
ipa-getkeytab
- Run the command in
noop
mode for a successful user listing - Create a script with proper permissions under
/usr/local/sbin/
- Add a crontab entry. For example
0 0 * * * root ipa_notify.sh > /var/log/ipa_notify.log
Parameters:
$ ipa-notify --help
usage: ipa_notify.py [-h] [--server SERVER] [--verify-ssl] [--no-verify-ssl] [--principal PRINCIPAL] [--keytab KEYTAB] [--groups GROUPS [GROUPS ...]] [--limit LIMIT] [--smtp-host SMTP_HOST] [--smtp-port SMTP_PORT]
[--smtp-user SMTP_USER] [--smtp-pass SMTP_PASS] [--smtp-from SMTP_FROM] [--admin ADMIN] [--noop NOOP] [--loglevel {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}]
IPA Notifier
optional arguments:
-h, --help show this help message and exit
--server SERVER ipa server fqdn
--verify-ssl verify ipa connection SSL cert (default)
--no-verify-ssl do not verify ipa connection SSL cert
--principal PRINCIPAL
user principal for kerberos authentication
--keytab KEYTAB keytab path
--groups GROUPS [GROUPS ...]
list of user groups to check
--limit LIMIT number of days before notifying a user
--smtp-host SMTP_HOST
smtp host for sending email
--smtp-port SMTP_PORT
smtp port for sending email
--smtp-user SMTP_USER
smtp user login
--smtp-pass SMTP_PASS
smtp user password
--smtp-from SMTP_FROM
smtp from email address
--admin ADMIN admin user email to notify about locked users
--noop NOOP no operation mode. Do not send emails
--loglevel {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}
log level
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ipa-notify-0.1.4.tar.gz
(4.6 kB
view hashes)
Built Distribution
ipa_notify-0.1.4-py3-none-any.whl
(12.0 kB
view hashes)
Close
Hashes for ipa_notify-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ea9346e03025e838af671ed7ab34fa86de5944643065fb3d2165ee6e87f9fba |
|
MD5 | 65b339b50a86ddb41b8b4b4fadac36da |
|
BLAKE2b-256 | 551915d8181c969676f9e5665c6f216ca1ff952ed93dea074fc9a6f966846c1e |