forked from RainLoop/rainloop-webmail
-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1454 from S-A-L13/master
Added function for ldap-identities plugin to filter by mail prefixes (allow compatibility for e.g. Exchange and others)
- Loading branch information
Showing
3 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ class LdapIdentitiesPlugin extends AbstractPlugin | |
{ | ||
const | ||
NAME = 'LDAP Identities', | ||
VERSION = '2.2', | ||
VERSION = '2.3', | ||
AUTHOR = 'FWest98', | ||
URL = 'https://github.com/FWest98', | ||
RELEASE = '2024-02-22', | ||
RELEASE = '2024-02-27', | ||
REQUIRED = '2.20.0', | ||
CATEGORY = 'Accounts', | ||
DESCRIPTION = 'Adds functionality to import account identities from LDAP.'; | ||
|
@@ -57,13 +57,19 @@ protected function configMapping(): array | |
->SetLabel("LDAP Protocol Version") | ||
->SetType(PluginPropertyType::SELECTION) | ||
->SetDefaultValue([2, 3]), | ||
|
||
Property::NewInstance(LdapConfig::CONFIG_STARTTLS) | ||
->SetLabel("Use StartTLS") | ||
->SetType(PluginPropertyType::BOOL) | ||
->SetDescription("Whether or not to use TLS encrypted connection") | ||
->SetDefaultValue(true), | ||
|
||
Property::NewInstance(LdapConfig::CONFIG_MAIL_PREFIX) | ||
->SetLabel("Email prefix") | ||
->SetType(PluginPropertyType::STRING) | ||
->SetDescription("Only addresses with this prefix will be used as identity. The prefix is removed from the identity list.\nThis is useful for example to import identities from Exchange, which stores mail addresses in the ProxyAddresses attribut of Active Directory with \"smtp:\" as prefix. (e.g. \"smtp:[email protected]\")\n-> To use addresses set by Exchange use \"smtp:\" as prefix.") | ||
->SetDefaultValue(""), | ||
|
||
Property::NewInstance(LdapConfig::CONFIG_BIND_USER) | ||
->SetLabel("Bind User DN") | ||
->SetDescription("The user to use for binding to the LDAP server. Should be a DN or RDN. Leave empty for anonymous bind") | ||
|