Interface LdapSession.GroupsResolver

Enclosing class:
LdapSession

public static interface LdapSession.GroupsResolver
A GroupsResolver is used to resolve the group names of a given LDAP user
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the attributes that this resolvers uses.
    void
    resolve(com.unboundid.ldap.sdk.LDAPInterface ldapConnection, String userDn, org.elasticsearch.core.TimeValue timeout, org.apache.logging.log4j.Logger logger, Collection<com.unboundid.ldap.sdk.Attribute> attributes, ActionListener<List<String>> listener)
    Asynchronously resolve the group name for the given ldap user
  • Method Details

    • resolve

      void resolve(com.unboundid.ldap.sdk.LDAPInterface ldapConnection, String userDn, org.elasticsearch.core.TimeValue timeout, org.apache.logging.log4j.Logger logger, Collection<com.unboundid.ldap.sdk.Attribute> attributes, ActionListener<List<String>> listener)
      Asynchronously resolve the group name for the given ldap user
      Parameters:
      ldapConnection - an authenticated LDAPConnection to be used for LDAP queries
      userDn - the distinguished name of the ldap user
      timeout - the timeout for any ldap operation
      logger - the logger to use if necessary
      attributes - a collection of attributes that were previously retrieved for the user such as during a user search. null indicates that the attributes have not been attempted to be retrieved
      listener - the listener to call on a result or on failure
    • attributes

      String[] attributes()
      Returns the attributes that this resolvers uses. If no attributes are required, return null.