Class CustomLdapTemplate

java.lang.Object
org.springframework.ldap.core.LdapTemplate
org.springframework.security.ldap.SpringSecurityLdapTemplate
com.xebialabs.deployit.security.authentication.CustomLdapTemplate
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.ldap.core.LdapOperations

public class CustomLdapTemplate extends org.springframework.security.ldap.SpringSecurityLdapTemplate
Added support to use PagedResultsDirContextProcessor as default if no DirContextProcessor is passed with search operation Issue was reported with spring-security (https://github.com/spring-projects/spring-security/issues/14741). Once fixed, remove this class.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.ldap.core.LdapTemplate

    org.springframework.ldap.core.LdapTemplate.MappingCollectingNameClassPairCallbackHandler<T extends Object>, org.springframework.ldap.core.LdapTemplate.NullDirContextProcessor
  • Field Summary

    Fields inherited from class org.springframework.security.ldap.SpringSecurityLdapTemplate

    DN_KEY, NO_ATTRS
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomLdapTemplate(org.springframework.ldap.core.ContextSource contextSource, int pageSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> List<T>
    search(String base, String filter, SearchControls controls, org.springframework.ldap.core.AttributesMapper<T> mapper)
     
    <T> List<T>
    search(String base, String filter, SearchControls controls, org.springframework.ldap.core.ContextMapper<T> mapper)
     
    <T> List<T>
    search(Name base, String filter, SearchControls controls, org.springframework.ldap.core.AttributesMapper<T> mapper)
     
    <T> List<T>
    search(Name base, String filter, SearchControls controls, org.springframework.ldap.core.ContextMapper<T> mapper)
     

    Methods inherited from class org.springframework.security.ldap.SpringSecurityLdapTemplate

    compare, retrieveEntry, searchForMultipleAttributeValues, searchForSingleAttributeValues, searchForSingleEntry, searchForSingleEntryInternal, setSearchControls

    Methods inherited from class org.springframework.ldap.core.LdapTemplate

    afterPropertiesSet, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, bind, bind, bind, create, delete, deleteRecursively, executeReadOnly, executeReadWrite, find, find, findAll, findAll, findByDn, findForStream, findOne, getContextSource, getObjectDirectoryMapper, list, list, list, list, list, list, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookupContext, lookupContext, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, rebind, rename, rename, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, searchForContext, searchForObject, searchForObject, searchForObject, searchForObject, searchForObject, searchForStream, searchForStream, setContextSource, setDefaultCountLimit, setDefaultSearchScope, setDefaultTimeLimit, setIgnoreNameNotFoundException, setIgnorePartialResultException, setIgnoreSizeLimitExceededException, setObjectDirectoryMapper, unbind, unbind, unbind, unbind, update

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomLdapTemplate

      public CustomLdapTemplate(org.springframework.ldap.core.ContextSource contextSource, int pageSize)
  • Method Details

    • search

      public <T> List<T> search(String base, String filter, SearchControls controls, org.springframework.ldap.core.ContextMapper<T> mapper)
      Specified by:
      search in interface org.springframework.ldap.core.LdapOperations
      Overrides:
      search in class org.springframework.ldap.core.LdapTemplate
    • search

      public <T> List<T> search(Name base, String filter, SearchControls controls, org.springframework.ldap.core.ContextMapper<T> mapper)
      Specified by:
      search in interface org.springframework.ldap.core.LdapOperations
      Overrides:
      search in class org.springframework.ldap.core.LdapTemplate
    • search

      public <T> List<T> search(Name base, String filter, SearchControls controls, org.springframework.ldap.core.AttributesMapper<T> mapper)
      Specified by:
      search in interface org.springframework.ldap.core.LdapOperations
      Overrides:
      search in class org.springframework.ldap.core.LdapTemplate
    • search

      public <T> List<T> search(String base, String filter, SearchControls controls, org.springframework.ldap.core.AttributesMapper<T> mapper)
      Specified by:
      search in interface org.springframework.ldap.core.LdapOperations
      Overrides:
      search in class org.springframework.ldap.core.LdapTemplate