com.atlassian.confluence.it.usermanagement
Class LdapService
java.lang.Object
com.atlassian.confluence.it.usermanagement.LdapService
public class LdapService
- extends Object
Starts an LDAP server on the first available port within the range.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static LdapService getInstance()
start
public void start()
throws LdapService.LdapServerBindException
- Tries to start an LDAP server on any free port in the port range between
PORT_RANGE_START
and PORT_RANGE_END
.
- Throws:
LdapService.LdapServerBindException
- if there is no free port available in the given range
createPartition
public void createPartition()
throws Exception
- Throws:
Exception
createPartition
public void createPartition(String ldif)
throws Exception
- Throws:
Exception
getDefaultLdif
public static String getDefaultLdif()
removePartition
public void removePartition()
throws Exception
- Throws:
Exception
stop
public void stop()
- Stops the LDAP server.
getUserManagementHelper
public LdapUserManagementHelper getUserManagementHelper(ConfluenceRpc rpc)
getPort
public int getPort()
Copyright © 2003-2012 Atlassian. All Rights Reserved.