Rev 23 | 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 |
||
4 | oncename=tmp/log/.wimspassone |
||
5 | |||
6 | auth=!word 1 of $auth |
||
7 | !if $auth=$empty |
||
8 | !if $pass=$empty |
||
9 | chars=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 |
||
10 | n=!charcnt $chars |
||
11 | len=!randint 8,12 |
||
12 | passone= |
||
13 | !for i=1 to $len |
||
14 | t=!randint 1,$n |
||
15 | c=!char $t of $chars |
||
16 | passone=$passone$c |
||
17 | !next i |
||
18 | !mexec scripts/setpass.sh $oncename |
||
19 | !endif |
||
20 | !exit |
||
21 | !endif |
||
22 | |||
23 | !if $pass=$empty |
||
24 | pass=!mexec scripts/getpass.sh $oncename |
||
25 | !endif |
||
26 | !if $auth=$pass and $pass!=$empty |
||
27 | !writefile wimshome/$wims_sesdir/.manager yes |
||
28 | wims_ismanager=2 |
||
29 | job=list |
||
30 | !else |
||
31 | job=wrongpass |
||
32 | !endif |
||
33 | !reset passone |
||
34 |