Title: Simple AD Authentication
Author: drahkar
Published: <strong>2009 年 7 月 23 日</strong>
Last modified: 2011 年 1 月 12 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/simple-ad-authentication.svg)

# Simple AD Authentication

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

[下载](https://downloads.wordpress.org/plugin/simple-ad-authentication.zip)

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

 [支持](https://wordpress.org/support/plugin/simple-ad-authentication/)

## 描述

This plugin allows WordPress to authenticate users against an Active Directory.

Developed to be compatible with current Active Directory releases as well as allow
for Enterprise level Forest Deployments by allowing you to enter custom BaseDNs.

If you have bugs, suggestions, desires or requirements that you would like to see
added
 to this, please come to the plugin page and submit them there so I can keep
track of them as they are found and resolved.

This plugin is redeveloped off of [Simple LDAP
 Authentication
.

#### How to use

You can use this plugin in a few different ways.

 1. You can create WordPress accounts which match the names of your Active Directory
    accounts, and create these users from within the WordPress Users panel. Only the
    users you create in WordPress will be able to log in.
 2. You can tick a checkbox so that anyone who can authenticate via Active Directory
    can log on. A WordPress account will be automatically created for the user if one
    does not already exist, with the default user role.
 3. You can list the names of Active Directory groups who you want to allow to log 
    on to WordPress. For each group in Active Directory, you can specify a corresponding
    WordPress user role.

You can also combine the above however you like.

## 安装

IMPORTANT NOTE: This plugin requires the PHP LDAP module and a LDAP library such
as OpenLDAP to be installed to function.

 1. Login as an existing Administrator, such as admin.
 2. Upload the folder named `simple-ad-authentication` to your plugins folder, usually`
    wp-content/plugins`.
 3. Activate the plugin on the Plugins screen.

Note: This plugin has only been tested with WordPress 2.7.1 and above, and I do 
not think it will work on older versions of WordPress.

## 常见问题

  This plugin supports Active Directory?

Yes.
 This plugin only supports Active Directory bind and can not be garuanteed 
to work with LDAP.

  Can I customize LDAP search filter?

No.
 All searches are based around Active Directory search functions and should 
be tailored that way.

  How do I use debug mode?

This plugin has a built-in debug mode.
 When `WP_DEBUG` is enabled in `wp-config.
php`, it will turn on the notices that some authenticatin information are added 
on the log entry. If you don’t know how to define the constant, see [WordPress document](https://codex.wordpress.org/Editing_wp-config.php#Debug).

## 评价

此插件暂无评价。

## 贡献者及开发者

「Simple AD Authentication」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Simple AD Authentication」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-ad-authentication)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.9

 * Added ability to have a | delimited list of Base DNs to account for environments
   where the OU structure doesn’t contain all users in one base DN

#### 0.8

 * Updated code to no longer use call time pass by reference. Newer versions of 
   PHP no longer allow the user of call time pass by reference and through an E_STRICT
   when it is attempted.

#### 0.7

 * Made modifications to the examples and tool-tips for settings page to clarify
   configuration process.

#### 0.6

 * Removed SSL options from code as it is not supported by Active directory.

#### 0.5

 * Redeveloped existing code to support Active Directory instead of LDAP.
 * Removed Anonymous Binding as it is not supported by Active Directory.
 * Redesigned the authentication schema to properly support Active Directory.
 * Added assumption of based Windows Active Directory User Structure if no custom
   BaseDN is entered.

## 额外信息

 *  版本 **0.9**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-ad-authentication/)
 * 标签
 * [active directory](https://cn.wordpress.org/plugins/tags/active-directory/)[authentication](https://cn.wordpress.org/plugins/tags/authentication/)
   [login](https://cn.wordpress.org/plugins/tags/login/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-ad-authentication/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/simple-ad-authentication/reviews/#new-post)

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

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/simple-ad-authentication/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://sourceforge.net/project/project_donations.php?group_id=267502)