"網站建置技術文件" 修訂間的差異
行 1: | 行 1: | ||
==開放以LDAP帳號登入認證== | ==開放以LDAP帳號登入認證== | ||
− | + | :1、在 /usr/local/etc/openldap/ldap.conf 中加上一行 | |
::: TLS_REQCERT never | ::: TLS_REQCERT never | ||
− | + | :2、修改MediaWiki設定檔LocalSettings.php,增加以下內容 | |
:::require_once( 'extensions/LdapAuthentication.php'); | :::require_once( 'extensions/LdapAuthentication.php'); | ||
:::$wgAuth = new LdapAuthenticationPlugin(); | :::$wgAuth = new LdapAuthenticationPlugin(); |
於 2008年1月31日 (四) 04:00 的修訂
開放以LDAP帳號登入認證
:1、在 /usr/local/etc/openldap/ldap.conf 中加上一行
- TLS_REQCERT never
:2、修改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;