LDAP is not working

LDAP is not working

by Ryan Lin -
Number of replies: 4

Hello all,

The Moodle web site is up and running (XAMPP 1.7.3 in Windows Server 2008 R2).

Now I need to configure using AD account to log in Moodle.

I read through the doc http://docs.moodle.org/24/en/LDAP_authentication#NTLM_SSO, but failed to log into with AD account.

Here is the setting:

LDAP server settings
Host URL ldap://172.30.0.10 (The only one DC in AD)
Version 3
LDAP encoding utf-8

Bind settings
Hide passwords Yes
DN CN=LDAP Moodle, OU=Staff, DC=COMPANY, DC=COM
Password 123456 (test log in by ldp.exe successfully)

User lookup settings
User type MS AD
Contexts OU=Staff, DC=COMPANY, DC=COM
Search subcontexts YES

keep most of the default for the rest in the LDAP server setting.

 

Any idea why is not working?

Thank you.

 

 

 

Average of ratings: -
In reply to Ryan Lin

Re: LDAP is not working

by Steve Bluck -

Been a while since I've set this up but by memory the "User lookup settings >> User attribute" is set by default to cn instead of samaccountname so check that?

In reply to Steve Bluck

Re: LDAP is not working

by stefano bonacina -

Thanks Steve

that parameter was already set to samaccountname, as suggested in some Moodle LDAP documentation.

Regards

In reply to stefano bonacina

Re: LDAP is not working

by stefano bonacina -

I'm sorry: my previous post was related to one topic I opened last week and has a similar title.

Please, discard it.

In reply to Ryan Lin

Re: LDAP is not working

by Ryan Lin -

Thanks guys.

The old server might be customized during the installation.

I build another server without any problem in LDAP, but SSO is not working.