CreateChngPwdServer createChngPwdServer = createChngPwdServers[0];
ChangePasswordConfig config = new ChangePasswordConfig( kdcConfig );
config.setServicePrincipal( createChngPwdServer.srvPrincipal() );
ChangePasswordServer chngPwdServer = new ChangePasswordServer( config );
for( CreateTransport transportBuilder : createChngPwdServer.transports() )
{
Transport t = createTransport( transportBuilder, startPort );
startPort = t.getPort() + 1;
chngPwdServer.addTransports( t );
}
chngPwdServer.setDirectoryService( directoryService );
kdcServer.setChangePwdServer( chngPwdServer );
}
kdcServer.setDirectoryService( directoryService );