Class LdapConnection
java.lang.Object
org.gridgain.internal.security.ldap.client.LdapConnection
- All Implemented Interfaces:
AutoCloseable
Ldap connection.
-
Constructor Summary
ConstructorsConstructorDescriptionLdapConnection(String url, LdapSearchParams usersSearch, LdapSearchParams groupsSearch, String user, String password) Constructor. -
Method Summary
-
Constructor Details
-
LdapConnection
public LdapConnection(String url, LdapSearchParams usersSearch, LdapSearchParams groupsSearch, String user, String password) throws NamingException Constructor.- Parameters:
url- Ldap server url.usersSearch- Users search parameters.groupsSearch- Groups search parameters.user- Principal user.password- Principal password.- Throws:
NamingException- in case when failed to connect to server.
-
-
Method Details
-
groups
Returns users groups.- Returns:
- Users groups.
- Throws:
LdapAuthenticationException- in case when failed to extract groups from Ldap server.
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
NamingException
-