mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Also map sSmtpUser to ldap login in plugin ldap-login-mapping
This commit is contained in:
parent
fad9d5e482
commit
ed4b2dd4e1
1 changed files with 3 additions and 2 deletions
|
|
@ -8,9 +8,9 @@ class LDAPLoginMappingPlugin extends AbstractPlugin
|
|||
{
|
||||
const
|
||||
NAME = 'LDAP login mapping',
|
||||
VERSION = '2.3',
|
||||
VERSION = '2.4',
|
||||
AUTHOR = 'RainLoop Team, Ludovic Pouzenc<ludovic@pouzenc.fr>, ZephOne<zephone@protonmail.com>',
|
||||
RELEASE = '2024-09-20',
|
||||
RELEASE = '2024-01-09',
|
||||
REQUIRED = '2.36.1',
|
||||
CATEGORY = 'Login',
|
||||
DESCRIPTION = 'This plugins allows to authenticate using LDAP mail field, yet login field would still be used for IMAP and SMTP authentication';
|
||||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue