Changeset 16364


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

Added reset to default configuration feature

Location:
internals/2016/linuxloginsmartcardwizard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • internals/2016/linuxloginsmartcardwizard/.idea/workspace.xml

    r16354 r16364  
    33  <component name="ChangeListManager">
    44    <list default="true" readonly="true" id="fbd8e757-714d-41c6-a2b9-8558c09dbd04" name="Default" comment="">
    5       <change type="MOVED" beforePath="$PROJECT_DIR$/trunk/project1/configpkcs11.py" afterPath="$PROJECT_DIR$/trunk/project1/config.py" />
    6       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/dictionaries/danielcorreia.xml" afterPath="$PROJECT_DIR$/.idea/dictionaries/danielcorreia.xml" />
    7       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/estagiopycharm.iml" afterPath="$PROJECT_DIR$/.idea/estagiopycharm.iml" />
    85      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
     6      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/trunk/project1/config.py" afterPath="$PROJECT_DIR$/trunk/project1/config.py" />
    97      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/trunk/project1/main.py" afterPath="$PROJECT_DIR$/trunk/project1/main.py" />
    108    </list>
     
    3129        <entry file="file://$PROJECT_DIR$/trunk/project1/config.py">
    3230          <provider selected="true" editor-type-id="text-editor">
    33             <state relative-caret-position="1170">
    34               <caret line="176" column="48" selection-start-line="176" selection-start-column="48" selection-end-line="176" selection-end-column="48" />
     31            <state relative-caret-position="131">
     32              <caret line="280" column="4" selection-start-line="280" selection-start-column="4" selection-end-line="280" selection-end-column="4" />
    3533              <folding>
    3634                <element signature="e#19#28#0" expanded="true" />
    37                 <element signature="e#1116#1682#0" expanded="false" />
    38                 <element signature="e#1116#1314#1" expanded="true" />
    39                 <element signature="e#1761#2157#0" expanded="false" />
    40                 <element signature="e#1761#2031#1" expanded="true" />
    41                 <element signature="e#2195#2389#0" expanded="false" />
    42                 <element signature="e#2195#2307#1" expanded="true" />
    43                 <element signature="e#2429#2610#0" expanded="false" />
    44                 <element signature="e#2429#2548#1" expanded="true" />
    45                 <element signature="e#2651#2940#0" expanded="false" />
    46                 <element signature="e#2651#2771#1" expanded="true" />
    47                 <element signature="e#2997#3286#0" expanded="false" />
    48                 <element signature="e#2997#3162#1" expanded="true" />
    49                 <element signature="e#3323#3529#0" expanded="false" />
    50                 <element signature="e#3323#3481#1" expanded="true" />
    51                 <element signature="e#3568#3760#0" expanded="false" />
    52                 <element signature="e#3568#3715#1" expanded="true" />
    53                 <element signature="e#3812#4012#0" expanded="false" />
    54                 <element signature="e#3812#3965#1" expanded="true" />
    55                 <element signature="e#4060#4273#0" expanded="false" />
    56                 <element signature="e#4060#4222#1" expanded="true" />
    57                 <element signature="e#4326#4545#0" expanded="false" />
    58                 <element signature="e#4326#4498#1" expanded="true" />
    59                 <element signature="e#4586#4775#0" expanded="false" />
    60                 <element signature="e#4586#4712#1" expanded="true" />
    61                 <element signature="e#4825#5066#0" expanded="false" />
    62                 <element signature="e#4825#4996#1" expanded="true" />
    63                 <element signature="e#5135#5672#0" expanded="false" />
    64                 <element signature="e#5135#5433#1" expanded="true" />
    65                 <element signature="e#5728#6117#0" expanded="false" />
    66                 <element signature="e#5728#5951#1" expanded="true" />
    67                 <element signature="e#6162#6437#0" expanded="false" />
    68                 <element signature="e#6162#6345#1" expanded="true" />
    69                 <element signature="e#6502#6939#0" expanded="false" />
    70                 <element signature="e#6502#6726#1" expanded="true" />
    71                 <element signature="e#6990#7261#0" expanded="false" />
    72                 <element signature="e#6990#7193#1" expanded="true" />
    73                 <element signature="e#7314#7584#0" expanded="false" />
    74                 <element signature="e#7314#7514#1" expanded="true" />
    75                 <element signature="e#7621#7942#0" expanded="false" />
    76                 <element signature="e#7621#7724#1" expanded="true" />
    77                 <element signature="e#7998#8549#0" expanded="false" />
    78                 <element signature="e#7998#8209#1" expanded="true" />
    79                 <element signature="e#8580#9006#0" expanded="false" />
    80                 <element signature="e#8580#8702#1" expanded="true" />
     35                <element signature="e#1211#1777#0" expanded="false" />
     36                <element signature="e#1211#1409#1" expanded="true" />
     37                <element signature="e#1856#2252#0" expanded="false" />
     38                <element signature="e#1856#2126#1" expanded="true" />
     39                <element signature="e#2290#2484#0" expanded="false" />
     40                <element signature="e#2290#2402#1" expanded="true" />
     41                <element signature="e#2524#2705#0" expanded="false" />
     42                <element signature="e#2524#2643#1" expanded="true" />
     43                <element signature="e#2746#2866#1" expanded="true" />
     44                <element signature="e#3092#3381#0" expanded="false" />
     45                <element signature="e#3092#3257#1" expanded="true" />
     46                <element signature="e#3418#3624#0" expanded="false" />
     47                <element signature="e#3418#3576#1" expanded="true" />
     48                <element signature="e#3663#3855#0" expanded="false" />
     49                <element signature="e#3663#3810#1" expanded="true" />
     50                <element signature="e#3907#4107#0" expanded="false" />
     51                <element signature="e#3907#4060#1" expanded="true" />
     52                <element signature="e#4155#4368#0" expanded="false" />
     53                <element signature="e#4155#4317#1" expanded="true" />
     54                <element signature="e#4421#4640#0" expanded="false" />
     55                <element signature="e#4421#4593#1" expanded="true" />
     56                <element signature="e#4681#4870#0" expanded="false" />
     57                <element signature="e#4681#4807#1" expanded="true" />
     58                <element signature="e#4920#5161#0" expanded="false" />
     59                <element signature="e#4920#5091#1" expanded="true" />
     60                <element signature="e#5230#5767#0" expanded="false" />
     61                <element signature="e#5230#5528#1" expanded="true" />
     62                <element signature="e#5823#6212#0" expanded="false" />
     63                <element signature="e#5823#6046#1" expanded="true" />
     64                <element signature="e#6257#6532#0" expanded="false" />
     65                <element signature="e#6257#6440#1" expanded="true" />
     66                <element signature="e#6597#7034#0" expanded="false" />
     67                <element signature="e#6597#6821#1" expanded="true" />
     68                <element signature="e#7085#7356#0" expanded="false" />
     69                <element signature="e#7085#7288#1" expanded="true" />
     70                <element signature="e#7409#7679#0" expanded="false" />
     71                <element signature="e#7409#7609#1" expanded="true" />
     72                <element signature="e#7716#8037#0" expanded="false" />
     73                <element signature="e#7716#7819#1" expanded="true" />
     74                <element signature="e#8093#8304#1" expanded="true" />
     75                <element signature="e#8688#8775#1" expanded="true" />
    8176              </folding>
    8277            </state>
     
    8782        <entry file="file://$PROJECT_DIR$/trunk/project1/main.py">
    8883          <provider selected="true" editor-type-id="text-editor">
    89             <state relative-caret-position="-635">
    90               <caret line="8" column="26" selection-start-line="8" selection-start-column="26" selection-end-line="8" selection-end-column="26" />
     84            <state relative-caret-position="-9">
     85              <caret line="75" column="38" selection-start-line="75" selection-start-column="38" selection-end-line="75" selection-end-column="38" />
    9186              <folding>
    9287                <element signature="e#19#32#0" expanded="true" />
     
    120115        <option value="$PROJECT_DIR$/trunk/project1/pkcs11.example" />
    121116        <option value="$PROJECT_DIR$/trunk/project1/configpkcs11.py" />
     117        <option value="$PROJECT_DIR$/trunk/project1/config.py" />
    122118        <option value="$PROJECT_DIR$/trunk/project1/main.py" />
    123         <option value="$PROJECT_DIR$/trunk/project1/config.py" />
    124119      </list>
    125120    </option>
     
    541536      <updated>1468941039522</updated>
    542537    </task>
    543     <option name="localTasksCounter" value="15" />
     538    <task id="LOCAL-00015" summary="Added final step of configuration: pam-auth-update execution&#10;Changed user-certificate mapping logic&#10;Added documentation to config module&#10;Code refactoring in config module&#10;">
     539      <created>1469026465841</created>
     540      <option name="number" value="00015" />
     541      <option name="presentableId" value="LOCAL-00015" />
     542      <option name="project" value="LOCAL" />
     543      <updated>1469026465841</updated>
     544    </task>
     545    <option name="localTasksCounter" value="16" />
    544546    <servers />
    545547  </component>
     
    561563      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3164179" sideWeight="0.5046875" order="7" side_tool="true" content_ui="tabs" />
    562564      <window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32766616" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
    563       <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.23802164" sideWeight="0.49752998" order="7" side_tool="false" content_ui="tabs" />
     565      <window_info id="Version Control" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.23802164" sideWeight="0.49752998" order="7" side_tool="false" content_ui="tabs" />
    564566      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24980111" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
    565567      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32766616" sideWeight="0.4953125" order="7" side_tool="false" content_ui="tabs" />
     
    585587      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
    586588      <window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32766616" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
    587       <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.23802164" sideWeight="0.49752998" order="10" side_tool="false" content_ui="tabs" />
     589      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.23802164" sideWeight="0.49752998" order="10" side_tool="false" content_ui="tabs" />
    588590      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.2797527" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
    589       <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32766616" sideWeight="0.4953125" order="11" side_tool="false" content_ui="tabs" />
    590       <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.19411297" sideWeight="0.49195403" order="0" side_tool="false" content_ui="combo" />
     591      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32766616" sideWeight="0.4953125" order="11" side_tool="false" content_ui="tabs" />
     592      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.19411297" sideWeight="0.49195403" order="0" side_tool="false" content_ui="combo" />
    591593      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
    592594      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32921174" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
     
    632634  <component name="XDebuggerManager">
    633635    <breakpoint-manager>
    634       <option name="time" value="19" />
     636      <option name="time" value="20" />
    635637    </breakpoint-manager>
    636638    <watches-manager />
    637639  </component>
    638640  <component name="editorHistoryManager">
     641    <entry file="file://$PROJECT_DIR$/trunk/project1/config.py">
     642      <provider selected="true" editor-type-id="text-editor">
     643        <state relative-caret-position="0">
     644          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
     645          <folding>
     646            <element signature="e#19#28#0" expanded="true" />
     647            <element signature="e#1211#1777#0" expanded="false" />
     648            <element signature="e#1211#1409#1" expanded="true" />
     649            <element signature="e#1856#2252#0" expanded="false" />
     650            <element signature="e#1856#2126#1" expanded="true" />
     651            <element signature="e#2290#2484#0" expanded="false" />
     652            <element signature="e#2290#2402#1" expanded="true" />
     653            <element signature="e#2524#2705#0" expanded="false" />
     654            <element signature="e#2524#2643#1" expanded="true" />
     655            <element signature="e#2746#2866#1" expanded="true" />
     656            <element signature="e#3092#3381#0" expanded="false" />
     657            <element signature="e#3092#3257#1" expanded="true" />
     658            <element signature="e#3418#3624#0" expanded="false" />
     659            <element signature="e#3418#3576#1" expanded="true" />
     660            <element signature="e#3663#3855#0" expanded="false" />
     661            <element signature="e#3663#3810#1" expanded="true" />
     662            <element signature="e#3907#4107#0" expanded="false" />
     663            <element signature="e#3907#4060#1" expanded="true" />
     664            <element signature="e#4155#4368#0" expanded="false" />
     665            <element signature="e#4155#4317#1" expanded="true" />
     666            <element signature="e#4421#4640#0" expanded="false" />
     667            <element signature="e#4421#4593#1" expanded="true" />
     668            <element signature="e#4681#4870#0" expanded="false" />
     669            <element signature="e#4681#4807#1" expanded="true" />
     670            <element signature="e#4920#5161#0" expanded="false" />
     671            <element signature="e#4920#5091#1" expanded="true" />
     672            <element signature="e#5230#5767#0" expanded="false" />
     673            <element signature="e#5230#5528#1" expanded="true" />
     674            <element signature="e#5823#6212#0" expanded="false" />
     675            <element signature="e#5823#6046#1" expanded="true" />
     676            <element signature="e#6257#6532#0" expanded="false" />
     677            <element signature="e#6257#6440#1" expanded="true" />
     678            <element signature="e#6597#7034#0" expanded="false" />
     679            <element signature="e#6597#6821#1" expanded="true" />
     680            <element signature="e#7085#7356#0" expanded="false" />
     681            <element signature="e#7085#7288#1" expanded="true" />
     682            <element signature="e#7409#7679#0" expanded="false" />
     683            <element signature="e#7409#7609#1" expanded="true" />
     684            <element signature="e#7716#8037#0" expanded="false" />
     685            <element signature="e#7716#7819#1" expanded="true" />
     686            <element signature="e#8093#8304#1" expanded="true" />
     687            <element signature="e#8688#8775#1" expanded="true" />
     688          </folding>
     689        </state>
     690      </provider>
     691    </entry>
    639692    <entry file="file://$PROJECT_DIR$/trunk/project1/config.py">
    640693      <provider selected="true" editor-type-id="text-editor">
     
    643696          <folding>
    644697            <element signature="e#19#28#0" expanded="true" />
    645             <element signature="e#1116#1682#0" expanded="false" />
    646             <element signature="e#1116#1314#1" expanded="true" />
    647             <element signature="e#1761#2157#0" expanded="false" />
    648             <element signature="e#1761#2031#1" expanded="true" />
    649             <element signature="e#2195#2389#0" expanded="false" />
    650             <element signature="e#2195#2307#1" expanded="true" />
    651             <element signature="e#2429#2610#0" expanded="false" />
    652             <element signature="e#2429#2548#1" expanded="true" />
    653             <element signature="e#2651#2940#0" expanded="false" />
    654             <element signature="e#2651#2771#1" expanded="true" />
    655             <element signature="e#2997#3286#0" expanded="false" />
    656             <element signature="e#2997#3162#1" expanded="true" />
    657             <element signature="e#3323#3529#0" expanded="false" />
    658             <element signature="e#3323#3481#1" expanded="true" />
    659             <element signature="e#3568#3760#0" expanded="false" />
    660             <element signature="e#3568#3715#1" expanded="true" />
    661             <element signature="e#3812#4012#0" expanded="false" />
    662             <element signature="e#3812#3965#1" expanded="true" />
    663             <element signature="e#4060#4273#0" expanded="false" />
    664             <element signature="e#4060#4222#1" expanded="true" />
    665             <element signature="e#4326#4545#0" expanded="false" />
    666             <element signature="e#4326#4498#1" expanded="true" />
    667             <element signature="e#4586#4775#0" expanded="false" />
    668             <element signature="e#4586#4712#1" expanded="true" />
    669             <element signature="e#4825#5066#0" expanded="false" />
    670             <element signature="e#4825#4996#1" expanded="true" />
    671             <element signature="e#5135#5672#0" expanded="false" />
    672             <element signature="e#5135#5433#1" expanded="true" />
    673             <element signature="e#5728#6117#0" expanded="false" />
    674             <element signature="e#5728#5951#1" expanded="true" />
    675             <element signature="e#6162#6437#0" expanded="false" />
    676             <element signature="e#6162#6345#1" expanded="true" />
    677             <element signature="e#6502#6939#0" expanded="false" />
    678             <element signature="e#6502#6726#1" expanded="true" />
    679             <element signature="e#6990#7261#0" expanded="false" />
    680             <element signature="e#6990#7193#1" expanded="true" />
    681             <element signature="e#7314#7584#0" expanded="false" />
    682             <element signature="e#7314#7514#1" expanded="true" />
    683             <element signature="e#7621#7942#0" expanded="false" />
    684             <element signature="e#7621#7724#1" expanded="true" />
    685             <element signature="e#7998#8549#0" expanded="false" />
    686             <element signature="e#7998#8209#1" expanded="true" />
    687             <element signature="e#8580#9006#0" expanded="false" />
    688             <element signature="e#8580#8702#1" expanded="true" />
     698            <element signature="e#1211#1777#0" expanded="false" />
     699            <element signature="e#1211#1409#1" expanded="true" />
     700            <element signature="e#1856#2252#0" expanded="false" />
     701            <element signature="e#1856#2126#1" expanded="true" />
     702            <element signature="e#2290#2484#0" expanded="false" />
     703            <element signature="e#2290#2402#1" expanded="true" />
     704            <element signature="e#2524#2705#0" expanded="false" />
     705            <element signature="e#2524#2643#1" expanded="true" />
     706            <element signature="e#2746#2866#1" expanded="true" />
     707            <element signature="e#3092#3381#0" expanded="false" />
     708            <element signature="e#3092#3257#1" expanded="true" />
     709            <element signature="e#3418#3624#0" expanded="false" />
     710            <element signature="e#3418#3576#1" expanded="true" />
     711            <element signature="e#3663#3855#0" expanded="false" />
     712            <element signature="e#3663#3810#1" expanded="true" />
     713            <element signature="e#3907#4107#0" expanded="false" />
     714            <element signature="e#3907#4060#1" expanded="true" />
     715            <element signature="e#4155#4368#0" expanded="false" />
     716            <element signature="e#4155#4317#1" expanded="true" />
     717            <element signature="e#4421#4640#0" expanded="false" />
     718            <element signature="e#4421#4593#1" expanded="true" />
     719            <element signature="e#4681#4870#0" expanded="false" />
     720            <element signature="e#4681#4807#1" expanded="true" />
     721            <element signature="e#4920#5161#0" expanded="false" />
     722            <element signature="e#4920#5091#1" expanded="true" />
     723            <element signature="e#5230#5767#0" expanded="false" />
     724            <element signature="e#5230#5528#1" expanded="true" />
     725            <element signature="e#5823#6212#0" expanded="false" />
     726            <element signature="e#5823#6046#1" expanded="true" />
     727            <element signature="e#6257#6532#0" expanded="false" />
     728            <element signature="e#6257#6440#1" expanded="true" />
     729            <element signature="e#6597#7034#0" expanded="false" />
     730            <element signature="e#6597#6821#1" expanded="true" />
     731            <element signature="e#7085#7356#0" expanded="false" />
     732            <element signature="e#7085#7288#1" expanded="true" />
     733            <element signature="e#7409#7679#0" expanded="false" />
     734            <element signature="e#7409#7609#1" expanded="true" />
     735            <element signature="e#7716#8037#0" expanded="false" />
     736            <element signature="e#7716#7819#1" expanded="true" />
     737            <element signature="e#8093#8304#1" expanded="true" />
     738            <element signature="e#8688#8775#1" expanded="true" />
    689739          </folding>
    690740        </state>
     
    724774    <entry file="file://$PROJECT_DIR$/trunk/project1/main.py">
    725775      <provider selected="true" editor-type-id="text-editor">
    726         <state relative-caret-position="-635">
    727           <caret line="8" column="26" selection-start-line="8" selection-start-column="26" selection-end-line="8" selection-end-column="26" />
     776        <state relative-caret-position="-9">
     777          <caret line="75" column="38" selection-start-line="75" selection-start-column="38" selection-end-line="75" selection-end-column="38" />
    728778          <folding>
    729779            <element signature="e#19#32#0" expanded="true" />
     
    734784    <entry file="file://$PROJECT_DIR$/trunk/project1/config.py">
    735785      <provider selected="true" editor-type-id="text-editor">
    736         <state relative-caret-position="1170">
    737           <caret line="176" column="48" selection-start-line="176" selection-start-column="48" selection-end-line="176" selection-end-column="48" />
     786        <state relative-caret-position="131">
     787          <caret line="280" column="4" selection-start-line="280" selection-start-column="4" selection-end-line="280" selection-end-column="4" />
    738788          <folding>
    739789            <element signature="e#19#28#0" expanded="true" />
    740             <element signature="e#1116#1682#0" expanded="false" />
    741             <element signature="e#1116#1314#1" expanded="true" />
    742             <element signature="e#1761#2157#0" expanded="false" />
    743             <element signature="e#1761#2031#1" expanded="true" />
    744             <element signature="e#2195#2389#0" expanded="false" />
    745             <element signature="e#2195#2307#1" expanded="true" />
    746             <element signature="e#2429#2610#0" expanded="false" />
    747             <element signature="e#2429#2548#1" expanded="true" />
    748             <element signature="e#2651#2940#0" expanded="false" />
    749             <element signature="e#2651#2771#1" expanded="true" />
    750             <element signature="e#2997#3286#0" expanded="false" />
    751             <element signature="e#2997#3162#1" expanded="true" />
    752             <element signature="e#3323#3529#0" expanded="false" />
    753             <element signature="e#3323#3481#1" expanded="true" />
    754             <element signature="e#3568#3760#0" expanded="false" />
    755             <element signature="e#3568#3715#1" expanded="true" />
    756             <element signature="e#3812#4012#0" expanded="false" />
    757             <element signature="e#3812#3965#1" expanded="true" />
    758             <element signature="e#4060#4273#0" expanded="false" />
    759             <element signature="e#4060#4222#1" expanded="true" />
    760             <element signature="e#4326#4545#0" expanded="false" />
    761             <element signature="e#4326#4498#1" expanded="true" />
    762             <element signature="e#4586#4775#0" expanded="false" />
    763             <element signature="e#4586#4712#1" expanded="true" />
    764             <element signature="e#4825#5066#0" expanded="false" />
    765             <element signature="e#4825#4996#1" expanded="true" />
    766             <element signature="e#5135#5672#0" expanded="false" />
    767             <element signature="e#5135#5433#1" expanded="true" />
    768             <element signature="e#5728#6117#0" expanded="false" />
    769             <element signature="e#5728#5951#1" expanded="true" />
    770             <element signature="e#6162#6437#0" expanded="false" />
    771             <element signature="e#6162#6345#1" expanded="true" />
    772             <element signature="e#6502#6939#0" expanded="false" />
    773             <element signature="e#6502#6726#1" expanded="true" />
    774             <element signature="e#6990#7261#0" expanded="false" />
    775             <element signature="e#6990#7193#1" expanded="true" />
    776             <element signature="e#7314#7584#0" expanded="false" />
    777             <element signature="e#7314#7514#1" expanded="true" />
    778             <element signature="e#7621#7942#0" expanded="false" />
    779             <element signature="e#7621#7724#1" expanded="true" />
    780             <element signature="e#7998#8549#0" expanded="false" />
    781             <element signature="e#7998#8209#1" expanded="true" />
    782             <element signature="e#8580#9006#0" expanded="false" />
    783             <element signature="e#8580#8702#1" expanded="true" />
     790            <element signature="e#1211#1777#0" expanded="false" />
     791            <element signature="e#1211#1409#1" expanded="true" />
     792            <element signature="e#1856#2252#0" expanded="false" />
     793            <element signature="e#1856#2126#1" expanded="true" />
     794            <element signature="e#2290#2484#0" expanded="false" />
     795            <element signature="e#2290#2402#1" expanded="true" />
     796            <element signature="e#2524#2705#0" expanded="false" />
     797            <element signature="e#2524#2643#1" expanded="true" />
     798            <element signature="e#2746#2866#1" expanded="true" />
     799            <element signature="e#3092#3381#0" expanded="false" />
     800            <element signature="e#3092#3257#1" expanded="true" />
     801            <element signature="e#3418#3624#0" expanded="false" />
     802            <element signature="e#3418#3576#1" expanded="true" />
     803            <element signature="e#3663#3855#0" expanded="false" />
     804            <element signature="e#3663#3810#1" expanded="true" />
     805            <element signature="e#3907#4107#0" expanded="false" />
     806            <element signature="e#3907#4060#1" expanded="true" />
     807            <element signature="e#4155#4368#0" expanded="false" />
     808            <element signature="e#4155#4317#1" expanded="true" />
     809            <element signature="e#4421#4640#0" expanded="false" />
     810            <element signature="e#4421#4593#1" expanded="true" />
     811            <element signature="e#4681#4870#0" expanded="false" />
     812            <element signature="e#4681#4807#1" expanded="true" />
     813            <element signature="e#4920#5161#0" expanded="false" />
     814            <element signature="e#4920#5091#1" expanded="true" />
     815            <element signature="e#5230#5767#0" expanded="false" />
     816            <element signature="e#5230#5528#1" expanded="true" />
     817            <element signature="e#5823#6212#0" expanded="false" />
     818            <element signature="e#5823#6046#1" expanded="true" />
     819            <element signature="e#6257#6532#0" expanded="false" />
     820            <element signature="e#6257#6440#1" expanded="true" />
     821            <element signature="e#6597#7034#0" expanded="false" />
     822            <element signature="e#6597#6821#1" expanded="true" />
     823            <element signature="e#7085#7356#0" expanded="false" />
     824            <element signature="e#7085#7288#1" expanded="true" />
     825            <element signature="e#7409#7679#0" expanded="false" />
     826            <element signature="e#7409#7609#1" expanded="true" />
     827            <element signature="e#7716#8037#0" expanded="false" />
     828            <element signature="e#7716#7819#1" expanded="true" />
     829            <element signature="e#8093#8304#1" expanded="true" />
     830            <element signature="e#8688#8775#1" expanded="true" />
    784831          </folding>
    785832        </state>
  • internals/2016/linuxloginsmartcardwizard/trunk/project1/config.py

    r16354 r16364  
    2020# PKCS11 update for common-auth
    2121PKCS11AUTH = "auth\tsufficient\tpam_pkcs11.so config_file=/etc/pam_pkcs11/pam_pkcs11.conf"
     22BACKUP_DIRPATH = "/tmp/backup_pam.d"
     23REMOVEFILES_COMMAND = "rm "
     24REMOVEDIRS_COMMAND = "rm -r "
    2225
    2326
     
    262265
    263266
    264 def runPamAuthUpdate():
    265     """
    266     Simulates the execution of pam-auth-update to active pam_pkcs11 in the system
     267def runPamAuthUpdate(mode="enable"):
     268    """
     269    Simulates the execution of pam-auth-update
    267270    :return: no return value
    268271    """
     
    270273    pkcs11Index = getIndexOfToken("pam_pkcs11.so", authData)
    271274    unixIndex = getIndexOfToken("pam_unix.so", authData)
    272     if pkcs11Index is None:
     275
     276    if pkcs11Index is None and mode == "enable":
     277        printDebugInfo("Enabling pam_pkcs11 at pam.d")
    273278        authData[unixIndex] = PKCS11AUTH + "\n" + authData[unixIndex]
    274279        writeListToFile(COMMONAUTH, authData)
     280
     281    elif pkcs11Index is not None and mode == "disable":
     282        printDebugInfo("Disabling pam_pkcs11 at pam.d")
     283        authData[pkcs11Index] = ""
     284        writeListToFile(COMMONAUTH, authData)
     285
     286
     287def resetPamAuth():
     288    runPamAuthUpdate("disable")
     289
     290
     291def deleteTemporaryData():
     292    deleteDirectory(BACKUP_DIRPATH)
     293    deleteFile(TEMP_OUTPUT)
     294
     295
     296def deleteFile(filePath):
     297    executeCommand(REMOVEFILES_COMMAND + filePath)
     298
     299
     300def deleteDirectory(directoryPath):
     301    executeCommand(REMOVEDIRS_COMMAND + directoryPath)
  • 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.