Skip to main content

FreeIPA password expriation and locked user notifier

Project description

FreeIPA Notification

Notify IPA Users for password expiration and locked users to admin

  1. Obtain a keytab with ipa-getkeytab
  2. Run the command in noop mode for a successful user listing
  3. Create a script with proper permissions under /usr/local/sbin/
  4. 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


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.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

ipa_notify-0.1.2-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file ipa-notify-0.1.2.tar.gz.

File metadata

  • Download URL: ipa-notify-0.1.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for ipa-notify-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fc2fcfea2c4df49e61616deff07e56dfd662fd9346eded38a9afeb7a74b538e3
MD5 9904d0a3d70091d77e992a1b98f99956
BLAKE2b-256 11ff8239755e421534ee6718ccb5a4f6fd9862738090d612a5db2f3bd208bc26

See more details on using hashes here.

File details

Details for the file ipa_notify-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ipa_notify-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for ipa_notify-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a52f435fad0fca47ef44f03d1fe9522b46afffd7f4119fe699db979e003c70d
MD5 bc73be7bfa6863cb8fed1e03fd511db7
BLAKE2b-256 1d9c450eb491d30694a2263da716de72b6750ecd7235a644e5629bd873c2a1e0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page