From: <Bob...@kp...> - 2002-01-18 01:26:01
|
The size limit is imposed on the Server side, sigh. There are two options (at least) -- a) Talk to your Directory Manager about increasing the search-returns limit (at least for your management account) b) Break-up your search into smaller chunks -- $ouline = ("ou=powerlinkcustomers"); $oline = ("o=adelphia.net"); for i ("a" .. "z") { $filter = "mailhost=ms001" . $i . "dc3.adelphia.net"; $message = $ldap->search( base => ("$ouline, $oline"), scope => 'sub', filter => ("$filter"), ); } (Coded, but not verified.) B Bob Goolsby bob...@kp... (925) 926-3406 Justin Crone <jus...@ad...> To: per...@li... Sent by: cc: per...@li...urc Subject: Very large results to return eforge.net 01/17/2002 04:29 PM Hi everyone, I am rather new to the ldap world, however, I have been tasked with putting together a scipt that will get the current count of mailboxes on our systems. We have 6 productions mail machines servicing approx 500,000 users. We are using the Netscape(Iplanet) package. I am running into a size limit exceeded error when trying to get my results. Here is a snippit of the code I am using. $ouline = ("ou=powerlinkcustomers"); $filter = ("mailhost=ms001a.dc3.adelphia.net"); $oline = ("o=adelphia.net"); $message = $ldap->search( base => ("$ouline, $oline"), scope => 'sub', filter => ("$filter"), sizelimit => 0, timelimit => 0 ); This machine has about 72,000 mailboxes on it, so I wanted to use this as a test. However after about 10 secs of work, then gives the following error: Error :: Sizelimit exceeded Error Results: Net::LDAP::Search=HASH(0x32745c) I tried filtering the search further by "attr" but still no luck. Currently I have a script setup to use the ldapsearch tool, but that takes approx 30 mins to work per machine. Any help would be great. Justin |