浏览代码

default to imap server address

tokul 20 年之前
父节点
当前提交
354961a4a9
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      plugins/change_password/backend/ldap.php

+ 4 - 1
plugins/change_password/backend/ldap.php

@@ -7,6 +7,9 @@
  * @subpackage change_password
  */
 
+/** get imap server global */
+global $imapServerAddress;
+
 /** Default plugin configuration.*/
 /**
  * Address of ldap server.
@@ -22,7 +25,7 @@
  * @global string $cpw_ldap_server
  */
 global $cpw_ldap_server;
-$cpw_ldap_server='localhost';
+$cpw_ldap_server=$imapServerAddress;
 
 /**
  * Port of ldap server.