http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsi /paging.asp
>From what I gather from the article, you must write a paged search... As for me, I am still trying to figure out how to do that... I found some articles that saying that you can change the page size, but I haven't figured out how to manipulate this VB code to allow more than 1000 results... Com.Properties("Page Size") = 1000 Steven -----Original Message----- From: Roger [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 9:48 AM To: [EMAIL PROTECTED] Subject: LDAP/ADSI Question I think it's an LDAP question. With the following snippet of code: ##################### $c=Win32::OLE->new("ADODB.Connection"); $c->{Provider}="ADsDSOOBject"; $c->Open("ADSI Provider"); die Win32::OLE->LastError() if Win32::OLE->LastError(); $adspath="LDAP://SERVER/ou=AnyOU,dc=SOME,dc=ORG"; $rs=$c->Execute("<$adspath>;(objectClass=user);ADsPath; Subtree"); until ($rs->EOF){ $u= $rs->Fields(0)->{Value}; print "$u\n"; $rs->moveNext; } ######## This should in theory display every item in the OU. The problem is that it displays only the first 1000 items. Supposedly the default is to be unlimited in size, but 1000 seems to be the actual limit. There is supposed to be a way to set the 'size limit' but I've been unable to figure out how. Does anybody know how to set the size limit for the query? Roger __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs