Community Documentation

LDAP Authentication

Last updated September 18, 2012. Created by johnbarclay on February 7, 2011.
Edited by ywarnier. Log in to edit this page.

LDAP Authentication 7.x-2.x Summary

Overview

LDAP Authentication directions are in the user interface. A screenshot is attached below to illustrate functionality before installing the module, but is not kept up to date.

LDAP Authentication configuration example

AttachmentSize
ldap_authentication_conf.png144.48 KB

Comments

Account creation not possibile with "Admin Only"

in admin/config/people/accounts/settings with

* Registration and Cancellation: Who can: Admin Only (#1, #4)

as in subject, it is not possibile the automatic creation of the account for ldap users.

LDAP test successfully but cannot login

I set up and enable a LDAP server and test it, the tetst result shows "bind successfully", and then I configure the "LDAP Authentication Settings" exactly the same as the sceenshot above(http://drupal.org/files/ldap_authentication_conf.png), of course the LDAP server is mine.
But, when I login in drupal with a LDAP account, the page shows error as below:

•Another user already exists in the system with the same email address. You should contact the system administrator in order to solve this conflict.
•Sorry, unrecognized username or password. Have you forgotten your password?

Why? Guys, I need your help, thanks a lot!

added on 12-8,2011: I tried the LDAP integration module in Drupal 6, it's much simpler to configue but it does work! However, some features which I need can only run on Drupal 7.

LDap Test successfully

I'm looking for a Windows AD users to prompt when they enter http://localhost. Do you know anyway on how to do that with Drupal 7?

I also had:
Successfully bound to server

thank you,

felix

Not sure if you are still

Not sure if you are still struggling with this. The page that we would need to see your config on would be the '2. Servers' config page.

What may be happening is you have 'mail' listed in the email template instead of the email attribute (which screws everything up). Or you could be trying to log in via LDAP and you already have a drupal username (like your admin account) listing your email address. LDAP picks up the match and based on your config will disallow your login. If this is the case change your admin account email address and try again.

This is all in drupal 7, I hope it fixes your issue.

mail value

Fill Email attribute in server config

I was getting the same error

I was getting the same error message when try to login.
I managed to solve it by setting up the mail attribute mapping on the server configuration page.

mod_auth_sspi

I get login with my windows credentials but trying to install mod_auth_sspi on apache to habilite the Single Sing-on, I can´t put online the server, I tried a lot of configurations to install the module and all are wrong.

I hope someone have this module installed and can help me.

Thanks

Am a D7 newbie and not an

Am a D7 newbie and not an ldap wizard, but what stopped me seemed to be either specifying 'mail' as the email field (which it is for me) and listing objectSid for the unique and persistent identifier (although screen says field is not in service, just in UI). With those two changes I went from your error message to working. Happy Christmas (or season) to all.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 7.x
Audience
Site administrators
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here