Package org.keycloak.util.ldap
Class RangedAttributeInterceptor
- java.lang.Object
-
- org.apache.directory.server.core.api.interceptor.BaseInterceptor
-
- org.keycloak.util.ldap.RangedAttributeInterceptor
-
- All Implemented Interfaces:
org.apache.directory.server.core.api.interceptor.Interceptor
public class RangedAttributeInterceptor extends org.apache.directory.server.core.api.interceptor.BaseInterceptorRanged 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-ntdsutilAnd 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
-
-
Constructor Summary
Constructors Constructor Description RangedAttributeInterceptor(String name, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.directory.server.core.api.filtering.EntryFilteringCursorsearch(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:
searchin interfaceorg.apache.directory.server.core.api.interceptor.Interceptor- Overrides:
searchin classorg.apache.directory.server.core.api.interceptor.BaseInterceptor- Throws:
org.apache.directory.api.ldap.model.exception.LdapException
-
-