outAttrs.add( SchemaConstants.UID_AT, principalEntry.getUserId() );
outAttrs.add( KerberosAttribute.APACHE_SAM_TYPE_AT, "7" );
outAttrs.add( SchemaConstants.SN_AT, principalEntry.getUserId() );
outAttrs.add( SchemaConstants.CN_AT, principalEntry.getCommonName() );
EncryptionKey encryptionKey = principalEntry.getKeyMap().get( EncryptionType.DES_CBC_MD5 );
outAttrs.add( KerberosAttribute.KRB5_KEY_AT, EncryptionKeyEncoder.encode( encryptionKey ) );
int keyVersion = encryptionKey.getKeyVersion();
outAttrs.add( KerberosAttribute.KRB5_PRINCIPAL_NAME_AT, principalEntry.getPrincipal().getName() );
outAttrs.add( KerberosAttribute.KRB5_KEY_VERSION_NUMBER_AT, Integer.toString( keyVersion ) );
return outAttrs;