From 5cbc3ed3f97e22cb91023103b6f8c4e8257f313a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=A4rdeman?= Date: Mon, 23 Aug 2021 10:14:42 +0200 Subject: [PATCH] [ldap-contacts-suggestions] Default to localhost instead of 127.0.0.1 No need to default to IPv4 only. --- plugins/ldap-contacts-suggestions/LdapContactsSuggestions.php | 2 +- plugins/ldap-contacts-suggestions/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ldap-contacts-suggestions/LdapContactsSuggestions.php b/plugins/ldap-contacts-suggestions/LdapContactsSuggestions.php index f7134ab10..8a10443b2 100644 --- a/plugins/ldap-contacts-suggestions/LdapContactsSuggestions.php +++ b/plugins/ldap-contacts-suggestions/LdapContactsSuggestions.php @@ -5,7 +5,7 @@ class LdapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges /** * @var string */ - private $sLdapUri = 'ldap://127.0.0.1:389'; + private $sLdapUri = 'ldap://localhost:389'; /** * @var bool diff --git a/plugins/ldap-contacts-suggestions/index.php b/plugins/ldap-contacts-suggestions/index.php index 3a5c06c1e..67ad954de 100644 --- a/plugins/ldap-contacts-suggestions/index.php +++ b/plugins/ldap-contacts-suggestions/index.php @@ -74,7 +74,7 @@ class LdapContactsSuggestionsPlugin extends \RainLoop\Plugins\AbstractPlugin return array( \RainLoop\Plugins\Property::NewInstance('ldap_uri')->SetLabel('LDAP URI') ->SetDescription('LDAP server URI(s), space separated') - ->SetDefaultValue('ldap://127.0.0.1:389'), + ->SetDefaultValue('ldap://localhost:389'), \RainLoop\Plugins\Property::NewInstance('use_start_tls')->SetLabel('Use StartTLS') ->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL) ->SetDefaultValue(True),