<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: AD Integration Tip: Dealing With More Than 1,000 Users</title>
	<atom:link href="http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/</link>
	<description>The weblog of an IT pro specializing in virtualization, storage, and servers</description>
	<pubDate>Wed, 17 Mar 2010 00:13:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Doug Woodgate</title>
		<link>http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/comment-page-1/#comment-37287</link>
		<dc:creator>Doug Woodgate</dc:creator>
		<pubDate>Wed, 30 Apr 2008 19:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/#comment-37287</guid>
		<description>Below is from the man page of nss_ldap, it should work like this, but I still had problems with it I think. I was running into an issue that some users wouldn't show up under a global getent passwd, but would with getent passwd username. I figured this was the cause, and may be, but under Red Hat Server 5, it apparently doesn't work. How I fixed it was appending a search filter in ldap.conf

nss_paged_results 
     Enables support for paged results.

pagesize 
     When paged results are enabled (see above), specifies the number of entries to return in a single page. The default is 1000.

Search Filter I applied to reduce the count and make it feel a little quicker.
nss_base_passwd dc=mybpc,dc=net?sub?&amp;(objectCategory=user)(uidNumber=*)

-Doug</description>
		<content:encoded><![CDATA[<p>Below is from the man page of nss_ldap, it should work like this, but I still had problems with it I think. I was running into an issue that some users wouldn&#8217;t show up under a global getent passwd, but would with getent passwd username. I figured this was the cause, and may be, but under Red Hat Server 5, it apparently doesn&#8217;t work. How I fixed it was appending a search filter in ldap.conf</p>
<p>nss_paged_results<br />
     Enables support for paged results.</p>
<p>pagesize<br />
     When paged results are enabled (see above), specifies the number of entries to return in a single page. The default is 1000.</p>
<p>Search Filter I applied to reduce the count and make it feel a little quicker.<br />
nss_base_passwd dc=mybpc,dc=net?sub?&amp;(objectCategory=user)(uidNumber=*)</p>
<p>-Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Ivar Beddari</title>
		<link>http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/comment-page-1/#comment-37040</link>
		<dc:creator>Jan Ivar Beddari</dc:creator>
		<pubDate>Wed, 16 Apr 2008 16:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/#comment-37040</guid>
		<description>Ah, this old problem again :-) Luckily there is now a lot of sample code around the net that shows how you can do paged searches against AD correctly.

http://forum.java.sun.com/thread.jspa?threadID=5117992&amp;tstart=0</description>
		<content:encoded><![CDATA[<p>Ah, this old problem again <img src='http://blog.scottlowe.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> Luckily there is now a lot of sample code around the net that shows how you can do paged searches against AD correctly.</p>
<p><a href="http://forum.java.sun.com/thread.jspa?threadID=5117992&amp;tstart=0" rel="nofollow">http://forum.java.sun.com/thread.jspa?threadID=5117992&amp;tstart=0</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jef</title>
		<link>http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/comment-page-1/#comment-37035</link>
		<dc:creator>Jef</dc:creator>
		<pubDate>Tue, 15 Apr 2008 05:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/#comment-37035</guid>
		<description>Scott,

I agree that I should offer some helpful information other than just saying "don't", so I wrote up some information here which I hope provides some help:

http://jeftek.com/iam/activedirectory/avoid-changing-the-maxpagesize-ldap-query-policy/</description>
		<content:encoded><![CDATA[<p>Scott,</p>
<p>I agree that I should offer some helpful information other than just saying &#8220;don&#8217;t&#8221;, so I wrote up some information here which I hope provides some help:</p>
<p><a href="http://jeftek.com/iam/activedirectory/avoid-changing-the-maxpagesize-ldap-query-policy/" rel="nofollow">http://jeftek.com/iam/activedirectory/avoid-changing-the-maxpagesize-ldap-query-policy/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slowe</title>
		<link>http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/comment-page-1/#comment-37034</link>
		<dc:creator>slowe</dc:creator>
		<pubDate>Tue, 15 Apr 2008 01:01:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/#comment-37034</guid>
		<description>OK, I hear everyone saying just how bad it is to increase MaxPageSize, but I don't hear anyone telling us how to fix the problem that increasing MaxPageSize fixes. It's all well and good to say "Don't do that!", but what people really need is "Do this instead". Anyone care to provide that information?</description>
		<content:encoded><![CDATA[<p>OK, I hear everyone saying just how bad it is to increase MaxPageSize, but I don&#8217;t hear anyone telling us how to fix the problem that increasing MaxPageSize fixes. It&#8217;s all well and good to say &#8220;Don&#8217;t do that!&#8221;, but what people really need is &#8220;Do this instead&#8221;. Anyone care to provide that information?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jef</title>
		<link>http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/comment-page-1/#comment-37031</link>
		<dc:creator>Jef</dc:creator>
		<pubDate>Mon, 14 Apr 2008 22:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/#comment-37031</guid>
		<description>I would agree that messing with the maxpagesize is a very bad Idea.

As Brian said, as soon as you set it to 5,000, what if you grow to 5,001?  Or even 10,000?

It's a constant chasing the number as you grow, while all the time you are introducing potential issues with the infrastructure because of the load you may place on it.

Now how easy is it for you to tell an App owner to "Fix their app" and use paging?  Unfortunately that is not always an easy task, but I tend not to want to change infrastructure to support an application, especially when supporting paging is a solution.

Jef</description>
		<content:encoded><![CDATA[<p>I would agree that messing with the maxpagesize is a very bad Idea.</p>
<p>As Brian said, as soon as you set it to 5,000, what if you grow to 5,001?  Or even 10,000?</p>
<p>It&#8217;s a constant chasing the number as you grow, while all the time you are introducing potential issues with the infrastructure because of the load you may place on it.</p>
<p>Now how easy is it for you to tell an App owner to &#8220;Fix their app&#8221; and use paging?  Unfortunately that is not always an easy task, but I tend not to want to change infrastructure to support an application, especially when supporting paging is a solution.</p>
<p>Jef</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anders</title>
		<link>http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/comment-page-1/#comment-37022</link>
		<dc:creator>Anders</dc:creator>
		<pubDate>Fri, 11 Apr 2008 18:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/#comment-37022</guid>
		<description>Atleast libnss_ldap has support for paging although it's not enabled per default in all installations.
I would assume that winbind also handles paging.

Changing the pagesize should be the absolute last thing you consider doing (and yes, that'd be after bashing developers heads).</description>
		<content:encoded><![CDATA[<p>Atleast libnss_ldap has support for paging although it&#8217;s not enabled per default in all installations.<br />
I would assume that winbind also handles paging.</p>
<p>Changing the pagesize should be the absolute last thing you consider doing (and yes, that&#8217;d be after bashing developers heads).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slowe</title>
		<link>http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/comment-page-1/#comment-37020</link>
		<dc:creator>slowe</dc:creator>
		<pubDate>Fri, 11 Apr 2008 18:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/#comment-37020</guid>
		<description>Brian,

OK, fair enough. How would you suggest handling this problem, then?</description>
		<content:encoded><![CDATA[<p>Brian,</p>
<p>OK, fair enough. How would you suggest handling this problem, then?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Desmond</title>
		<link>http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/comment-page-1/#comment-37019</link>
		<dc:creator>Brian Desmond</dc:creator>
		<pubDate>Fri, 11 Apr 2008 17:41:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2008/04/11/ad-integration-tip-dealing-with-more-than-1000-users/#comment-37019</guid>
		<description>This is a really bad idea. This is not an AD limitation, it's an application programming issue. This is the LDAP page size - standard thing across any LDAP directory. 1,000 is the max number of records returned in a result set so the app has to support paging to get more.

This is not a best practice and yes it can cause problems. The other problem is once you do it once, you set the precedent to keep doing it.</description>
		<content:encoded><![CDATA[<p>This is a really bad idea. This is not an AD limitation, it&#8217;s an application programming issue. This is the LDAP page size - standard thing across any LDAP directory. 1,000 is the max number of records returned in a result set so the app has to support paging to get more.</p>
<p>This is not a best practice and yes it can cause problems. The other problem is once you do it once, you set the precedent to keep doing it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
