public interface LdapFacade
Any operation that requires interaction with an LDAP server from within Ambari should go through this interface. (LDAP)
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 ambariLdapConfiguration)
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.
|
void checkConnection(AmbariLdapConfiguration ambariLdapConfiguration) throws AmbariLdapException
ambariLdapConfiguration
- the available ldap related configurationAmbariLdapException
- if the connection fails or other problems occur during the operationAmbariLdapConfiguration detectAttributes(AmbariLdapConfiguration ambariLdapConfiguration) throws AmbariLdapException
ambariLdapConfiguration
- partially filled configuration instance to be extended with detected propertiesAmbariLdapException
- if the attribute detection failsSet<String> checkLdapAttributes(Map<String,Object> parameters, AmbariLdapConfiguration ambariLdapConfiguration) throws AmbariLdapException
parameters
- a map of property name and value pairs holding information to facilitate checking the attributesambariLdapConfiguration
- configuration instance with available attributesAmbariLdapException
- if the attribute checking failsCopyright © 2022 Apache Software Foundation. All rights reserved.