From da61c6ef72abd54d98e9b1aa4300dba6a0eff3f0 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 11 Nov 2013 15:16:54 +0100 Subject: LDAP Wizard: determine port without credentials. don't hide the port input field --- apps/user_ldap/lib/wizard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/user_ldap/lib') diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php index 7e8ea0696a7..0b2a6a540ff 100644 --- a/apps/user_ldap/lib/wizard.php +++ b/apps/user_ldap/lib/wizard.php @@ -995,9 +995,9 @@ class Wizard extends LDAPUtility { //In case the port is already provided, we will check this first if($port > 0) { $hostInfo = parse_url($host); - if(is_array($hostInfo) + if(!(is_array($hostInfo) && isset($hostInfo['scheme']) - && stripos($hostInfo['scheme'], 'ldaps') === false) { + && stripos($hostInfo['scheme'], 'ldaps') !== false)) { $portSettings[] = array('port' => $port, 'tls' => true); } $portSettings[] =array('port' => $port, 'tls' => false); -- cgit v1.2.3