Package com.avoka.core.ldap
Class LdapUserQuery
java.lang.Object
com.avoka.core.ldap.LdapUserQuery
Provides an LDAP User Query authenticating the LDAP user credentials and returning the specified attributes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUserAttributes(String providerUrl, String securityPrincipal, String securityCredential, String searchBase, String searchFilter, boolean searchSubTree, List<String> attributeNames) Perform a LDAP user query and return the specified user attributes.getUserAttributes(String providerUrl, String securityPrincipal, String securityCredential, String searchBase, String searchFilter, boolean searchSubTree, List<String> attributeNames, boolean ldapConnectPooling) Perform a LDAP user query and return the specified user attributes and LDAP connection pooling.
-
Constructor Details
-
LdapUserQuery
public LdapUserQuery()
-
-
Method Details
-
getUserAttributes
public Map<String,Object> getUserAttributes(String providerUrl, String securityPrincipal, String securityCredential, String searchBase, String searchFilter, boolean searchSubTree, List<String> attributeNames) throws NamingException Perform a LDAP user query and return the specified user attributes. This method will not use LDAP connection pooling.- Parameters:
providerUrl- the LDAP provider server URLsecurityPrincipal- the user distinguished namesecurityCredential- the user passwordsearchBase- the LDAP query search basesearchFilter- the LDAP search filtersearchSubTree- specify whether to use subtree search scope, or single level otherwiseattributeNames- the list attributes to return- Returns:
- the user attributes
- Throws:
NamingException- if an error occurs
-
getUserAttributes
public Map<String,Object> getUserAttributes(String providerUrl, String securityPrincipal, String securityCredential, String searchBase, String searchFilter, boolean searchSubTree, List<String> attributeNames, boolean ldapConnectPooling) throws NamingException Perform a LDAP user query and return the specified user attributes and LDAP connection pooling.- Parameters:
providerUrl- the LDAP provider server URLsecurityPrincipal- the user distinguished namesecurityCredential- the user passwordsearchBase- the LDAP query search basesearchFilter- the LDAP search filtersearchSubTree- specify whether to use subtree search scope, or single level otherwiseattributeNames- the list attributes to returnldapConnectPooling- use Sun LDAP connection pooling- Returns:
- the user attributes
- Throws:
NamingException- if an error occurs- Since:
- 4.0.0
-