org.wso2.carbon.apacheds
Interface LDAPServer

All Known Implementing Classes:
ApacheLDAPServer

public interface LDAPServer

Represents a LDAP server.


Method Summary
 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.
 void init(LDAPConfiguration configurations)
          Initializes directory service.
 void start()
          Will start LDAP server.
 void stop()
          Stopes the LDAP server.
 

Method Detail

init

void init(LDAPConfiguration configurations)
          throws DirectoryServerException
Initializes directory service. Will create a LDAP server instance using apacheeds APIs.

Parameters:
configurations - This wraps LDAP specific configurations. This includes information such as ldap running port, kdc running port, whether to enable kdc server etc ...
Throws:
DirectoryServerException - If initialization failed.

start

void start()
           throws DirectoryServerException
Will start LDAP server. Must be initialized first.

Throws:
DirectoryServerException - If unable to start LDAP server.

stop

void stop()
          throws DirectoryServerException
Stopes the LDAP server.

Throws:
DirectoryServerException - If unable to stop LDAP server.

getPartitionManager

PartitionManager getPartitionManager()
                                     throws DirectoryServerException
Gets the partition manager from LDAP server. This is used to create partitions for tenants.

Returns:
Returns a PartitionManager
Throws:
DirectoryServerException - If unable to extract PartitionManager from LDAP service context.

changeConnectionUserPassword

void changeConnectionUserPassword(String password)
                                  throws DirectoryServerException
Changes the connection user password. As for now we don't allow users to change admin domain name. But users can change admin's password using this method.

Parameters:
password - New password.
Throws:
DirectoryServerException - If an error occurred while changing the password.

getConnectionDomainName

String getConnectionDomainName()
                               throws DirectoryServerException
Gets system admins connection domain name. Ex :- uid=admin,ou=system

Returns:
Admin's domain name as a domain name entry.
Throws:
DirectoryServerException - If an error occurred when quarrying the admin user domain name.


Copyright © 2015 WSO2. All rights reserved.