Categories
e-learning LMS Microsoft Moodle Uncategorized

Moodle – Connecting to an Active Directory with PHP using LDAPs Connection

PHP and LDAP are not good friends. I had always issues connecting to a Microsoft Active Directory with PHP using the php_ldap module. And it was always a pain in the ass to figure out what went wrong or why it does not want to connect.

My Moodle did not want to connect to the Active Directory and of course, the only feedback by Moodle was an empty string. So let’s start the troubleshooting.