WordPress的LDAP外掛

(1)wpDirAuth

外掛網頁:http://wordpress.org/plugins/wpdirauth/

下載回來解壓縮 放置 wp-contents/plugins 目錄下,啟用外掛

設定

Enable Directory Authentication? 選 是才可以用LDAP帳號登入

Require SSL Login? 選否(TLS和一般) 選 是(SSL)

Enable SSL Connectivity? 選 TLS (SSL 和 none 一般 )

Directory Servers (Domain Controllers) 填 server_url

Account Filter 填 uid

Account Suffix 可以不設

Base DN 填 ou=people,dc=example,dc=org

Bind DN 填 cn=Manga,ou=systemaccount,dc=example,dc=org

Bind Password 填 密碼

Confirm Password 再確認一次密碼

其他的選項 保留預設值即可

這個選項是將 Ldap 的帳號寫入 wordpress 的資料庫

 

(2)authLDAP

外掛網頁:https://tw.wordpress.org/plugins/authldap/

設定

Enable Authentication via LDAP?: Yes – check this checkbox.

LDAP URI: ldap://localhost/dc=eastkingdom,dc=org

Name-Attribute: givenName(uid)

Second Name Attribute: sn

Group Attribute: mail

Group Filter: (&(objectClass=groupOfNames)(member=%dn%))