pan3793 commented on code in PR #36784: URL: https://github.com/apache/spark/pull/36784#discussion_r901603588
########## sql/hive-thriftserver/src/main/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java: ########## @@ -30,21 +35,19 @@ public class LdapAuthenticationProviderImpl implements PasswdAuthenticationProvi private final String ldapURL; private final String baseDN; private final String ldapDomain; + private final String userDNPattern; LdapAuthenticationProviderImpl() { HiveConf conf = new HiveConf(); ldapURL = conf.getVar(HiveConf.ConfVars.HIVE_SERVER2_PLAIN_LDAP_URL); baseDN = conf.getVar(HiveConf.ConfVars.HIVE_SERVER2_PLAIN_LDAP_BASEDN); ldapDomain = conf.getVar(HiveConf.ConfVars.HIVE_SERVER2_PLAIN_LDAP_DOMAIN); + userDNPattern = conf.get("hive.server2.authentication.ldap.userDNPattern"); Review Comment: Would you please use variable `HiveConf.ConfVars.HIVE_SERVER2_PLAIN_LDAP_USERDNPATTERN` as well? It is introduced in HIVE-11343 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org