com.atlassian.confluence.it.usermanagement
Class LdapService
java.lang.Object
com.atlassian.confluence.it.usermanagement.LdapService
public class LdapService
- extends java.lang.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 java.lang.Exception
- Throws:
java.lang.Exception
createPartition
public void createPartition(java.lang.String ldif)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDefaultLdif
public static java.lang.String getDefaultLdif()
removePartition
public void removePartition()
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()
- Stops the LDAP server.
getUserManagementHelper
public LdapUserManagementHelper getUserManagementHelper(ConfluenceRpc rpc)
getPort
public int getPort()
Copyright © 2003-2013 Atlassian. All Rights Reserved.