<?php //the fqdn for the ad domain, company.local, etc. $ldap_host = "your.domain"; //the ou the you will be pulling results from, it reads backwards - you may have to us CN= or OU=, have seen both work $base_dn = "CN=thisou,CN=insidethisou,CN=insidethisone,DC=your,DC=domain"; //the username for the domain, most users have read rights to ad $ldap_user = "hide@address.com"; //the password for that username $ldap_pass = "password"; ?>