Univention Bugzilla – Bug 45482
(4.2) Traceback in ucs-school-ntlm-auth if stationId is not set
Last modified: 2017-10-16 21:34:01 CEST
+++ This bug was initially created as a clone of Bug #44919 +++ Also implement this in UCS@school 4.2 +++ This bug was initially created as a clone of Bug #44918 +++ Debugging of ucs-school-ntlm-auth is hard since there is no feedback other than success/failed. So we need some kind of logging for support/professional service/development. +++ Unfortunately this changes leads to exceptions if the stationId is null. Following debug statements fail: debug('getNTPasswordHash: username=%r stationId=%r' % (username, stationId.encode('hex'))) and debug('getNTPasswordHash: username2=%r stationId=%r' % (username, stationId.encode('hex'))) The problem here is that any local test fails but this local tests are the first think which I do with customers: # radtest -t mschap testuser password localhost 10 testing123 So, the radius conf is not reasonable testable anymore. If I comment the statments the logging output is very nice!
Fix: use '' instead of None as default ucs-school-radius-802.1x.yaml: 9422fd05469d | Bug #45482: Merge branch 'sschwardt/45482/42/radius-ntlm-auth2' into 4.2 f14b4e73ca3d | Bug #45482: add advisory ucs-school-radius-802.1x (6.0.1-3): 9422fd05469d | Bug #45482: Merge branch 'sschwardt/45482/42/radius-ntlm-auth2' into 4.2 49a34ca8a3c7 | Bug #45482: add changelog entry 249af772ac98 | Bug #45482: fix traceback if stationId is not specified Package: ucs-school-radius-802.1x Version: 6.0.1-3A~4.2.0.201710092131 Branch: ucs_4.2-0 Scope: ucs-school-4.2
OK: fix OK: YAML
UCS@school 4.2 v4 has been released. http://docs.software-univention.de/changelog-ucsschool-4.2v4-de.html If this error occurs again, please clone this bug.