Univention Bugzilla – Bug 53757
[5.0] ADC Traceback in password_sync_ucs: "TypeError: Odd-length string" / Hash UCS: NO PASSWORDXXXXXX
Last modified: 2021-09-15 17:41:56 CEST
cherry-pick from 4.4-8, amend and rebuild: 00b269fd78 | Skip sambaNTPassword sync if invalid a319b1d79a | Advisory version
(In reply to Arvid Requate from comment #1) > cherry-pick from 4.4-8, amend and rebuild: better develop in 5.0-0 and then backport to 4.4-8. Then you don't get error like this one: `TypeError: startswith first arg must be bytes or a tuple of bytes, not str` - if pwd != nt_hash: + if not pwd or pwd.startswith("NO PASSWORD"):
7dcd357275 | fixup! Skip sambaNTPassword sync if invalid 7f9ffa70f0 | Advisory update
A lot of tests are failing, I am unsure what the reason is. Something in the setup process. https://jenkins.knut.univention.de:8181/job/UCS-5.0/job/UCS-5.0-0/view/Default/job/ADConnectorMultiEnv/lastCompletedBuild/testReport/
Ah, it seems a regular "Publish UCS 5.0 errata test scopes to testing" does not work for the Jenkins Tests, as there is: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/univention/connector/__init__.py", line 817, in __sync_file_from_ucs if not self.sync_from_ucs(key, mapped_object, pre_mapped_ucs_dn, old_dn, object_old): File "/usr/lib/python3/dist-packages/univention/connector/ad/__init__.py", line 2327, in sync_from_ucs post_con_modify_function(self, property_type, object) File "/usr/lib/python3/dist-packages/univention/connector/ad/password.py", line 387, in password_sync_ucs if not pwd or pwd.startswith("NO PASSWORD"): TypeError: startswith first arg must be bytes or a tuple of bytes, not str
OK: The test failures were interim issues. OK: skipping of various invalid password values OK: advisory OK: Code review & comments
<https://errata.software-univention.de/#/?erratum=5.0x87>