Review Board 1.7.22


HIVE-4707: Support configurable domain name for HiveServer2 LDAP authentication using Active Directory

Review Request #11793 - Created June 11, 2013 and updated

Prasad Mujumdar
trunk
HIVE-4707
Reviewers
hive
hive-git
Append the configured domain name to LDAP userid
Manually tested the domain configuration with LDAP authentication via Active Directory.
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
Revision 40abb7b New Change
[20] 724 lines
[+20] [+] public class HiveConf extends Configuration {
725
    HIVE_SERVER2_AUTHENTICATION("hive.server2.authentication", "NONE"),
725
    HIVE_SERVER2_AUTHENTICATION("hive.server2.authentication", "NONE"),
726
    HIVE_SERVER2_KERBEROS_KEYTAB("hive.server2.authentication.kerberos.keytab", ""),
726
    HIVE_SERVER2_KERBEROS_KEYTAB("hive.server2.authentication.kerberos.keytab", ""),
727
    HIVE_SERVER2_KERBEROS_PRINCIPAL("hive.server2.authentication.kerberos.principal", ""),
727
    HIVE_SERVER2_KERBEROS_PRINCIPAL("hive.server2.authentication.kerberos.principal", ""),
728
    HIVE_SERVER2_PLAIN_LDAP_URL("hive.server2.authentication.ldap.url", null),
728
    HIVE_SERVER2_PLAIN_LDAP_URL("hive.server2.authentication.ldap.url", null),
729
    HIVE_SERVER2_PLAIN_LDAP_BASEDN("hive.server2.authentication.ldap.baseDN", null),
729
    HIVE_SERVER2_PLAIN_LDAP_BASEDN("hive.server2.authentication.ldap.baseDN", null),

    
   
730
    HIVE_SERVER2_PLAIN_LDAP_DOMAIN("hive.server2.authentication.ldap.Domain", null),
730
    HIVE_SERVER2_CUSTOM_AUTHENTICATION_CLASS("hive.server2.custom.authentication.class", null),
731
    HIVE_SERVER2_CUSTOM_AUTHENTICATION_CLASS("hive.server2.custom.authentication.class", null),
731
    HIVE_SERVER2_ENABLE_DOAS("hive.server2.enable.doAs", true),
732
    HIVE_SERVER2_ENABLE_DOAS("hive.server2.enable.doAs", true),
732

    
   
733

   
733
    HIVE_CONF_RESTRICTED_LIST("hive.conf.restricted.list", null),
734
    HIVE_CONF_RESTRICTED_LIST("hive.conf.restricted.list", null),
734

    
   
735

   
[+20] [20] 507 lines
service/src/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java
Revision 3919827 New Change
 
  1. common/src/java/org/apache/hadoop/hive/conf/HiveConf.java: Loading...
  2. service/src/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java: Loading...