@Singleton public class AmbariLdapFacade extends Object implements LdapFacade
Modifier and Type | Class and Description |
---|---|
static class |
AmbariLdapFacade.Parameters
Additional parameters expected to be provided along with the configuration
|
Constructor and Description |
---|
AmbariLdapFacade() |
Modifier and Type | Method and Description |
---|---|
void |
checkConnection(AmbariLdapConfiguration ambariLdapConfiguration)
Tests the connection to the LDAP server based on the provided configuration.
|
Set<String> |
checkLdapAttributes(Map<String,Object> parameters,
AmbariLdapConfiguration ldapConfiguration)
Checks user and group related LDAP configuration attributes in the configuration object with the help of the provided parameters
|
AmbariLdapConfiguration |
detectAttributes(AmbariLdapConfiguration ambariLdapConfiguration)
Runs the user and group attribute detection algorithms.
|
public void checkConnection(AmbariLdapConfiguration ambariLdapConfiguration) throws AmbariLdapException
LdapFacade
checkConnection
in interface LdapFacade
ambariLdapConfiguration
- the available ldap related configurationAmbariLdapException
- if the connection fails or other problems occur during the operationpublic AmbariLdapConfiguration detectAttributes(AmbariLdapConfiguration ambariLdapConfiguration) throws AmbariLdapException
LdapFacade
detectAttributes
in interface LdapFacade
ambariLdapConfiguration
- partially filled configuration instance to be extended with detected propertiesAmbariLdapException
- if the attribute detection failspublic Set<String> checkLdapAttributes(Map<String,Object> parameters, AmbariLdapConfiguration ldapConfiguration) throws AmbariLdapException
LdapFacade
checkLdapAttributes
in interface LdapFacade
parameters
- a map of property name and value pairs holding information to facilitate checking the attributesldapConfiguration
- configuration instance with available attributesAmbariLdapException
- if the attribute checking failsCopyright © 2022 Apache Software Foundation. All rights reserved.