public class ApacheLDAPServer extends Object implements LDAPServer
| Constructor and Description |
|---|
ApacheLDAPServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeConnectionUserPassword(String password)
Changes the connection user password.
|
String |
getConnectionDomainName()
Gets system admins connection domain name.
|
PartitionManager |
getPartitionManager()
Gets the partition manager from LDAP server.
|
org.apache.directory.server.core.DirectoryService |
getService() |
void |
init(LDAPConfiguration configurations)
Initializes directory service.
|
protected void |
initializeDefaultDirectoryService() |
protected void |
initializeLDAPServer() |
void |
setService(org.apache.directory.server.core.DirectoryService service) |
void |
start()
Will start LDAP server.
|
void |
stop()
Stopes the LDAP server.
|
public void init(LDAPConfiguration configurations) throws DirectoryServerException
LDAPServerinit in interface LDAPServerconfigurations - This wraps LDAP specific configurations. This includes information
such as ldap running port, kdc running port, whether to enable kdc server etc ...DirectoryServerException - If initialization failed.public org.apache.directory.server.core.DirectoryService getService()
public void setService(org.apache.directory.server.core.DirectoryService service)
public void start()
throws DirectoryServerException
LDAPServerstart in interface LDAPServerDirectoryServerException - If unable to start LDAP server.public void stop()
throws DirectoryServerException
LDAPServerstop in interface LDAPServerDirectoryServerException - If unable to stop LDAP server.public PartitionManager getPartitionManager() throws DirectoryServerException
LDAPServergetPartitionManager in interface LDAPServerPartitionManagerDirectoryServerException - If unable to extract PartitionManager from LDAP service
context.protected void initializeDefaultDirectoryService()
throws DirectoryServerException
DirectoryServerExceptionpublic String getConnectionDomainName() throws DirectoryServerException
LDAPServergetConnectionDomainName in interface LDAPServerDirectoryServerException - If an error occurred when quarrying the admin user domain
name.public void changeConnectionUserPassword(String password) throws DirectoryServerException
LDAPServerchangeConnectionUserPassword in interface LDAPServerpassword - New password.DirectoryServerException - If an error occurred while changing the password.protected void initializeLDAPServer()
throws DirectoryServerException
DirectoryServerExceptionCopyright © 2015 WSO2. All rights reserved.