Module org.elasticsearch.security
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 TypeMethodDescriptionString[]Returns the attributes that this resolvers uses.voidresolve(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 authenticatedLDAPConnectionto be used for LDAP queriesuserDn- the distinguished name of the ldap usertimeout- the timeout for any ldap operationlogger- the logger to use if necessaryattributes- a collection of attributes that were previously retrieved for the user such as during a user search.nullindicates that the attributes have not been attempted to be retrievedlistener- 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, returnnull.
-