From: Graham B. <gb...@po...> - 2000-08-02 16:14:43
|
Error code 4 is LDAP_SIZELIMIT_EXCEEDED The maximum number of search results to return has been exceeded. Which means the search found too many entries in the database that matched. Graham. On Wed, Aug 02, 2000 at 10:25:04AM -0500, Luke Kanies wrote: > I am using the latest version of Net::LDAP, and I am having a problem--I > can't seem to successfully perform searches which look for an ou (i.e., > filter is '(ou=Test Fun)' ). If I try to, then the search fails with > error code 4. However, if I take the exact same code and only change > the 'ou' to any other attribute I've tried (e.g., uid, cn, sn), then the > search works (although it doesn't usually return results). > > I have beat my head against this for a while, and I can't seem to find > any solution. Anyone have any ideas? > > ------------------ > > $ldap = Net::LDAP->new($defaults{'host'}); > > $ldap->bind(dn => $dn, password => $pass); > > $cust = 'Test Company'; > $search = $ldap->search( > base => $defaults{'base'}, > scope => 'sub', > filter => "(ou=$cust)", > ); > > if ($search->code) > { > print $search->code, "\n", $search->error, "\n"; > exit(1); > } > > -- > Luke A. Kanies | Look, I refuse to install any filter which looks > System Engineer | like it's more highly evolved than homo sapiens, > 615/778-7268 | it will just get embarassing when it starts > pgr 800/415-1972| critiquing the literrary style of my friends mail > | to me. -- Richard Caley, in comp.lang.perl.misc |