LDAP

LDAP

by Hemamalini K R -
Number of replies: 2

Working with moodle version 2.9.2

Have done LDAP settings in moodle but it is not working. Giving error "Invalid login. Please try again"

We have checked the LDAP settings in moodle and confirmed that there is no LDAP Connectivity issues with the Domain.

Find the complete settings done below. Not sure if im missing something. Appreciate your help in this regard. Thanks in advance.


LDAP Settings:


1.  In IIS enabled the extension - php_ldap.dll



2.  Added this in phpinfo also


Extension = php_ldap.dll



Find the Settings in phpinfo.php


ldap


LDAP Support

enabled

RCS Version

$Id$

Total Links

0/unlimited

API Version

3001

Vendor Name

OpenLDAP

Vendor Version

20319

SASL Support

Enabled


 


Directive

Local Value

Master Value

ldap.max_links

Unlimited

Unlimited


 Authentication Settings in IIS:


Enabled Windows as well as Anonymous authentication.



Find attached the LDAP settings done.



Average of ratings: -
In reply to Hemamalini K R

Re: LDAP

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Getting LDAP authentication working always involves a little trial-and-error.

One thing that stands out is that the User attribute setting is blank so the cn attribute will be used. In Active Directory cn is usually the user's full name containing spaces which is not normally what you would want. The recommended attribute is sAMAccountName. See the documentation for more information on this.

Average of ratings: Useful (1)