On 11/05/2015 09:17 AM, Lukas Slebodnik wrote:
Let's image following use case:
* cached authentication is enabled.
* user "pamuser" has never authenticated to the machine and thus
password is not cached
* for the first time the the data provider should be contacted.
( storing cached password is done in DP, so you still need to
call sysdb_cache_password)
* cached authentication shoudl be used for second following authentication.
and attribute lastOnlineAuthWithCurrentToken should be set be 1st
authentication so you needn't call pam_set_last_online_auth_with_curr_token.
This test-case would test that attribute lastOnlineAuthWithCurrentToken is
properly set.
Is it clear?
I hope so, thanks.
Updated patches attached.