d453f92 authtok: add dedicated type for 2fa with single string

Authored and Committed by sbose 5 years ago
    authtok: add dedicated type for 2fa with single string
    
    Currently the password type is used to send two-factor authentication
    credentials entered in a single string to the backend, This is
    unreliable and only works properly if password authentication is not
    available for the user as well.
    
    To support 2FA credentials in a single string better a new authtok type
    is added.
    
    Related to https://pagure.io/SSSD/sssd/issue/3264
    
    Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
    (cherry picked from commit ac4b33f765ac322949ac7c2f24985d3b9c178168)
    
        
file modified
+3 -0
file modified
+42 -0
file modified
+35 -0