Joomla 1.5與Windows AD整合

  花了很多時間,終於成功把Windows 2000 Server的AD與Joomla 1.5.x帳號做整合,來分享一下設定方式~

  1. 首先,請先至「外掛管理」將「使用者認証LDAP」啟用
  2. 開啟php.ini找到";extension=php_ldap.dll"將前面的分號拿掉存檔可以的話重啟一下服務。(如果你是用AppServphp.ini可以在 開始所有程式AppServConfiguration Server找到)
  3. 回到Joomla 「使用者認証LDAP」裡開始設定「外掛參數」這邊假設我的網域是abc.com.tw做範例~

主機abc.com.tw
通訊埠389
LDAP V3(You can use LDAP Browser here for testing,If I choose V2 it will be gibberish,So~)
Negotiate TLS:No
Follow reference information:No
Authentication method:Bind and search(我如果選"直接繫結為會員"會失敗)
Base DN:cn=users,dc=abc,dc=com,dc=tw
Search string:sAMAcountName=[search](Indicates searching for the sAMAcountName parameter,Parameter information can also be viewed through LDAP Browser)
Users DN:Blank

Connection username:cn=Wang Daming,cn=users,dc=abc,dc=com,dc=tw
Connection password:Wang Daming's password

MAP:Full Name:DisplayName(o邊表示Joomla會去抓王大明這帳號的DisplayName參數做為名稱所以這邊如果沒打名稱可能就是用ID來表示一樣可以透過LDAPBrower去看你要帶哪個參數)
MAP:E-mailmail(同上把該帳號mail參數的值帶進Joomla的mail欄位)
MAP:User IDsAMAcountName(AD帳號對應到Joomla帳號)

設定好後到登入王大明的帳號比如~john應該就可以登入成功
同時在後台也可以看到自動產生John的這組帳號名稱跟mail也會帶進來

最後,好用的ldapbrower請直接透過Google搜尋下載
官網有時好像秀抖秀抖的~記得要安裝JRE才能run

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.