public class LDAPBackedDatabaseUserConfigLoader extends DatabaseUserConfigLoader
Constructor and Description |
---|
LDAPBackedDatabaseUserConfigLoader(org.apache.hadoop.hive.conf.HiveConf conf)
Instantiates a new LDAP backed database user config loader.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getAttributes(String user)
Gets the attributes.
|
Map<String,String> |
getUserConfig(String loggedInUser)
Gets the user config.
|
public LDAPBackedDatabaseUserConfigLoader(org.apache.hadoop.hive.conf.HiveConf conf) throws UserConfigLoaderException
conf
- the confUserConfigLoaderException
- the user config loader exceptionpublic String[] getAttributes(String user) throws NamingException
user
- the userNamingException
- the naming exceptionpublic Map<String,String> getUserConfig(String loggedInUser) throws UserConfigLoaderException
UserConfigLoader
getUserConfig
in interface UserConfigLoader
getUserConfig
in class DatabaseUserConfigLoader
loggedInUser
- the logged in userUserConfigLoaderException
- the user config loader exceptionCopyright © 2014–2016 Apache Software Foundation. All rights reserved.