Title: LDAP Authentication 2
Author: OrbitaNET
Published: <strong>2012 年 12 月 20 日</strong>
Last modified: 2012 年 12 月 20 日

---

搜索插件

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

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

# LDAP Authentication 2

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

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

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

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

## 描述

This plug-in extends Simple LDAP Authentication plug-in [Simple LDAP Authentication](https://wordpress.org/extend/plugins/simple-ldap-authentication).

Plug-in works as followed:

Entered credentials are checked by all hash types available on LDAP-server (ssha,
smd5, crypt/standart-des, crypt/enhanced, crypt/md5, crypt/blowfish, sha, clear,
md5) by specified login.

If password is correct:

If user already exist in WordPress database

 * Password, name, surname, e-mail are changed to those existing on LDAP-server.

If no such user is in WordPress database:

If automatic user transfer is disabled by plug-in settings:

 * Existing user data is updated

If automatic user transfer is enabled by plug-in settings:

 * Existing user data is updated
 * New user is created with profile received from LDAP-server.

If the password was incorrect:

 * Wrong password error is shown.

Features

 1. Update user data
 2. Updates user password
 3. Checks password hash using crypt/standart-des, crypt/enhanced, crypt/md5, crypt/
    blowfish, ssha, smd5, sha, md5

## 安装

This section describes how to install the plugin and get it working.

e.g.

 1. Upload and unzip `ldap-authentication-2.zip` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place `<?php do_action('plugin_name_hook'); ?>` in your templates

## 常见问题

  Can I use SSL on LDAP connection?

Yes. You can enable SSL connection in the option page.

  Can I customize LDAP search filter?

Yes. You can customize the search filters (user ID and group) in the option page.

  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.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ OrbitaNET ](https://profiles.wordpress.org/orbitanet/)
 *   [ redgecko ](https://profiles.wordpress.org/redgecko/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

Following functions are added to original plug-in:

updates user data

 * _update_user ($username, $email, $first_name, $last_name, $role = ”)

updates user password

 * _update_user_password ($username , $password)

checks password hash using crypt/standart-des, crypt/enhanced, crypt/md5, crypt/
blowfish

 * _check_CRYPT ($plainTextPass, $ldapPass)

checks password hash using ssha

 * _check_SSHA ($plainTextPass, $ldapPass)

checks password hash using smd5

 * _check_SMD5 ($plainTextPass, $ldapPass)

checks password hash using sha

 * _check_SHA ($plainTextPass, $ldapPass)

checks password for exact match

 * _check_CLEAR ($plainTextPass, $ldapPass)

checks password hash using md5

 * _check_MD5 ($plainTextPass, $ldapPass)

checks entered credentials

 * _get_crypt_pass_by_type ($type, $password, $full_password)

## 额外信息

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

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ OrbitaNET ](https://profiles.wordpress.org/orbitanet/)
 *   [ redgecko ](https://profiles.wordpress.org/redgecko/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://coder-notes.com/)