Title: SoJ CAS/LDAP Login
Author: sojweb
Published: <strong>2009 年 4 月 1 日</strong>
Last modified: 2009 年 4 月 1 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/soj-casldap.svg)

# SoJ CAS/LDAP Login

 作者：[sojweb](https://profiles.wordpress.org/sojweb/)

[下载](https://downloads.wordpress.org/plugin/soj-casldap.zip)

 * [详情](https://cn.wordpress.org/plugins/soj-casldap/#description)
 * [评价](https://cn.wordpress.org/plugins/soj-casldap/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/soj-casldap/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/soj-casldap/#developers)

 [支持](https://wordpress.org/support/plugin/soj-casldap/)

## 描述

**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: jj56@indiana.edu

## 安装

 1. Edit `soj-ldap_constants.inc.php` to contain the appropriate values.
 2. Upload the folder to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

Nothing here yet.

## 评价

此插件暂无评价。

## 贡献者及开发者

「SoJ CAS/LDAP Login」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ sojweb ](https://profiles.wordpress.org/sojweb/)

[帮助将「SoJ CAS/LDAP Login」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/soj-casldap)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/soj-casldap/)，查看[SVN仓库](https://plugins.svn.wordpress.org/soj-casldap/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/soj-casldap/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/soj-casldap/)。

## 额外信息

 *  版本 **1.0**
 *  最后更新：**17 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 2.0 或更高版本 **
 *  已测试的最高版本为 **2.7.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/soj-casldap/)
 * 标签
 * [cas](https://cn.wordpress.org/plugins/tags/cas/)[ldap](https://cn.wordpress.org/plugins/tags/ldap/)
 *  [高级视图](https://cn.wordpress.org/plugins/soj-casldap/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/soj-casldap/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/soj-casldap/reviews/)

## 贡献者

 *   [ sojweb ](https://profiles.wordpress.org/sojweb/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/soj-casldap/)