PrincipalStore store = new JndiPrincipalStoreImpl( ctx, new LdapName( "ou=Users" ) );
SamSubsystem.getInstance().setUserContext( ( DirContext ) ctx, "ou=Users" );
try
{
minaRegistry.bind( service, new KerberosProtocolProvider( config, store ) );
kerberosService = service;
if ( log.isInfoEnabled() )
{
log.info( "Successful bind of KRB5 Service completed: " + kerberosService );
}