Title: Simple AD Authentication
Author: drahkar
Published: <strong>July 23, 2009</strong>
Last modified: January 12, 2011

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Simple AD Authentication

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

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

 * [Details](https://pcd.wordpress.org/plugins/simple-ad-authentication/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/simple-ad-authentication/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/simple-ad-authentication/#installation)
 * [Development](https://pcd.wordpress.org/plugins/simple-ad-authentication/#developers)

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

## Description

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.

## Installation

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.

## FAQ

  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).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Simple AD Authentication” is open source software. The following people have contributed
to this plugin.

Contributors

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

[Translate “Simple AD Authentication” into your language.](https://translate.wordpress.org/projects/wp-plugins/simple-ad-authentication)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/simple-ad-authentication/),
check out the [SVN repository](https://plugins.svn.wordpress.org/simple-ad-authentication/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/simple-ad-authentication/)
by [RSS](https://plugins.trac.wordpress.org/log/simple-ad-authentication/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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.

## Meta

 *  Version **0.9**
 *  Last updated **15 years ago**
 *  Active installations **10+**
 *  WordPress version ** 2.7 or higher **
 *  Tested up to **3.0.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/simple-ad-authentication/)
 * Tags
 * [active directory](https://pcd.wordpress.org/plugins/tags/active-directory/)[authentication](https://pcd.wordpress.org/plugins/tags/authentication/)
   [login](https://pcd.wordpress.org/plugins/tags/login/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/simple-ad-authentication/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/simple-ad-authentication/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

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

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://sourceforge.net/project/project_donations.php?group_id=267502)