@CreateLdapServer(transports=@CreateTransport(protocol="LDAP",address="localhost")) @ApplyLdifs(value={"dn: uid=bjones,dc=example,dc=com","cn: Bob Jones","sn: Jones","objectClass: inetOrgPerson","uid: bjones","userPassword: p@ssw0rd"}) public class TestLdapHttpServer extends HttpServerFunctionalTest
Modifier and Type | Field and Description |
---|---|
private static URL |
baseUrl |
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.http.HttpServer |
server |
static org.apache.directory.server.core.integ.CreateLdapServerRule |
serverRule |
TEST_BUILD_WEBAPPS
Constructor and Description |
---|
TestLdapHttpServer() |
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.conf.Configuration |
buildLdapConfiguration(org.apache.hadoop.conf.Configuration conf) |
static void |
setupServer() |
static void |
stopServer() |
void |
testAllowedClient() |
void |
testUnauthorizedClientsDisallowed() |
void |
testWrongAuthClientsDisallowed() |
access, createAndStartTestServer, createServer, createServer, createServer, createServer, createServer, createTestServer, createTestServer, createTestServer, createTestServer, createTestServerWithSecurity, createTestServerWithSecurityAndAcl, deleteRecursively, getFreePort, getServerURL, prepareTestWebapp, readOutput, stop
public static final HBaseClassTestRule CLASS_RULE
public static org.apache.directory.server.core.integ.CreateLdapServerRule serverRule
private static final org.slf4j.Logger LOG
private static org.apache.hadoop.hbase.http.HttpServer server
public TestLdapHttpServer()
public static void setupServer() throws Exception
Exception
public static void stopServer() throws Exception
Exception
private static org.apache.hadoop.conf.Configuration buildLdapConfiguration(org.apache.hadoop.conf.Configuration conf)
public void testUnauthorizedClientsDisallowed() throws IOException
IOException
public void testAllowedClient() throws IOException
IOException
public void testWrongAuthClientsDisallowed() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.