if ( cfg.isEnableKerberos() )
{
try
{
KdcConfiguration kdcConfiguration = new KdcConfiguration( env, LoadStrategy.PROPS );
PrincipalStore kdcStore = new JndiPrincipalStoreImpl( kdcConfiguration, this );
kdcServer = new KerberosServer( kdcConfiguration, minaRegistry, kdcStore );
}
catch ( Throwable t )
{
log.error( "Failed to start the Kerberos service", t );
}
}
if ( cfg.isEnableChangePassword() )
{
try
{
ChangePasswordConfiguration changePasswordConfiguration = new ChangePasswordConfiguration( env, LoadStrategy.PROPS );
PrincipalStore store = new JndiPrincipalStoreImpl( changePasswordConfiguration, this );
changePasswordServer = new ChangePasswordServer( changePasswordConfiguration, minaRegistry, store );
}
catch ( Throwable t )
{
log.error( "Failed to start the Change Password service", t );