Univention Bugzilla – Bug 36097
univention-run-join-script parse for binddn failed in some cases
Last modified: 2018-05-29 16:50:12 CEST
Error message: -----8<------8<----- ************************************************************************** * Running join scripts failed! * ************************************************************************** * Message: binddn for user Administrator not unique: uid=Administrator,cn=users,dc=tbirkefe,dc=local description: foobar ************************************************************************** root@slave01:~# udm users/user list --filter uid=Administrator|grep description description: fooDN: bar -----8<------8<----- The script univention-run-join-scripts parse for DN is not perfect. Change line 159 to following: - sed -ne 's|DN: ||p')) + sed -ne 's|^DN: ||p'))
A customer cannot run univention-run-join-scripts on his DC-Backupserver caused by the same issue
I have made the suggested improvment to the sed script. I also narrowed down the sed address to only search in the second line, to further improve the robustness. The sed expression now looks like this: "sed -n '2s/^DN: //p'" univention-join (10.0.0-4): e3bd46c6f8b8 | Bug #36097: Refine sed command for filtering the DN out of an UDM output 60b7ac7eed12 | Bug #36097: Add yaml file
What I tested: Set first name to "DN: foobar" univention-run-join-scripts on slave works -> OK Small YAML change: [4.3-0 28f386ada8] Bug #36097: fix YAML -> Verified
<http://errata.software-univention.de/ucs/4.3/11.html>
*** Bug 45221 has been marked as a duplicate of this bug. ***