ldap_connect is not defined for some reason even though I have the package installed. Strange.