Univention Bugzilla – Bug 43975
Handle SERVER_DOWN: {'desc': "Can't contact LDAP server"} exception in CLI Server
Last modified: 2017-07-05 13:06:37 CEST
Currently, the UDM CLI fails with an exception if the LDAP server is not available. Since, it might be a normal case at least during upgrades, UDM CLI should write a normal error message instead of a traceback.
Created attachment 8585 [details] patch
(In reply to Florian Best from comment #1) > Created attachment 8585 [details] > patch Applied patch: r 80647 univention-directory-manager-modules (12.0.17-31) * Bug #43975: Applied patch from Florian Best - UDM CLI now writes error message instead of failing with an exception if the LDAP server is not available YAML: r 80649
Applied additional patch: r 80654 univention-directory-manager-modules (12.0.17-34) * Bug #43975: Applied additional patch - Improved wording of error message
OK: the following error message is shown # service slapd stop # udm users/user create E: The LDAP Server is currently not available. # echo $? 3 OK: YAML
<http://errata.software-univention.de/ucs/4.2/79.html>