PHP Warning: ldap_search(): Search: Can't contact LDAP server in /var/www/html/moodle/auth/ldap/auth.php on line 712
It is odd, as I can login to the server using my AD credentials just fine and users are syncing properly. I did recently upgrade our server to version 3.1 [3.1.3+ (Build: 20161208) specifically] and changed our method of syncing users over to the built in Site Administration > Server > Scheduled Tasks method, we were using a standard linux cron job to run the CLI version, but after the upgrade the output stated that it was no longer the valid method to use. As a troubleshooting step, I disabled that job and I am still getting the warning messages in the php_errors.log file.
I found another potentially related question on the forum that advised disabling it and using the CLI method to troubleshoot, and it worked as I would have expected.
I also talked with our AD Admin about it and he looked at the logs of the domain controller and the only errors he was seeing were schannel errors. I imported the root certificate from our internal certificate server into the cacerts for the server, but it didn't resolve the issue either. I have to see if he is still seeing those errors or not, but it doesn't seem to be related to this issue.
I am at a loss on how the error states that it cannot contact the LDAP server, but every otherwise indicates to me that it is functioning normally.
Any assistance and advise would be greatly appreciated.
Thanks,
Chuck