Bug 34995 - LDAP_ConnectionError in UDM is not very useful
LDAP_ConnectionError in UDM is not very useful
Status: RESOLVED DUPLICATE of bug 34244
Product: UCS
Classification: Unclassified
Component: UMC - Domain management (Generic)
UCS 3.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-27 14:48 CEST by Dirk Wiesenthal
Modified: 2014-07-14 09:55 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2014-05-27 14:48:25 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
Comment 1 Alexander Kläser univentionstaff 2014-05-27 16:34:02 CEST
And it would be good to make a re-raise of caught exceptions in the wrapper function (Bug 32979).
Comment 2 Florian Best univentionstaff 2014-07-14 09:55:16 CEST
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 ***