|
Lines 37-42
Link Here
|
| 37 |
import sys |
37 |
import sys |
| 38 |
import univention.pyMsChapV2 as pyMsChapV2 |
38 |
import univention.pyMsChapV2 as pyMsChapV2 |
| 39 |
import univention.uldap |
39 |
import univention.uldap |
|
|
40 |
import re |
| 40 |
from ldap import SERVER_DOWN |
41 |
from ldap import SERVER_DOWN |
| 41 |
|
42 |
|
| 42 |
|
43 |
|
|
Lines 64-71
Link Here
|
| 64 |
stationId = None |
65 |
stationId = None |
| 65 |
else: |
66 |
else: |
| 66 |
# safely decode station id (fails with exception on mis-formatted id, thus returning 1) |
67 |
# safely decode station id (fails with exception on mis-formatted id, thus returning 1) |
| 67 |
stationId = options.stationId |
68 |
stationId = re.sub('[^0-9a-f]', '', options.stationId) |
| 68 |
stationId = stationId[0:2] + stationId[3:5] + stationId[6:8] + stationId[9:11] + stationId[12:14] + stationId[15:17] |
|
|
| 69 |
stationId = stationId.decode('hex') |
69 |
stationId = stationId.decode('hex') |
| 70 |
options.Challenge = options.Challenge.decode('hex') |
70 |
options.Challenge = options.Challenge.decode('hex') |
| 71 |
options.Response = options.Response.decode('hex') |
71 |
options.Response = options.Response.decode('hex') |