From: Chris R. <chr...@ma...> - 2003-03-13 20:30:11
|
On 13/3/03 7:56 pm, Susan Aurand <sa...@ha...> wrote: > When I enter $ldap->search(sizelimit => 0) > > I am receiving the following error message: > > syntax error at phsmodify.pl line 97, near ") I think you misunderstood Ian's suggestion. You need to *add* the arguments sizelimit => 0 to the list of arguments you are already passing to search. For instance, $res = $ldap->search(base => 'o=My School,c=US', scope => 'subtree', filter => '(uid=*)', sizelimit => 0); > Execution of phsmodify.pl aborted due to compilation errors. I have typed > actually what is shown > above. I don't see anything wrong with it. What version of perl-ldap are you Missing semi-colon after the close parenthesis, I'd suspect. > running? The server > limit seems find. If I go into my GQ Ldap Client on the desk top, I can do a > search uid=* and all > 1055 entries show. Anyways, any suggestions on the error? Maybe GQ is using a mechanism like paged results or VLV to do this. Directories weren't originally designed to let you grab *everything* from them at once, in fact they were designed to prevent you from doing that using the sizelimit mechanism. (The idea being to stop spammers simply asking for all the email addresses in a directory.) However certain cases do require the directory to return lots of results, but not all at once. Instead, some directories support being asked for lots of stuff back, but in chunks at a time. That's called paged results, and there's something similar called virtual list views. Not all directory servers support these. Perl-ldap is capable of requesting paged results and VLV; see the manual pages for Net::LDAP::Control::Paged and Net::LDAP::Control::VLV. Cheers, Chris |