LOG.debug( "Processing conversion of principal name to Dn." );
String username = authorizeCB.getAuthorizationID();
// find the user's entry
GetPrincipal getPrincipal = new GetPrincipal( new KerberosPrincipal( username ) );
PrincipalStoreEntry entry = ( PrincipalStoreEntry ) getPrincipal.execute( adminSession, new Dn( ldapSession
.getLdapServer().getSearchBaseDn() ) );
String bindDn = entry.getDistinguishedName();
LOG.debug( "Converted username {} to Dn {}.", username, bindDn );