diff options
author | link0ff <juri@linkov.net> | 2019-02-22 15:03:43 +0200 |
---|---|---|
committer | link0ff <juri@linkov.net> | 2019-02-22 15:03:43 +0200 |
commit | e278d470232f4e8081bbbe358137400074673e75 (patch) | |
tree | a418de7b436981011da1c592bcc3d9fab15ddd29 /config | |
parent | 5a4e2905fecfd21cf92f6b2844f15f5ee84b33f5 (diff) | |
download | pleroma-e278d470232f4e8081bbbe358137400074673e75.tar.gz pleroma-e278d470232f4e8081bbbe358137400074673e75.zip |
OpenLDAP support
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs index 6119aaea1..28d93e086 100644 --- a/config/config.exs +++ b/config/config.exs @@ -344,6 +344,15 @@ config :pleroma, Pleroma.Jobs, federator_outgoing: [max_jobs: 50], mailer: [max_jobs: 10] +config :pleroma, :ldap, + enabled: System.get_env("LDAP_ENABLED") == "true", + host: System.get_env("LDAP_HOST") || "localhost", + port: String.to_integer(System.get_env("LDAP_PORT") || "389"), + ssl: System.get_env("LDAP_SSL") == "true", + sslopts: [], + base: System.get_env("LDAP_BASE") || "dc=example,dc=com", + uid: System.get_env("LDAP_UID") || "cn" + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{Mix.env()}.exs" |