Jump to content

Recommended Posts

Posted

Hi,

I am new to configuration of LDAP and Moodle. I installed the OpenLDAP 2.4.40 on Linux Centos 6 and configured it successfully using this link. Then I got to another Link which provides the configuration of LDAP Server Authentication on Moodle 3.2.

After implementing all the configuration, the login to the Moodle using a LDAP user is not working knowing that all the configurations are applied as documented in the above links.

I installed the Apache Directory Studio and configure the connection to the LDAP Server successfully. Hereafter is a snapshot of the LDAP Server Tree:

 

LDAP Server Tree.png

 

Then I got to the LDAP server installed in Linux thru using putty tool and run the "ldapsearch -x -LLL -b dc=sorce,dc=online" and it works fine.

My Moodle Authentication configuration parameters of LDAP Server are as follows:

 

  • Distinguished Name - bind user is set to the Root User: cn=Manager,dc=sorce,dc=online
  • User Type: posixAccount (rfc2307)
  • Context is set to the "users" entry: ou=Users,dc=sorce,dc=online
  • All the passwords are double checked

However, after implementing all the above configurations, I`m still not able to connect to Moodle using LDAP Users, and I got the following error:

LDAP-module cannot connect to any servers: Server: '80.79.155.44', Connection: 'Resource id #82', Bind result: ''

My Moodle installation is hosted in a cloud account, the LDAP Server is installed in a local office server (Linux Centos 6), and the Apache Directory Studio is installed in my PC (Windows 7)

Any ideas regarding how I can make Moodle authenticate LDAP Users and login..please help?

Thanks in advance!

Posted
Have you opened & forwarded the relevant LDAP/LDAPS ports on your router so that the external cloud-hosted Moodle can reach your internally hosted LDAP Server...? Also, for security reasons you should be using LDAPS rather than LDAP.
  • 2 weeks later...
Posted

I have solved the problem through defining the "User attribute" mapped field in LDAP. This should be a mandatory field and not an optional as mentioned in Moodle site in the LDAP Authentication Page, since this field is contribute to the username value used to login to Moodle. [TABLE=width: 100%]

[TR=class: required]

[TD=align: right]

 

 

[/TD]

[/TR]

[/TABLE]

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...