• Marco Trevisan's avatar
    session: Threat PAM max retries error as service unavailable · 504fec05
    Marco Trevisan authored
    When a service has returned PAM_MAXTRIES error code we should both emit
    the error message and also ensure that this service isn't marked as
    available again for the current session, to prevent us to restart the
    authentication of it.
    
    An example of this can be the PAM fprintd module that will return us a
    max retries error when the user tried to use his finger more times than
    configured. In such scenario we want to both prompt the error to the
    user and prevent that this module is used again if the user can still
    use other authentication methods.
    
    So add an error specialization for PAM_MAXTRIES and threat it as service
    unavailable error when emitting it.
    504fec05