I am trying to list out some printers in our Novell tree. The server that I am hitting is a Netware 6 server, running eDirectory 8. Here is the code I am using (simplified): --------begin code------------------ $printer_dn = "ou=$facility_selected, $basedn"; $printer_list = ldap_list($ldapconnect, $printer_dn, "cn=*"); ldap_sort ($ldapconnect, $printer_list,"cn"); $printer_list_results = ldap_get_entries($ldapconnect, $printer_list); if ($printer_list_results != 0) { echo "\t<blockquote>\n";
for ($p=0; $p<$printer_list_results["count"]; $p++) { $printer = $printer_list_results[$p]["cn"][0]; echo "$printer <br>"; } echo "\t</blockquote>\n"; } --------end code------------------ Problem with this, is that if the containers has let's say 5 printers, and just one of them has a DS problem, then the entire list is corrupted and will only return "LDAP Error: Invalid DN syntax" to the screen. The list will not return ANY of the printers. Thanks for your time, DB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php