| Author | Messages | |
listmail
Posts:824
 | | 03/01/2007 8:45 AM |
| Yep, you channeled me alright.
Just dont do this. Eric wrote a nice writeup on this previously as well
that should be in the archives.
I reduce this to... If you or a vendor does this, what other bad habits do
you (or the vendor) have? It is just showing that someone is writing code to
work against AD and they don't know how to do it properly so probably
shouldn't. This will end up causing issues at some point. You may figure it
out right away when it does, you may not.
As to how to do it in PHP... I would recommend looking at the c++ docs on
MSDN using the LDAP API, if I recall the PHP LDAP libs are a very light
almost non-existent shell over the LDAP API. You will need to submit the
server control for paging and go from there. --
O'Reilly Active Directory Third Edition -
http://www.joeware.net/win/ad3e.htm
-----Original Message-----
From: ActiveDir-owner@mail.activedir.org
[mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Laura E. Hunter
Sent: Thursday, March 01, 2007 4:16 PM
To: ActiveDir@mail.activedir.org
Subject: Re: RE : RE: RE: [ActiveDir] Maxpagesize on DC.
I will channel the spirit of joe Richards until he reads this thread
and responds to it himself:
Raising the page size? No. No no. No no no. No no no no. No no no
no no. Did I mention...no?
Even if raising the page size from 1000 to 1500 doesn't create perf
issues for you initially, it sets a bad precedent. You set your max
pagesize to 1500 to fix this script issue. Then next month there's
another script/app for which 1500 is too small, so the developer asks
you to raise it to 2500, or 3000 or 5000.
At some point, and probably sooner than later, you're going to start
clobbering your DCs. Much better to have your apps/scripts use paging,
as it's much more predictable and well-behaved.
NB: I will admit to knowing absolutely -nothing- about PHP and so I
can't unfortunately instruct you on how to enable paging in your
script. I have to believe there's a way to do it, though.
On 3/1/07, Yann wrote:
> Thank you Laura for your help.
> > I will test it tomorow.
> I'm not confortable raising the value because we have some exchange 2003
> boxes around my DC, and it seems that exchange 2003 "might" suffer some
> performance issues if the value is raised....
> > Cheers,
> > Yann
> > > "Laura A. Robinson" a écrit :
> > I stink at scripting, but this might work:
> > $page = Net::LDAP::Control::Paged->new( size => 5000);
> > As far as increasing maxpagesize, that's going to depend upon the load you
> want to place on your DC(s); you might try the script approach first.
> > HTH,
> > Laura
> > > > ________________________________
> From: ActiveDir-owner@mail.activedir.org
> [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of
> Yann
> Sent: Thursday, March 01, 2007 2:55 PM
> To: ActiveDir@mail.activedir.org
> Subject: RE : RE: [ActiveDir] Maxpagesize on DC.
> > > wibdows 2003 sp1 in FFL mode.
> > > "Laura A. Robinson" a écrit :
> Windows 2000 or Windows Server 2003?
> > ________________________________
> From: ActiveDir-owner@mail.activedir.org
> [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of
> Yann
> Sent: Thursday, March 01, 2007 1:41 PM
> To: ActiveDir@mail.activedir.org
> Subject: [ActiveDir] Maxpagesize on DC.
> > > Hello all ;),
> > Due to a limit of 1000 responses returned by my DC when querying AD
throught
> Php script, a user has an error.
> > Q1: Is it possible to configure the php script to use Paged Results ? If
> yes how to do it ?
> Q2: if it is not possible, is there any bad issue raising the value of the
> maxpagesize form 1000 to 5000 ?
> > Thanks,
> > Yann
> > ________________________________
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
!
> Profitez des connaissances, des opinions et des expériences des
internautes
> sur Yahoo! Questions/Réponses.
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.5/706 - Release Date: 2/28/2007
> 4:09 PM
> > --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.5/706 - Release Date: 2/28/2007
> 4:09 PM
> > ________________________________
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
!
> Profitez des connaissances, des opinions et des expériences des
internautes
> sur Yahoo! Questions/Réponses.
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.5/706 - Release Date: 2/28/2007
> 4:09 PM
> > --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.5/706 - Release Date: 2/28/2007
> 4:09 PM
> > > > ________________________________
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
!
> Profitez des connaissances, des opinions et des expériences des
internautes
> sur Yahoo! Questions/Réponses.
> > --
-----------------------
Laura E. Hunter
Microsoft MVP - Windows Server Networking
Author: _Active Directory Consultant's Field Guide_
(http://tinyurl.com/7f8ll)
Author: _Active Directory Cookbook, Second Edition_
(http://tinyurl.com/z7svl)
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ma/default.aspx
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ma/default.aspx | | | |
|
|