Class RangedAttributeInterceptor

  • All Implemented Interfaces:
    org.apache.directory.server.core.api.interceptor.Interceptor

    public class RangedAttributeInterceptor
    extends org.apache.directory.server.core.api.interceptor.BaseInterceptor

    Ranged interceptor to emulate the behavior of AD. AD has a limit in the number of attributes that return (15000 by default in MaxValRange). See this MS link for AD limits:

    https://support.microsoft.com/en-us/help/315071/how-to-view-and-set-ldap-policy-in-active-directory-by-using-ntdsutil

    And this other link to know how range attribute search works:

    https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ldap/searching-using-range-retrieval
    Author:
    rmartinc
    • Field Summary

      • Fields inherited from class org.apache.directory.server.core.api.interceptor.BaseInterceptor

        directoryService, dnFactory, PWD_POLICY_STATE_ATTRIBUTE_TYPES, schemaManager
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.directory.server.core.api.filtering.EntryFilteringCursor search​(org.apache.directory.server.core.api.interceptor.context.SearchOperationContext sc)  
      • Methods inherited from class org.apache.directory.server.core.api.interceptor.BaseInterceptor

        add, bind, compare, delete, destroy, getName, getNextInterceptor, getPrincipal, getRootDse, hasEntry, init, lookup, modify, move, moveAndRename, next, next, next, next, next, next, next, next, next, next, next, next, next, rename, unbind
    • Constructor Detail

      • RangedAttributeInterceptor

        public RangedAttributeInterceptor​(String name,
                                          int max)
    • Method Detail

      • search

        public org.apache.directory.server.core.api.filtering.EntryFilteringCursor search​(org.apache.directory.server.core.api.interceptor.context.SearchOperationContext sc)
                                                                                   throws org.apache.directory.api.ldap.model.exception.LdapException
        Specified by:
        search in interface org.apache.directory.server.core.api.interceptor.Interceptor
        Overrides:
        search in class org.apache.directory.server.core.api.interceptor.BaseInterceptor
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException