added some more messages to the client/server comms
[ga4php.git] / example / adsearchtest / usersearch.php
index a433d01..617830a 100644 (file)
@@ -18,6 +18,7 @@ echo count($servers)." AD servers returned, using ".$servers[0]["target"]."\n";
 
 // 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) {