Title: Simple LDAP Login
Author: Clifton Griffin
Published: <strong>30 de octubre de 2008</strong>
Last modified: 26 de septiembre de 2024

---

Buscar plugins

![](https://ps.w.org/simple-ldap-login/assets/banner-772x250.png?rev=748766)

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas 
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

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

# Simple LDAP Login

 Por [Clifton Griffin](https://profiles.wordpress.org/clifgriffin/)

[Descargar](https://downloads.wordpress.org/plugin/simple-ldap-login.1.6.1.zip)

 * [Detalles](https://ve.wordpress.org/plugins/simple-ldap-login/#description)
 * [Valoraciones](https://ve.wordpress.org/plugins/simple-ldap-login/#reviews)
 *  [Instalación](https://ve.wordpress.org/plugins/simple-ldap-login/#installation)
 * [Desarrollo](https://ve.wordpress.org/plugins/simple-ldap-login/#developers)

 [Soporte](https://wordpress.org/support/plugin/simple-ldap-login/)

## Descripción

Having a single login for every service is a must in large organizations. This plugin
allows you to integrate WordPress with LDAP quickly and easily. Like, really really
easy.

**Contributing**
 This is a community project now. Most development is done by users
like you who find bugs and fix them, or find new ways to make the plugin more powerful
for everyone.

The easiest way to contribute to this plugin is to submit a GitHub pull request.
Here’s the repo:
 https://github.com/clifgriffin/simple-ldap-login

**Support**

If you need support, file an issue here:
 https://github.com/clifgriffin/simple-
ldap-login/issues

**Special Requests**

If you need a customization or change specific to your install, I am available for
hire. Shoot me an e-mail: clifgriffin[at]gmail.com

#### Características

 * Supports Active Directory and OpenLDAP (and other directory systems which comply
   to the LDAP standard, such as OpenDS)
 * Supports TLS
 * Uses up-to-date methods for WordPress authentication routines.
 * Authenticates existing WordPress usernames against LDAP.
 * Can be configured to automatically create WordPress users for valid LDAP logins.
 * You can restrict logins based on one or more LDAP groups.
 * Intuitive control panel.

#### Architecture

Simple LDAP Login adds an authentication filter to WordPress that authentication
requests must pass. In doing so, it makes several decisions.

 * Can the provided credentials be authenticated against LDAP?
    - If so, is the LDAP user a member of the required LDAP groups (if any)?
 *     * Does a matching WordPress user exist?
 *        - If so, log the user in.
 *        - If not, is user creation enabled?
 *           * Create the user and log them in.

This is high level overview. This should answer the philosophical questions about
how the plugin works. If the plugin is unable to authenticate the user, it should
pass it down the chain to WordPress. (Unless LDAP Exclusive is turned on, in which
case it won’t.)

## Capturas

 * [[
 * Easy to use admin panel.
 * [[
 * Advanced options for power users.

## Instalación

 1. Use the WordPress plugin directory to install the plugin or upload the directory`
    simple-ldap-login` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Update the settings to those that best match your environment by going to Settings-
    > Simple LDAP Login
 4. If you don’t get the settings right the first time, don’t fret! Just use your WordPress
    credentials. They should always work
 5. Once you have the settings correct, you can toggle LDAP Exclusive mode (if you 
    like).
 6. To make your life easier, consider using two different browsers (e.g., Chrome and
    Firefox) to do testing. Change settings in one. Test in the other. This will prevent
    any chance of being locked out.

## Preguntas frecuentes

### Other than WordPress, what does my system require?

Your install of PHP must be configured/compiled with LDAP support.

### How do I know what the correct settings are?

I have tried to make the settings as self-explanatory as possible. If you are struggling
figuring them out, you may need to speak with your LDAP administrator. I realize
this is an obnoxious response, but there is no good, fool proof way to help you 
discover these settings. A good place to start, if you’re feeling daring, might 
be to use ADSIEdit for Windows and Active Directory, or GQ for Linux and OpenLDAP.

### It’s still not working, what other things can I try?

If you are confident your settings are correct and it still does not work, it may
be time to check for port or firewall issues. If your LDAP server is running on 
a non-standard port or an obsolete version of the LDAP protocol you are going to
have issues. Port 389 is the port this plugin, and nearly every other LDAP enabled
software expects. They are also expecting protocol version 3. If you are using an
old version of LDAP or running a non-standard port you may need to modify the code
that the plugin runs or update your LDAP installation.

Unfortunately I can’t be relied upon to assist with these types of requests. I chose
not to support these scenarios because they are infrequent and because they confuse
everyone else.

### It’s still not working! How can I get help?

The easiest way to get help is to post a comment on my blog: http://objectiv.co/
simple-ldap-login/. I’ll do my best to get you up and running!

## Reseñas

![](https://secure.gravatar.com/avatar/95c294302273b13c27f46177bba1eec3e4e097ab35cc2ca1fe9fee8f26a44582?
s=60&d=retro&r=g)

### 󠀁[Simple, yet Mighty](https://wordpress.org/support/topic/simple-yet-mighty/)󠁿

 [Sibastian](https://profiles.wordpress.org/sibastian/) 12 de julio de 2017

I struggled with 3 other LDAP/AD authentication plugins before I ran across this
one. The settings were so simple, and yet it worked from the start. No registering
for third-party accounts, no expensive packages, nothing; just simple, easy to understand
settings for a very powerful little plugin. Thank you 100 times over for this. We
have a lot of turnover in our organization, and this saves us the hassle of having
to create website accounts for all our employees as well as AD accounts.

![](https://secure.gravatar.com/avatar/017e5ecec92d2bd6fd5d8cf03cd384a1abb3647ae1a6c28b838f45258f4d1a05?
s=60&d=retro&r=g)

### 󠀁[The best!](https://wordpress.org/support/topic/the-best-105/)󠁿

 [lulini](https://profiles.wordpress.org/lulini/) 21 de septiembre de 2016

The really simple, it’s the best plugin!

![](https://secure.gravatar.com/avatar/b7baa4bfc0a2d5c00ab7b15e24fc4f650c39c76fa76ce8a205a5089418180c24?
s=60&d=retro&r=g)

### 󠀁[Not Very Simple](https://wordpress.org/support/topic/not-very-simple/)󠁿

 [joshkrz](https://profiles.wordpress.org/joshkrz/) 3 de septiembre de 2016

Not as simple as it could be and I never actually got it to work. Didn’t really 
know what to type in each field, the documentation could do with being clearer and
more verbose. Needs a testing tool with some sort of log to pinpoint any issues.

![](https://secure.gravatar.com/avatar/0cd196c1cbb7f9f035be777e433ea39170de050f661764fdbb56638e242e7634?
s=60&d=retro&r=g)

### 󠀁[Just works on my sites](https://wordpress.org/support/topic/just-works-on-my-sites/)󠁿

 [stureedy](https://profiles.wordpress.org/stureedy/) 3 de septiembre de 2016

I’ve used this plugin to authenticate against eDirectory and Active Directory. So
far, it just works. Kudos to Clifton G.!

![](https://secure.gravatar.com/avatar/48bc49f3155426cddec8bc62dae23882e3c97597ce650e3d8dacece029c6d80b?
s=60&d=retro&r=g)

### 󠀁[best of simple LDAP authorization WP plugin](https://wordpress.org/support/topic/best-of-simple-ldap-authorization-wp-plugin/)󠁿

 [moonkir](https://profiles.wordpress.org/moonkir/) 3 de septiembre de 2016

Unbelievable how much time has passed since the last update. Already so much has
changed in the plugin, I’m afraid it updated.

 [ Leer todas las 18 reseñas ](https://wordpress.org/support/plugin/simple-ldap-login/reviews/)

## Colaboradores y desarrolladores

«Simple LDAP Login» es un software de código abierto. Las siguientes personas han
colaborado con este plugin.

Colaboradores

 *   [ Clifton Griffin ](https://profiles.wordpress.org/clifgriffin/)

[Traduce «Simple LDAP Login» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/simple-ldap-login)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/simple-ldap-login/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/simple-ldap-login/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/simple-ldap-login/)
por [RSS](https://plugins.trac.wordpress.org/log/simple-ldap-login/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

**Version 1.6.0**

 * New filter sll_remove_default_authentication_hook lets you override local password
   fallback.
 * Lots of new features from various pull requests from contributing users. Most
   of these focus on new settings for edge cases, and some general improvements.
 * If we did our jobs right, nothing will break. But if it does, rolling back to
   1.5.5 is the best place to start.

**Version 1.5.5**

 * Fix syntax error.
 * Don’t sanitize user info.

**Version 1.5.4**

 * Local admins will always fall back to local WP password.
 * Fixes bug where new users do not have name or other information from LDAP directory

**Version 1.5.3**

 * Fixing apparent security problem with blank passwords. (!)
 * Fixing typo in filter name (did not affect any functionality)
 * Local admin exception coming soon, as well as more bug fixes.
 * Possible fix for login error upon arriving at login page when LDAP exclusive 
   enabled.

**Version 1.5.2**

 * Fixed bug with groups setting.
 * Removed delete_option references in upgrade code to allow for easier rollbacks(
   sorry about that!)
 * Fixed a few bugs in the user creation code.
 * Fixed bug with storing default user role.

**Version 1.5.1**

 * Fixed a bug where the domain controllers are passed as a string.

**Version 1.5**

 * Complete rewritten from the ground up.
 * It’s Object Oriented, DRY and Singleton.
 * The options have been overhauled to make configuration much easier. Focuses on
   individual features rather than «modes» that encapsulate several behaviors.
 * Admin pages now use WordPress admin styles and behaviors.
 * Tested with Active Directory. I recommend OpenLDAP users test carefully before
   implementing in their production environments.
 * Added global on off switch so you can easily disable LDAP authentication without
   deactivating.

**Version 1.4.0.5.1**

 * I broke it. Sorry guys! 🙁
 * Downgraded adLDAP as some referenced functions no longer exist.

**Version 1.4.0.5**

 * Updated adLDAP to version 4.x
 * Fixed error in OpenLDAP group membership check
 * As always TEST this first. Don’t assume it works…I don’t have a testing environment
   to ensure it will work correctly.

**Version 1.4.0.4**

 * Fixes nickname bug accidentally put back in in last version. (My bad!)

**Version 1.4.0.3**
 * Reverts bug introduced in 1.4.0.2 * If you installed 1.4.0.2
and use OpenLDAP, please update as soon as possible and verify users cannot login
with incorrect passwords (and vice versa).

**Version 1.4.0.2 – Patches submitted by Jonas Genannt and Ilya Kozlov**
 * Updates
adLDAP to 3.3.2 * Fixes issue with users in recursive OUs not being found. * Fixes
issues with different Base DN formats. * NOTE: Please be catious in updating. As
I don’t have an OpenLDAP install, I am unable to independently confirm these fix
the problems. If you have issues, revert to 1.4.0.1 and e-mail me: clifgriffin[at]
gmail.com. Likewise, If you can confirm these changes are effective, also let me
know. 🙂

**Version 1.4.0.1**

 * Fix for e-mail exists issue with WP 3.0+ for LDAP installations that don’t populate
   the e-mail address attribute.
 * Shows actual error message from WordPress upon failure.

**Version 1.4**

 * First update in about a year. Thanks for your patience.
 * Completely rewritten to support changes in WordPress 2.8+. Now fully supports
   WordPress 3.0.
 * Much more manageable and efficient code structure. Less code repetition.
 * Includes TLS support.
 * Allows OpenLDAP users to specify an alternate LDAP attribute to use for logins
   for those not using UID.

**Version 1.3.0.3**

 * Test form now implements wp_authenticate and uses the same routines as the actual
   login. This also means account creation and group membership are tested.
 * Implemented stripslashes() to correct issue with some special characters such
   as a single quote and backslash.
 * WordPress account «admin» is now allowed to login using local password even when
   security mode is set to high. For safety.
 * Made some minor wording changes to the admin panel.

**Version 1.3.0.2.1**

 * Fixed case sensitivity issue that could result in multiple accounts. There may
   be lingering case insensitivity issues due to the get_userdatabylogin function
   being case-sensitive. We’ll figure this out in due time.
 * Sorry for posting two updates on the same day!

**Version 1.3.0.2**

 * Fixes several tickets including role assignment, case sensitivity, and potential
   compatibility issues with other themes/plugins.
 * Added security mode setting to allow security to be tightened.
 * Changed auto created accounts to use a random password rather than the LDAP password
   given.
 * Fixed error with the way announcements are displayed in the admin panel.
 * More code clean up.

**Version 1.3.0.1**

 * Never officially released.
 * Contained code cleanup and some attempted fixes.

**Version 1.3 Beta**

 * Support for both Active Directory and OpenLDAP.
 * The ability to create WordPress users automatically upon login based on LDAP 
   group membership OR by LDAP authentication alone.
 * The ability to test domain settings straight from admin panel.
 * Announcements pane that allows me to update you with fixes, cautions, new beta
   versions, or other important information.

**Version 1.2.0.1**

 * Changed required user level for admin page to 10, Administrators only.

**Version 1.2**

 * Implemented multiple domain controllers.
 * Changed field sizes on admin page to be more user friendly.

**Version 1.1**

 * Moved settings to administration pages under settings.
 * Upgraded to latest version of adLDAP 2.1.
 * Got rid of credentials. (They are not neccessary for the authenticate function
   in adLDAP!)
 * Plugin is now upgrade proof. Settings are stored using WordPress’s setting functions.

**Version 1.0**

 * Original release.

## Meta

 *  Version **1.6.1**
 *  Last updated **hace 2 años**
 *  Active installations **1.000+**
 *  WordPress version ** 3.4 o superior **
 *  Tested up to **6.6.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/simple-ldap-login/)
 * Tags
 * [active directory](https://ve.wordpress.org/plugins/tags/active-directory/)[adLDAP](https://ve.wordpress.org/plugins/tags/adldap/)
   [authentication](https://ve.wordpress.org/plugins/tags/authentication/)[ldap](https://ve.wordpress.org/plugins/tags/ldap/)
   [login](https://ve.wordpress.org/plugins/tags/login/)
 *  [Vista avanzada](https://ve.wordpress.org/plugins/simple-ldap-login/advanced/)

## Valoraciones

 4.3 out of 5 stars.

 *  [  14 5-star reviews     ](https://wordpress.org/support/plugin/simple-ldap-login/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/simple-ldap-login/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/simple-ldap-login/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/simple-ldap-login/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/simple-ldap-login/reviews/?filter=1)

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

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

## Colaboradores

 *   [ Clifton Griffin ](https://profiles.wordpress.org/clifgriffin/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/simple-ldap-login/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Dona a este plugin ](http://cgd.io)