proxmox: add LDAP user sync script

Since OIDC auth doesn’t support groups, get them from AD over LDAP.

Add a script to fetch user and groups, and update /etc/pve/user.cfg. The
script is only installed on one node (first alphabetically), with a cron
job to run it daily.

The script is installed for clusters with the sync-ldap context key set
to a corresponding OIDC realm. The keys ldap_user and ldap_pass must be
present in the password store under cluster/<name>.
This commit is contained in:
Timotej Lazar 2024-05-14 12:04:35 +02:00
parent 5762236ac2
commit 3f53c84865
3 changed files with 86 additions and 0 deletions

View file

@ -52,3 +52,5 @@
- include_tasks: firewall.yml
- include_tasks: frr.yml
- include_tasks: user.yml