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 );