[ldap-contacts-suggestions] Update defaults

Since multiple LDAP attributes are supported for the user name/email,
there's no harm in having defaults that are a bit more flexible
(for example, "givenName" is commonly only the users first name,
while a full name is usually preferable as an email recipient).
This commit is contained in:
David Härdeman 2021-08-22 12:54:02 +02:00
parent 8e9cef4f78
commit f3b6cd08f0
2 changed files with 7 additions and 7 deletions

View file

@ -25,7 +25,7 @@ class LdapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges
/**
* @var string
*/
private $sBaseDn = '';
private $sBaseDn = 'ou=People,dc=example,dc=com';
/**
* @var string
@ -40,12 +40,12 @@ class LdapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges
/**
* @var string
*/
private $sNameField = 'givenName';
private $sNameField = 'displayName,cn,givenName,sn';
/**
* @var string
*/
private $sEmailField = 'mail';
private $sEmailField = 'mailAddress,mail,mailAlternateAddress,mailAlias';
/**
* @var \MailSo\Log\Logger
@ -55,7 +55,7 @@ class LdapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges
/**
* @var string
*/
private $sAllowedEmails = '';
private $sAllowedEmails = '*';
/**
* @param string $sLdapUri