Univention Bugzilla – Bug 56590
Adapt code to uldap3, to prevent misleading error message
Last modified: 2024-04-25 07:06:18 CEST
During a troubleshooting on a customer system regarding synchronisation problems between the central IDM and the LDAPSync for the school cloud, the following error message was discovered in the log for the Kelvin API: http.log:2023-09-12 14:45:42 ERROR [228][6b5573aa6f] Error modifying password hashes of 'uid= Although the operation was successful, this error appears in the log, probably since we switched to the library uldap3.
uldap3 returns None on success and raises (ModifyError, NoObject) on error. The return value cannot be used to determine success/error.
Created attachment 11126 [details] fix deprecated return value check _Untested_ fix for the wrong error / missing success message.