Univention Bugzilla – Bug 34995
LDAP_ConnectionError in UDM is not very useful
Last modified: 2014-07-14 09:55:35 CEST
More or less every UDM function has a wrapper, wrapper_func(), which initializes an LDAP connection (univention.admin.access). There are several reasons why this connection cannot be established, a common one (if feedback traceback can be trusted): LDAP_ConnectionError: Opening LDAP connection failed: {'desc': "Can't contact LDAP server"} This causes an ugly UMC Traceback and does not help. Neither does it help the user (What? Error? UCS is broken?!) not does it help us when sending the feedback. I would suggest presenting a real error dialogue like this: "The connection to LDAP failed. These steps may help you:" if dc_master: "Restart sldapd" else: "Is the DC Master %s reachable (IP: %s)? If so, restart slapd there!" "If this error persists and you have a support contract ..." ... and so on See also Bug#33748
And it would be good to make a re-raise of caught exceptions in the wrapper function (Bug 32979).
When connection to LDAP server fails due to the mentioned reason a similar message is shown. Closing therefor as duplicate of Bug #34244. *** This bug has been marked as a duplicate of bug 34244 ***