Package org.apache.hadoop.hbase.http
Class TestLdapAdminACL
java.lang.Object
org.apache.hadoop.hbase.http.HttpServerFunctionalTest
org.apache.hadoop.hbase.http.LdapServerTestBase
org.apache.hadoop.hbase.http.TestLdapAdminACL
@Tag("org.apache.hadoop.hbase.testclassification.MiscTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
@CreateLdapServer(transports=@CreateTransport(protocol="LDAP",address="localhost"))
@ApplyLdifs({"dn: uid=bjones,dc=example,dc=com","cn: Bob Jones","sn: Jones","objectClass: inetOrgPerson","uid: bjones","userPassword: p@ssw0rd","dn: uid=jdoe,dc=example,dc=com","cn: John Doe","sn: Doe","objectClass: inetOrgPerson","uid: jdoe","userPassword: secure123"})
public class TestLdapAdminACL
extends LdapServerTestBase
Test class for admin ACLs with LDAP authentication on the HttpServer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final org.slf4j.Loggerprivate static final Stringprivate static final StringFields inherited from class org.apache.hadoop.hbase.http.LdapServerTestBase
baseUrl, classDirectoryService, classLdapServer, directoryService, ldapConnectionTemplate, ldapServer, methodDirectoryService, methodLdapServer, revision, serverFields inherited from class org.apache.hadoop.hbase.http.HttpServerFunctionalTest
TEST_BUILD_WEBAPPS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidsetLdapConfigurationWithACLs(org.apache.hadoop.conf.Configuration conf) static voidvoidvoidvoidvoidvoidvoidMethods inherited from class org.apache.hadoop.hbase.http.LdapServerTestBase
getLdapServer, openConnection, setLdapConfigurations, stopServerMethods inherited from class org.apache.hadoop.hbase.http.HttpServerFunctionalTest
access, createAndStartTestServer, createServer, createServer, createServer, createServer, createServer, createTestServer, createTestServer, createTestServer, createTestServer, createTestServerWithSecurity, createTestServerWithSecurityAndAcl, deleteRecursively, getFreePort, getServerURL, prepareTestWebapp, readOutput, stop
-
Field Details
-
LOG
-
ADMIN_CREDENTIALS
- See Also:
-
NON_ADMIN_CREDENTIALS
- See Also:
-
WRONG_CREDENTIALS
- See Also:
-
-
Constructor Details
-
TestLdapAdminACL
public TestLdapAdminACL()
-
-
Method Details
-
setupServer
- Throws:
Exception
-
setLdapConfigurationWithACLs
-
testAdminAllowedUnprivilegedServletAccess
- Throws:
IOException
-
testAdminAllowedPrivilegedServletAccess
- Throws:
IOException
-
testNonAdminAllowedUnprivilegedServletAccess
- Throws:
IOException
-
testNonAdminDisallowedPrivilegedServletAccess
- Throws:
IOException
-
testWrongAuthDisallowedUnprivilegedServletAccess
- Throws:
IOException
-
testWrongAuthDisallowedPrivilegedServletAccess
- Throws:
IOException
-