// ---- lookup the principal entry's userPassword attribute
LdapName principalDn = new LdapName( principal );
ContextPartitionNexus nexus = getFactoryConfiguration().getPartitionNexus();
Attributes userEntry = nexus.lookup( principalDn );
if ( userEntry == null )
{
throw new LdapNameNotFoundException();
}