Univention Bugzilla – Attachment 8141 Details for
Bug 42722
RADIUS NTLM auth fails with Cisco APs due to Station ID format
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
remove non hex digits from station ID via regex
ignore-non-hex-digits.diff (text/plain), 779 bytes, created by
Moritz Bunkus
on 2016-10-20 15:17:48 CEST
(
hide
)
Description:
remove non hex digits from station ID via regex
Filename:
MIME Type:
Creator:
Moritz Bunkus
Created:
2016-10-20 15:17:48 CEST
Size:
779 bytes
patch
obsolete
>--- 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')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42722
: 8141