Added $TYPE variable to set AD or Openldap, made get_dn_of_user() method change the filter based on $TYPE, and combind ad_bind() and open_bind methods into bind() method.