55578e9 Fix filtering of enctypes in server code.

Authored and Committed by simo 9 years ago
    Fix filtering of enctypes in server code.
    
    The filtering was incorrect and would result in always discarding all values.
    Also make sure there are no duplicates in the list.
    
    Partial fix for:
    https://fedorahosted.org/freeipa/ticket/4718
    
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    Reviewed-By: Nathaniel McCallum <npmccallum@redhat.com>