Authentication

LDAP is not working

 
 
Picture of Ryan Lin
LDAP is not working
 

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: -
Picture of Steve Bluck
Re: LDAP is not working
 

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?

 
Average of ratings: -
Picture of stefano bonacina
Re: LDAP is not working
 

Thanks Steve

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

Regards

 
Average of ratings: -
Picture of stefano bonacina
Re: LDAP is not working
 

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

Please, discard it.

 
Average of ratings: -
Picture of Ryan Lin
Re: LDAP is not working
 

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.

 

 
Average of ratings: -