Changes between Initial Version and Version 1 of Ticket #11828, comment 20


Ignore:
Timestamp:
Feb 13, 2015, 8:16:04 PM (9 years ago)
Author:
Centinel

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11828, comment 20

    initial v1  
    1313The third line now fails authentication if the OTP is entered incorrectly or succeeds and exits the PAM stack if the OTP is entered correctly. As a result, everything after the third line becomes dead code, but that's okay since it has to do with password-based authentication.
    1414
    15 In my and jprostko's initial testing, everything works properly. I think we've finally nailed this. Due to prior commitments, I won't be able to resume work on this until early next week, but jprostko may finish this off in the mean time.
     15In my and jprostko's initial testing, everything works properly. I think we've finally nailed this. Due to prior commitments, I won't be able to resume work until early next week, but jprostko may finish it off in the mean time.
    1616
    1717I'm not a security expert, but I would tend to think that OTP would be more appropriate for logins. After all, it's best to keep people from getting in to begin with. However, I can see why you'd opt for sudo OTP as a convenience compromise.
     
    3131
    3232{{{
    33 '''auth [success=1 default=ignore] pam_access.so accessfile=/etc/security/access-local.conf
    34 auth requisite pam_oath.so usersfile=/etc/users.oath window=30'''
     33auth [success=1 default=ignore] pam_access.so accessfile=/etc/security/access-local.conf
     34auth requisite pam_oath.so usersfile=/etc/users.oath window=30
    3535auth     include        common-auth
    3636account  include        common-account
     
    4343The second line prompts for an OTP. If it isn't entered correctly, authentication fails. If it's entered successfully, go to line three and proceed as usual.
    4444
     45The rest of the lines are carried over from the existing PAM file.
     46
    4547And that's all it should take. Feel free to start from there if you've got time, jprostko.