소스 검색

Ldap connection to non standard port

port not used in ldap_connect
Baji Zsolt 6 년 전
부모
커밋
a6a0afb5a5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/authentication/resources/classes/plugins/ldap.php

+ 1 - 1
core/authentication/resources/classes/plugins/ldap.php

@@ -41,7 +41,7 @@ class plugin_ldap {
 			}
 			$host = $_SESSION["ldap"]["server_host"]["text"];
 			$port = $_SESSION["ldap"]["server_port"]["numeric"];
-			$connect = ldap_connect($host)
+			$connect = ldap_connect($host,$port)
 				or die("Could not connect to the LDAP server.");
 			//ldap_set_option($connect, LDAP_OPT_NETWORK_TIMEOUT, 10);
 			ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);