I am trying to connect to LDAP using the server setting in the OpenLDAP conf file (/etc/openldap/ldap.conf), instead of declaring an ldapserver in the ldap_connect function. When I leave the server variable null, the connection does work. However, if the server is changed in the OpenLDAP conf file, my PHP scripts do not pick up the change. They still connect to the previously stated LDAP server.
Does anyone know how this information is cached? Or a way to reread in the conf file with each ldap_connect?
Thanks,
Brenna