From: Peter M. <pet...@ma...> - 2002-04-17 08:50:58
|
Hi, it seems like your LDAP server imposes a size limit on the result set. Either ask your server administrator to increase it or work around by requesting less information at once. Yours Peter On Tuesday 16 April 2002 22:12, you wrote: > Does anyone know what this means "Sizelimit exceeded at email_search.pl > line 19." > > I wrote a script that does a search and the does a get_value for "mail"= =2E > I then attempt to split the email address based on "@". It work fine fo= r a > few limes that I get the > error about......... Help > > > @OU =3D ("AusAsia", "Australia", "Canada", "Chichester", "CPA", > "Indianapolis", "JosseyBass", "NewYork605", "NewYork909", "Tulsa", "USD= C", > "VCH"); > > $ldap =3D Net::LDAP->new('server.sys.com', port =3D> '389') || = die > "ERROR: $@"; > > foreach $i (@OU) { > $mesg =3D $ldap->search( > base =3D> "ou=3D$i,o=3DWiley", > scope =3D> "subtree", > filter =3D> "(cn=3D*)" > ); > > die ldap_error_desc($mesg->code) if $mesg->code; > > foreach $entry ($mesg->entries) { > $mail =3D $entry->get_value('mail'); > $cn =3D $entry->get_value('cn'); > > if ($mail ne "") { > @email =3D split(/@/, $mail); > print "$i: $email[0]\n"; > } else { > print "$i: $cn has no email address.\n"= ; > } > } > } --=20 Peter Marschall | eMail: pet...@ma... Scheffelstra=DFe 15 | pet...@is... 97072 W=FCrzburg | Tel: 0931/14721 PGP: D7 FF 20 FE E6 6B 31 74 D1 10 88 E0 3C FE 28 35 |