From: David R. <d.r...@qu...> - 2001-04-02 01:14:32
|
Graham, Can you help me out here. I am trying to retrieve a lot of entries that causes the Perl-LDAP library to produce 'Out of memory!' and fall over. What is the best way to retrieve the entries? Have you got some sample code? Thanks, Dave. Graham Barr wrote: > > On Thu, Mar 29, 2001 at 09:07:37AM +1000, David Richards wrote: > > printf( "Searching...\n" ); > > $count = 0; > > $res = $ldap->search( base => $LDAP_BASE, filter => > > "(objectclass=QUTmailPerson)", > > attrs => ['uid', 'mailUID', 'QUTmailbox', > > 'mailboxQuota', 'cn' ], > > callback => &LDAP_callback() ); > > That needs to be \&LDAP_callback > > In its current form you are calling the function and passing its results > to ->search() which is NOT what you want. > > Graham. -- David Richards Project Manager (Messaging) Information Technology Services Queensland University of Technology |