Ignore:
Timestamp:
Jul 21, 2016, 3:34:24 PM (4 years ago)
Author:
dcorreia
Message:

Added reset to default configuration feature

File:
1 edited

Legend:

Unmodified
Added
Removed
  • internals/2016/linuxloginsmartcardwizard/trunk/project1/main.py

    r16354 r16364  
    7474username = input("Please write the username to used in the mapping\n")
    7575if config.addUserMapping(PAMPKCS11_MAPPING, username):
    76     print("Added mapping for user '%s'\n" % username)
     76    print("Added mapping for user '%s'" % username)
    7777else:
    7878    print("Failed to add mapping for user '%s'" % username)
     
    8383# Simulate pam-auth-update manually to change content of common-auth
    8484config.runPamAuthUpdate()
     85
     86
     87def resetConfigurations():
     88    config.deleteDirectory(PAMPKCS11_DIRPATH)
     89    config.deleteFile(PAMCONFIG)
     90    config.resetPamAuth()
     91    config.deleteTemporaryData()
     92
Note: See TracChangeset for help on using the changeset viewer.