summaryrefslogtreecommitdiff
path: root/config/description.exs
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-09-17 13:36:46 -0400
committerMark Felder <feld@feld.me>2024-09-17 13:40:15 -0400
commit363b462c54c454e847072869db09f8f4d5da4426 (patch)
treed947371c4a27c20c84a8c0987298c47edec64828 /config/description.exs
parent14a9663f1abe49b8f4f4f719fa2f4db3a5dd81b7 (diff)
downloadpleroma-363b462c54c454e847072869db09f8f4d5da4426.tar.gz
pleroma-363b462c54c454e847072869db09f8f4d5da4426.zip
Make the email attribute configurable
While here, fix the System.get_env usage to use the normal fallback value method and improve the UID label description
Diffstat (limited to 'config/description.exs')
-rw-r--r--config/description.exs9
1 files changed, 8 insertions, 1 deletions
diff --git a/config/description.exs b/config/description.exs
index 5062842f0..e85ec0ff8 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -2280,7 +2280,7 @@ config :pleroma, :config_description, [
},
%{
key: :uid,
- label: "UID",
+ label: "UID Attribute",
type: :string,
description:
"LDAP attribute name to authenticate the user, e.g. when \"cn\", the filter will be \"cn=username,base\"",
@@ -2291,6 +2291,13 @@ config :pleroma, :config_description, [
label: "CACertfile",
type: :string,
description: "Path to CA certificate file"
+ },
+ %{
+ key: :mail,
+ label: "Mail Attribute",
+ type: :string,
+ description: "LDAP attribute name to use as the email address when automatically registering the user on first login",
+ suggestions: ["mail"]
}
]
},