diff --git a/plugins/ldap-login-mapping/README b/plugins/ldap-login-mapping/README index b12d3a77e..59e065d6b 100644 --- a/plugins/ldap-login-mapping/README +++ b/plugins/ldap-login-mapping/README @@ -1 +1 @@ -Plugin which allows you to set up LDAP username by email address (when IMAP/SMTP requires it) +This plugins allows to authenticate using LDAP mail field, yet login field would still be used for IMAP and SMTP authentication. diff --git a/plugins/ldap-login-mapping/index.php b/plugins/ldap-login-mapping/index.php index 73d8fae9c..01a05a50a 100644 --- a/plugins/ldap-login-mapping/index.php +++ b/plugins/ldap-login-mapping/index.php @@ -8,12 +8,12 @@ class LDAPLoginMappingPlugin extends AbstractPlugin { const NAME = 'LDAP login mapping', - VERSION = '2.3', + VERSION = '2.4', AUTHOR = 'RainLoop Team, Ludovic Pouzenc, ZephOne', - RELEASE = '2024-09-20', + RELEASE = '2024-01-09', REQUIRED = '2.36.1', CATEGORY = 'Login', - DESCRIPTION = 'Enable custom mapping using ldap field'; + DESCRIPTION = 'This plugins allows to authenticate using LDAP mail field, yet login field would still be used for IMAP and SMTP authentication'; /** * @var array */ @@ -104,6 +104,7 @@ class LDAPLoginMappingPlugin extends AbstractPlugin $sResult = $this->ldapSearch($sEmail); if ( is_array($sResult) ) { $sImapUser = $sResult['login']; + $sSmtpUser = $sResult['login']; $sEmail = $sResult['email']; } syslog(LOG_WARNING, "plugins/ldap-login-mapping/index.php:FilterLoginДredentials() auth try: $sIP/$sEmail, resolved as $sImapUser/$sEmail");