Rev 15334 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | pass=!mexec scripts/getpass.sh log/.wimspass |
||
3 | pass=!word 1 of $pass |
||
15334 | bpr | 4 | !if * notin $pass |
5 | passone=!passcrypt $pass |
||
6 | !mexec scripts/setpass.sh log/.wimspass |
||
7 | pass=$passone |
||
8 | !reset passone |
||
9 | !endif |
||
23 | reyssat | 10 | oncename=tmp/log/.wimspassone |
11 | |||
12 | auth=!word 1 of $auth |
||
13 | !if $auth=$empty |
||
15334 | bpr | 14 | !if $pass=$empty |
15 | chars=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 |
||
16 | n=!charcnt $chars |
||
17 | len=!randint 8,12 |
||
18 | passone= |
||
19 | !for i=1 to $len |
||
20 | t=!randint 1,$n |
||
21 | c=!char $t of $chars |
||
22 | passone=$passone$c |
||
23 | !next i |
||
24 | !mexec scripts/setpass.sh $oncename |
||
25 | !endif |
||
15421 | bpr | 26 | !exit |
23 | reyssat | 27 | !endif |
28 | |||
29 | !if $pass=$empty |
||
15334 | bpr | 30 | pass=!mexec scripts/getpass.sh $oncename |
31 | pass=!passcrypt $pass |
||
23 | reyssat | 32 | !endif |
15334 | bpr | 33 | pass_check=!passcheck $auth and $pass |
34 | !if $pass_check=yes and $pass!=$empty |
||
35 | !writefile wimshome/$wims_sesdir/.manager yes |
||
36 | wims_ismanager=2 |
||
37 | job=list |
||
23 | reyssat | 38 | !else |
15334 | bpr | 39 | job=wrongpass |
23 | reyssat | 40 | !endif |
41 | !reset passone |