| Modifier and Type | Field and Description |
|---|---|
protected LdapContext |
schemaRoot
the context root for the schema
|
| Constructor and Description |
|---|
ApacheKDCServer() |
| Modifier and Type | Method and Description |
|---|---|
protected Attributes |
getPrincipalAttributes(String sn,
String cn,
String uid,
String userPassword,
String principal)
Convenience method for creating principals.
|
void |
init(KdcConfiguration configuration,
LDAPServer ldapServer)
Initializes the KDC server.
|
boolean |
isKDCServerStarted()
Says whether KDC server is started or not.
|
void |
kerberizePartition(PartitionInfo partitionInfo,
LDAPServer ldapServer)
Once we add a new partition to LDAP server we need to make it a kerberos enabled
realm.
|
void |
start()
Starts the KDC server.
|
void |
stop()
Stops the KDC server.
|
protected LdapContext schemaRoot
public void init(KdcConfiguration configuration, LDAPServer ldapServer) throws DirectoryServerException
KDCServerinit in interface KDCServerconfiguration - Configuration of the KDC server. This includes,
host name to use, port numbers to use etc ... *ldapServer - KDC server also needs a user store to authenticate users.
This variable represents the LDAP server which stores users.DirectoryServerException - If an error occurred during initialization.public void kerberizePartition(PartitionInfo partitionInfo, LDAPServer ldapServer) throws DirectoryServerException
KDCServerkerberizePartition in interface KDCServerpartitionInfo - Partition configurations.ldapServer - The LDAP server instance which we add the partition.DirectoryServerException - If an error occurred during operation.protected Attributes getPrincipalAttributes(String sn, String cn, String uid, String userPassword, String principal)
cn - the commonName of the personprincipal - the kerberos principal name for the personsn - the surName of the personuid - the unique identifier for the personuserPassword - the credentials of the personpublic void start()
throws DirectoryServerException
KDCServerstart in interface KDCServerDirectoryServerException - If an error occurred during startup.public boolean isKDCServerStarted()
KDCServerisKDCServerStarted in interface KDCServertrue if started else false.public void stop()
throws DirectoryServerException
KDCServerstop in interface KDCServerDirectoryServerException - If an error occurred during server termination.Copyright © 2015 WSO2. All rights reserved.