[WordPress] 外掛分享: WPMU Ldap Authentication

首頁外掛目錄 › WPMU Ldap Authentication
60+
安裝啟用
★★★★
4.3/5 分(3 則評價)
76 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.4+ v5.1 上架:2012-06-12

內容簡介

LDAP驗證是在整個網站(而非每個部落格)層級進行配置,因此只有網路管理員帳戶能夠存取LDAP連接資訊設定。

請確認您的PHP已加入LDAP支援編譯。如選項設置正確,這會顯示在您的phpinfo()中的LDAP部分。

請記得-此外掛的所有程式碼都是由志願者貢獻,您可以通過回饋社區來表達感激之情!

工作原理

啟用此外掛後,它可以自動為LDAP驗證的使用者建立WordPress用戶帳戶和部落格。 假設使用者憑據被LDAP伺服器驗證,創建本地帳戶和部落格將遵循以下算法:

創建一個新的WPMU用戶,其中包含LDAP用戶名和隨機生成的密碼。
某些用戶信息(例如名字和姓氏)從LDAP伺服器返回的訊息中提取。
啟動用戶創建和啟用動作。
根據外掛設定創建用戶的域名/ URL(例如VHost vs SubDir)。
如果選項被設置,則創建部落格,路徑和名稱基於LDAP用戶名,並且該部落格被啟用,使用者被設定為管理員,並觸發適當的操作。

值得注意的是,即使為用戶創建了隨機密碼(對於WPMU帳戶),該密碼也不會顯示給用戶。這是有意為之,以便不會混淆應使用哪個密碼,它總是使用LDAP憑據。因此,如果LDAP被禁用或伺服器不可用,使用LDAP身份驗證創建的用戶將無法登錄,除非重置其密碼。

外掛標籤

開發者團隊

⬇ 下載最新版 (v5.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WPMU Ldap Authentication」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

LDAP authentication is configured on a site-wide (as opposed to per-blog) level, so only Network Admin accounts have access to the configuration to LDAP connection information.
Please make sure you have PHP compiled with LDAP support. This will show up as an LDAP section in your phpinfo() if it is correct.
Remember – all the code for the plugin was contributed by volunteers, and you can show your gratitude by giving back to the community!
How It Works
When enabled, this plugin can automatically create WordPress user accounts and blogs for LDAP-authenticated users. Assuming user credentials authenticate against the LDAP server, creating local accounts and blogs follows this
algorithm:
Create a new WPMU User, with LDAP username and a randomly generated password.
Some user information, such as first and last name, is extracted from the
information returned from the LDAP server.
Actions for user creation and activation are triggered.
The user’s domain / URL are created depending on plugin configuration (i.e.,
VHost vs SubDir).
If the option is set, a blog is created, with path and name based on the LDAP
username and the blog is activated with the user being Administrator, and
appropriate actions are triggered.
It should be noted that even though a random password is created for a user (for WPMU accounts), it is never displayed to the user. This is intentional so that there is no confusion as to which password should be used; it will always be using LDAP credentials. As a result, though, if ever LDAP is disabled or if the server is unavailable, users created with LDAP authentication will be unable to log in unless their passwords are reset.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon