[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: size limits



Daniel Henninger writes:
> I'm trying to accomplish the following:
> 1. if someone searches within the ou=people,dc=ncsu,dc=edu tree, then
>    the most results they can get is 50
> 2. if someone searches anywhere else (ou=printers,dc=ncsu,dc=edu for
>    example) there is no limit to the number of results they can get
> 
> Is this possible?  It -almost- looks like the limits command would do it,
> but I can not figure it out.

'Limits' lets you say that different limits can apply to different users,
not that different limits can apply to different parts of your tree.

I think you must put ou=people,... in a separate database with its own
limit.  Then searches based at dc=ncsu,dc=edu will by default not
descend into ou=people.  You can put the 'subordinate' keyword in
ou=people's database definition if you wish to change that.  (I have
not tested that.)

-- 
Hallvard