puiterwijk / ipsilon

Forked from ipsilon 7 years ago
Clone

54ab11c Fix python-pam API usage

Authored and Committed by puiterwijk 8 years ago
    Fix python-pam API usage
    
    Make authpam compatible with both the old and the new API for
    python-pam.
    Using a try when importing since that way we only need to do
    this once (upon loading the class), instead of on every request.
    
    Fixes #65
    Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
    Reviewed-by: Simo Sorce <simo@redhat.com>
    
        
file modified
+3 -0