[WordPress] 外掛分享: SoJ CAS/LDAP Login

首頁外掛目錄 › SoJ CAS/LDAP Login
全新外掛
安裝啟用
尚無評分
6195 天前
最後更新
問題解決
WordPress 2.0+ v1.0 上架:2009-03-31

內容簡介

這個外掛只是開發用途,並不適合在正式網站上使用。

這個外掛是為了提供參考而開發的。我曾和許多有類似設置的人交流,並想分享一些程式碼。

該外掛允許使用者通過 CAS 進行驗證,並且可以透過 LDAP 控制登錄。預設的使用者角色可基於 LDAP 群組成員身份分配,並且可以為 LDAP 中存在但尚未在 WordPress 中創建的使用者自動創建帳戶。

假設對於 CAS 驗證,使用者會被重定向到外部地址,然後返回到參考地址;這是我所在的地方的作法。您還可以在 LDAP 中指定一個群組,該群組將始終具有管理員權限;這對技術人員很有用。

在使用該外掛之前,必須填寫 soj-ldap_constants.inc.php 中的常數。CAS 的預設密碼是使用者在 WordPress 中註冊時所使用的密碼。請注意這一點。當然,在這方面還可以做更多,我很樂意和想法的人一起工作。

我是從一個內部插件中改編的,所以可能還有一些殘留的程式碼片段或看起來奇怪的東西……請隨時問我,我是有點草率地完成這個。

我只在一個環境中使用過這個外掛,所以它可能不能立即適用於您的環境。但我對讓這個外掛更為穩健感興趣,因此請告訴我任何問題。

聯繫我:[email protected]

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「SoJ CAS/LDAP Login」→ 直接安裝(推薦)

原文外掛簡介

THIS IS FOR DEVELOPMENT PURPOSES, NOT FOR USE ON PRODUCTION SITES
This plugin is meant to be a reference; I’ve talked to several people who have similar setups, and thought it would beneficial to share some code.
This plugin allows users to be authenticated via CAS, and logins to be controlled via LDAP. Default user roles can be assigned based on LDAP group membership, and accounts can be auto-created for users that exist in LDAP, but not yet in WordPress.
It assumes that, for CAS authentication, the user is redirected to an outside address, then back to the referring address; that’s how it works where I’m at :-). You can also specify a group in LDAP that will always have admin privileges; useful for tech staff.
Before the plugin is used, the constants in soj-ldap_constants.inc.php must be filled out. The CAS default password is the one the user is registered with in WordPress; so all WP users will have this password. Be aware of that. There is obviously more that could be done there, and I’m happy to work with others who have ideas.
I’ve adapted this from an in-house plugin I made, so there might be leftover code bits or things that look strange… feel free to harass me about that, I did this in a bit of a rush.
I’ve only ever used this plugin on one environment, so it might not work out-of-the-box for you. I’m interested in making this plugin more robust, however, so please let me know of any issues.
Contact me: [email protected]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon