outAttrs.add( SchemaConstants.CN_AT, principalEntry.getCommonName() );
EncryptionKey encryptionKey = principalEntry.getKeyMap().get( EncryptionType.DES_CBC_MD5 );
ByteBuffer buffer = ByteBuffer.allocate( encryptionKey.computeLength() );
outAttrs.add( KerberosAttribute.KRB5_KEY_AT, encryptionKey.encode( buffer ).array() );
int keyVersion = encryptionKey.getKeyVersion();
outAttrs.add( KerberosAttribute.KRB5_PRINCIPAL_NAME_AT, principalEntry.getPrincipal().toString() );
outAttrs.add( KerberosAttribute.KRB5_KEY_VERSION_NUMBER_AT, Integer.toString( keyVersion ) );