public interface LdapConfigurationService
Modifier and Type | Method and Description |
---|---|
void |
checkConnection(AmbariLdapConfiguration configuration)
Tests the connection based on the provided configuration.
|
Set<String> |
checkGroupAttributes(String userDn,
AmbariLdapConfiguration ambariLdapConfiguration)
Checks whether the group related LDAP attributes in the configuration are correct.
|
String |
checkUserAttributes(String testUserName,
String testPassword,
AmbariLdapConfiguration configuration)
Implements LDAP user related configuration settings validation logic.
|
void checkConnection(AmbariLdapConfiguration configuration) throws AmbariLdapException
configuration
- the ambari ldap configuration instanceAmbariLdapException
- if the connection is not possibleString checkUserAttributes(String testUserName, String testPassword, AmbariLdapConfiguration configuration) throws AmbariLdapException
testUserName
- the test usernametestPassword
- the test passwordconfiguration
- the available ldap configurationorg.apache.ambari.server.AmbariException
- if the connection couldn't be estabilishedsAmbariLdapException
Set<String> checkGroupAttributes(String userDn, AmbariLdapConfiguration ambariLdapConfiguration) throws AmbariLdapException
userDn
- ambariLdapConfiguration
- AmbariLdapException
Copyright © 2022 Apache Software Foundation. All rights reserved.