DD-IX Enrollment Helpers
  • Python 97.2%
  • Elixir 2.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-02-04 21:18:37 +01:00
.gitignore Initial commit 2024-02-04 16:17:44 +01:00
create-invites.py create: fix invite naming, only slugs are allowed 2024-02-04 21:18:37 +01:00
enroll.ini send: add script and expire handling 2024-02-04 18:48:40 +01:00
README.md send: add script and expire handling 2024-02-04 18:48:40 +01:00
send-invites.py send: add script and expire handling 2024-02-04 18:48:40 +01:00
tokens.ini.ex send: implement sending invites using listmonk api 2024-02-04 18:04:43 +01:00

DD-IX Enrollment Helpers

This little helper scripts creates user enrollment invites and sends them via email using listmonk.

Prerequisites

  • authentik: get a api token from a user with permissions to create user invites
  • listmonk: get a api token for sending mails
  • put the credentials in the tokens.ini file (template: tokens.ini.ex)

create-invites.py

This script creates the invites in authentik:

  • prepare a csv file (username, full name, email)
  • ./create-invites.py < enroll.csv > invites.csv

The script prints the csv file with an additional invite uuid. The output is to be parsed by the send-invites.py script.

send-invites.py

This script send the invites via listmonk:

  • use the csv file from the first step (username, full name, email, itoken, expire)
  • ./send-invites.py < invites.csv