Class AbstractLdapSearchProperties

java.lang.Object
org.apereo.cas.configuration.model.support.ldap.AbstractLdapProperties
org.apereo.cas.configuration.model.support.ldap.AbstractLdapSearchProperties
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractLdapAuthenticationProperties, LdapAcceptableUsagePolicyProperties, LdapConsentProperties, LdapGoogleAuthenticatorMultifactorProperties, LdapGraphicalUserAuthenticationProperties, LdapPasswordManagementProperties, LdapPasswordSynchronizationProperties, LdapPrincipalAttributesProperties, LdapServiceRegistryProperties, LdapThrottleProperties, Pac4jDelegatedAuthenticationLdapProfileSelectionProperties, PasswordlessAuthenticationLdapAccountsProperties, SpnegoLdapProperties, SurrogateLdapAuthenticationProperties, SurrogateSimpleAuthenticationProperties, WebAuthnLdapMultifactorProperties, X509LdapProperties

@RequiresModule(name="cas-server-support-ldap") public abstract class AbstractLdapSearchProperties extends AbstractLdapProperties
Since:
5.3.0
See Also:
  • Constructor Details

    • AbstractLdapSearchProperties

      public AbstractLdapSearchProperties()
  • Method Details

    • getSearchFilter

      public String getSearchFilter()
      User filter to use for searching. Syntax is cn={user} or cn={0}.

      You may also provide an external groovy script in the syntax of file:/path/to/GroovyScript.groovy to fully build the final filter template dynamically.

    • isSubtreeSearch

      public boolean isSubtreeSearch()
      Whether subtree searching is allowed.
    • getPageSize

      public int getPageSize()
      Request that the server return results in batches of a specific size. See RFC 2696. This control is often used to work around server result size limits. A negative/zero value disables paged requests.
    • getBaseDn

      public String getBaseDn()
      Base DN to use. There may be scenarios where different parts of a single LDAP tree could be considered as base-dns. Rather than duplicating the LDAP configuration block for each individual base-dn, each entry can be specified and joined together using a special delimiter character. The user DN is retrieved using the combination of all base-dn and DN resolvers in the order defined. DN resolution should fail if multiple DNs are found. Otherwise the first DN found is returned. Usual syntax is: subtreeA,dc=example,dc=net|subtreeC,dc=example,dc=net.
    • getSearchEntryHandlers

      public List<LdapSearchEntryHandlersProperties> getSearchEntryHandlers()
      Search handlers.
    • setSearchFilter

      public AbstractLdapSearchProperties setSearchFilter(String searchFilter)
      User filter to use for searching. Syntax is cn={user} or cn={0}.

      You may also provide an external groovy script in the syntax of file:/path/to/GroovyScript.groovy to fully build the final filter template dynamically.

      Returns:
      this.
    • setSubtreeSearch

      public AbstractLdapSearchProperties setSubtreeSearch(boolean subtreeSearch)
      Whether subtree searching is allowed.
      Returns:
      this.
    • setPageSize

      public AbstractLdapSearchProperties setPageSize(int pageSize)
      Request that the server return results in batches of a specific size. See RFC 2696. This control is often used to work around server result size limits. A negative/zero value disables paged requests.
      Returns:
      this.
    • setBaseDn

      public AbstractLdapSearchProperties setBaseDn(String baseDn)
      Base DN to use. There may be scenarios where different parts of a single LDAP tree could be considered as base-dns. Rather than duplicating the LDAP configuration block for each individual base-dn, each entry can be specified and joined together using a special delimiter character. The user DN is retrieved using the combination of all base-dn and DN resolvers in the order defined. DN resolution should fail if multiple DNs are found. Otherwise the first DN found is returned. Usual syntax is: subtreeA,dc=example,dc=net|subtreeC,dc=example,dc=net.
      Returns:
      this.
    • setSearchEntryHandlers

      public AbstractLdapSearchProperties setSearchEntryHandlers(List<LdapSearchEntryHandlersProperties> searchEntryHandlers)
      Search handlers.
      Returns:
      this.