Jason (and group),

I'm seeing this too, but with iDS4.12, solaris 8 and C SDK 3 or 4 (tried 
both, no difference).

The 'examples/qsearch.pl' returns no results, while 'test_api/search.pl' 
returns the correct results every time (using the ::API module, not the 
::Conn module).

I truss'd the qsearch script, and I see the correct results being read 
by the process:

 read(3, 0x0002D808, 8192)                       = 199
    081B6020102 d81B004 0 u i d = b o s . s s b . E S c h u l t , o
    u = U s e r s ,   o = e - g l o b a l l i n k . c o m 0 | 0 `04
   \v o b j e c t c l a s s 1 Q0403 t o p0406 p e r s o n0414 o r g
    a n i z a t i o n a l P e r s o n04\r i n e t O r g P e r s o n
   04\t s s b P e r s o n04\t p i n P e r s o n0407 c o u n t r y 0
   180403 u i d 111040F b o s . s s b . E S c h u l t 0\f020102 e07
   \n01\004\004\0


I went back to PerLDAP 1.4 + CSDK 4.14 and now things are working as 
expected.

-Eric




Jason wrote:

> I'm using iPlanet Directory Server 5.0, Perl LDAP 1.4.1, C SDK 5.0, and
> Solaris 7.  I've written a small Perl program to search the directory.  It
> connects to it fine, sends the search, and the program behaves as though it
> received no results.  When I look at the directory sever's access log, I see
> the successful connection, and a successful search with entries returned.
> Has anyone else seen this problem or have any suggestions.  I am new to
> LDAP.  Below is the program:
> 
> use Mozilla::LDAP::Conn;
> use Mozilla::LDAP::Utils;
> 
> $conn = new Mozilla::LDAP::Conn("host",port,"bind DN","password") || die
> "Cannot connect: $!";
> 
> $base = "o=myorg";
> $filter = "objectclass=*";
> $scope = "subtree";
> 
> $entry = $conn->search($base, $scope, $filter);
> 
> if (!$entry)
> {
>   print "Search failed.  Try again\n";
> }
> else
> {
>   while ($entry)
>   {
>     $entry->printLDIF();
>     $entry = $conn->nextEntry();
>   }
> }
> 
> 
> 
> $conn->close if $conn;
> 
> 
> 
> 


Reply via email to