"網站建置技術文件" 修訂間的差異

出自 NCUCCWiki
前往: 導覽搜尋
行 2: 行 2:
 
#在 /usr/local/etc/openldap/ldap.conf 中加上一行
 
#在 /usr/local/etc/openldap/ldap.conf 中加上一行
 
::: TLS_REQCERT    never
 
::: TLS_REQCERT    never
 +
#修改MediaWiki設定檔LocalSettings.php,增加以下內容
 +
:::require_once( 'extensions/LdapAuthentication.php');
 +
:::$wgAuth = new LdapAuthenticationPlugin();
 +
:::$wgLDAPDomainNames = array("Portal");
 +
:::$wgLDAPEncryptionType = array('Portal' => 'ssl');
 +
:::$wgLDAPServerNames = array("Portal"=>"140.115.17.30");
 +
:::$wgLDAPSearchStrings = array("Portal"=>"uid=USER-NAME,ou=People,dc=cc,dc=ncu");$wgLDAPUseLocal = true;
 +
:::$wgLDAPAddLDAPUsers = false;
 +
:::$wgLDAPUpdateLDAP = false;
 +
:::$wgLDAPMailPassword = false;
 +
:::$wgLDAPRetrievePrefs = false;
 +
:::$wgMinimalPasswordLength = 1;

於 2008年1月31日 (四) 03:59 的修訂

開放以LDAP帳號登入認證

  1. 在 /usr/local/etc/openldap/ldap.conf 中加上一行
TLS_REQCERT never
  1. 修改MediaWiki設定檔LocalSettings.php,增加以下內容
require_once( 'extensions/LdapAuthentication.php');
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array("Portal");
$wgLDAPEncryptionType = array('Portal' => 'ssl');
$wgLDAPServerNames = array("Portal"=>"140.115.17.30");
$wgLDAPSearchStrings = array("Portal"=>"uid=USER-NAME,ou=People,dc=cc,dc=ncu");$wgLDAPUseLocal = true;
$wgLDAPAddLDAPUsers = false;
$wgLDAPUpdateLDAP = false;
$wgLDAPMailPassword = false;
$wgLDAPRetrievePrefs = false;
$wgMinimalPasswordLength = 1;