When instantiating adLDAP it will automatically make a connection to your Domain Controller using the settings defined within the class itself, see configuring variables
require_once(dirname(__FILE__) . '/adLDAP.php'); $adldap = new adLDAP();
The settings can also be overridden when the class is first called by specifying an array with your options.
adLDAP will NOT automatically disconnect at the end of the script. There is a need to specifically close your connection unless you need to perform a re-connection
Performs a connection to your domain controller. You should never need to call these functions directly unless you specifically wish to change connection parameters mid-script.
require_once(dirname(__FILE__) . '/adLDAP.php'); $adldap = new adLDAP(); /* Some code here */ $adldap->close(); $adldap->setAdminUsername('Admin.User'); $adldap->setAdminPassword('SomePassword'); $adldap->connect(); /* Some code here */
Disconnect from the domain controller.