@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
LdapFacadecheckConnection in interface LdapFacadeambariLdapConfiguration - the available ldap related configurationAmbariLdapException - if the connection fails or other problems occur during the operationpublic AmbariLdapConfiguration detectAttributes(AmbariLdapConfiguration ambariLdapConfiguration) throws AmbariLdapException
LdapFacadedetectAttributes in interface LdapFacadeambariLdapConfiguration - 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
LdapFacadecheckLdapAttributes in interface LdapFacadeparameters - 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.