Re: Active Directory and LDAP sizelimit

2004-07-06 Thread Graham Barr
I don't believe that this should be a parameter to the constructor. Maybe it could be done as a paged option to ->search and the ::Search object that is returned could support a next_page method, or something like that. Graham. On 6 Jul 2004, at 16:56, Ken Cornetet wrote: Has anybody considered

RE: sizelimit on Net::LDAP

2004-07-06 Thread Jensen, John T
Actually as it turns out I can - that was, indeed, the problem. The server - Windows Active Directory Server 2003 - has a default limit of 1000 items. I finally found a utility (an obscure part of Windows) ntdsutil.exe that enabled me to change the limit. One of you pointed out in private e-mail

Re: ->as_hash?

2004-07-06 Thread Quanah Gibson-Mount
--On Tuesday, July 06, 2004 10:19 AM +0100 Graham Barr <[EMAIL PROTECTED]> wrote: On 5 Jul 2004, at 21:52, Quanah Gibson-Mount wrote: I'm curious if anyone would be interested in a $mesg->as_hash; function. We currently have this implemented in an overlay perl module we use (Stanford::Directory

RE: RE: Active Directory and LDAP sizelimit

2004-07-06 Thread Ken Cornetet
Has anybody considered an "autopage" option for Net::LDAP? Sure would be nice to be able to do something like this: $ldap = Net::LDAP->new( 'ldap.bigfoot.com', autopage => 500 ) or die "$@"; $ldap->search(... I may look at doing it myself if no one else is working on it. -Original Message--

Re: RE: Active Directory and LDAP sizelimit

2004-07-06 Thread Don Miller
Here is a script with the jist of using a paged search. I chopped it up from something I am currently using so it does work. :) use Net::LDAP; use Net::LDAP::Control::Paged; use Net::LDAP::Constant qw(LDAP_CONTROL_PAGED); my $ad_ldap = Net::LDAP->new($ad_ldap_server, version => 3) or die "unabl

RE: Active Directory and LDAP sizelimit

2004-07-06 Thread Rick Tatem
The 1000 limit on the result set is due to the 'PageSize' limit. A paged query should return them all (just not all at once... oh, and provided that all the Ous are actually searchable by your process). I've not used it, but you should probably try Net::LDAP::Control::Paged http://search.cpan.

Re: sizelimit on Net::LDAP

2004-07-06 Thread Graham Barr
On 5 Jul 2004, at 22:37, Jensen, John T wrote: Even when I set sizelimit=1500 (for example) on searches in our Windows Active Directory, I cannot get more than 1000 objects back. Any thoughts? If the server has an imposed limit you cannot raise that limit. Graham.

Re: ->as_hash?

2004-07-06 Thread Graham Barr
On 5 Jul 2004, at 21:52, Quanah Gibson-Mount wrote: I'm curious if anyone would be interested in a $mesg->as_hash; function. We currently have this implemented in an overlay perl module we use (Stanford::Directory) to make using returned results simpler for our client base. Essentially, this al