diff --git a/proxmox/pve/altinea-ldap-sync.service b/proxmox/pve/altinea-ldap-sync.service new file mode 100644 index 0000000..63c3659 --- /dev/null +++ b/proxmox/pve/altinea-ldap-sync.service @@ -0,0 +1,15 @@ +# This service updates LDAP users and groups within PVE database +# By Julien Escario @ Altinea +# Licensed under GPL V2 +# + +[Unit] +Description=Synchronise Altinea's LDAP auth backend within PVE +Wants=altinea-ldap-sync.timer + +[Service] +Type=oneshot +ExecStart=pveum realm sync LDAP-Altinea + +[Install] +WantedBy=multi-user.target diff --git a/proxmox/pve/altinea-ldap-sync.timer b/proxmox/pve/altinea-ldap-sync.timer new file mode 100644 index 0000000..26b394f --- /dev/null +++ b/proxmox/pve/altinea-ldap-sync.timer @@ -0,0 +1,15 @@ +# This timer is responsible for running the correspondant service unit +# By Julien Escario @ Altinea +# Licensed under GPL V2 +# + +[Unit] +Description=Synchronise Altinea's LDAP auth backend within PVE +Requires=altinea-ldap-sync.service + +[Timer] +Unit=altinea-ldap-sync.service +OnCalendar=Daily + +[Install] +WantedBy=timers.target