From f3e671a6456c1e208487188e04861edd7f396146 Mon Sep 17 00:00:00 2001 From: erebion Date: Wed, 11 Jan 2023 01:06:23 +0100 Subject: [PATCH] fix what changed are allowed or not --- host_vars/unhb4/authentik.yml | 2 ++ roles/authentik_docker/templates/.env.j2 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/host_vars/unhb4/authentik.yml b/host_vars/unhb4/authentik.yml index 3f14743..68c74e2 100644 --- a/host_vars/unhb4/authentik.yml +++ b/host_vars/unhb4/authentik.yml @@ -9,4 +9,6 @@ authentik_email_timeout: "10" authentik_port_http: "9000" authentik_port_https: "9443" authentik_domain: "auth.un-hack-bar.de,auth.unhb.de" +authentik_allow_users_to_change_email: "false" # disable emailaddress changes to avoid emailaddress collisions +authentik_allow_users_to_change_names: "true" # enables name changes authentik_allow_users_to_change_usernames: "false" # disable username changes to avoid username collisions diff --git a/roles/authentik_docker/templates/.env.j2 b/roles/authentik_docker/templates/.env.j2 index 8cb3f53..905f999 100644 --- a/roles/authentik_docker/templates/.env.j2 +++ b/roles/authentik_docker/templates/.env.j2 @@ -16,4 +16,6 @@ AUTHENTIK_EMAIL__TIMEOUT={{ authentik_email_timeout }} AUTHENTIK_EMAIL__FROM={{ authentik_email_from }} AUTHENTIK_PORT_HTTP={{ authentik_port_http }} AUTHENTIK_PORT_HTTPS={{ authentik_port_https }} +AUTHENTIK_DEFAULT_USER_CHANGE_EMAIL={{ authentik_allow_users_to_change_email }} +AUTHENTIK_DEFAULT_USER_CHANGE_NAME={{ authentik_allow_users_to_change_names }} AUTHENTIK_DEFAULT_USER_CHANGE_USERNAME={{ authentik_allow_users_to_change_usernames }}