// we should check all servers, but lets just go with 0 for now
$cnt = ldap_connect($servers[0]["target"], $servers[0]["port"]);
+ldap_set_option($cnt, LDAP_OPT_PROTOCOL_VERSION, 3);
echo "Connected\n";
$bind = ldap_bind($cnt, "$adlogin", "$adpass");
if($bind) {