private static void setLdapConfigurationWithACLs(Configuration conf) {
    setLdapConfigurations(conf);

    // Enable LDAP admin ACL
    conf.setBoolean(CommonConfigurationKeys.HADOOP_SECURITY_AUTHORIZATION, true);
    conf.setBoolean(CommonConfigurationKeys.HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN, true);
    conf.set(HttpServer.HTTP_LDAP_AUTHENTICATION_ADMIN_USERS_KEY, "bjones");
  }
Test class for admin ACLs with LDAP authentication on the HttpServer.
hbase-http/src/test/java/org/apache/hadoop/hbase/http/TestLdapAdminACL.java