--- univention-radius-ntlm-auth 2016-10-20 15:10:28.386197204 +0200 +++ univention-radius-ntlm-auth.fixed 2016-10-20 15:10:12.906000559 +0200 @@ -37,6 +37,7 @@ import sys import univention.pyMsChapV2 as pyMsChapV2 import univention.uldap +import re from ldap import SERVER_DOWN @@ -64,8 +65,7 @@ stationId = None else: # safely decode station id (fails with exception on mis-formatted id, thus returning 1) - stationId = options.stationId - stationId = stationId[0:2] + stationId[3:5] + stationId[6:8] + stationId[9:11] + stationId[12:14] + stationId[15:17] + stationId = re.sub('[^0-9a-f]', '', options.stationId) stationId = stationId.decode('hex') options.Challenge = options.Challenge.decode('hex') options.Response = options.Response.decode('hex')