LDAP()
-
object LDAP([string binddn], [string bindpw], [string hostname])
If you don't create the object with the call to LDAP(), it will _NOT_ connect to the LDAP server until it a connection is neccessary.
Example:
$ldap = new LDAP();
-or-
$ldap = new LDAP;-or-
$ldap = new LDAP("cn=root, o=mycompany.com", "secret", "ldap.mycompany.com");