Bug 27961 - Fehlende Prüfung auf Join-Status in univention-directory-manager-tools
Fehlende Prüfung auf Join-Status in univention-directory-manager-tools
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 3.0
Other Linux
: P4 minor (vote)
: UCS 3.1
Assigned To: Lukas Walter
Stefan Gohmann
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-17 16:43 CEST by Janek Walkenhorst
Modified: 2012-12-12 21:11 CET (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): Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janek Walkenhorst univentionstaff 2012-07-17 16:43:17 CEST
Bei der Installation eines 3.0-2 Masters:

Setting up univention-directory-manager-tools (7.0.288-1.855.201207131128) ...
Create directory/manager/cmd/debug/level
Create directory/manager/cmd/timeout
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/convert-user-base64-photos", line 117, in <module>
    run(args[0], verbose = options.verbose)
  File "/usr/share/univention-directory-manager-tools/convert-user-base64-photos", line 53, in run
    lo = univention.uldap.getAdminConnection()
  File "/usr/lib/pymodules/python2.6/univention/uldap.py", line 72, in getAdminConnection
    lo=access(host=ucr['ldap/master'], port=port, base=ucr['ldap/base'], binddn='cn=admin,'+ucr['ldap/base'], bindpw=bindpw, start_tls=start_tls, decode_ignorelist=decode_ignorelist)

Hier schein eine Prüfung auf den Join-Status in univention-directory-manager-tools zu fehlen.
Comment 1 Janek Walkenhorst univentionstaff 2012-07-17 16:45:12 CEST
Der vollständige Traceback:

Setting up univention-directory-manager-tools (7.0.288-1.855.201207131128) ...
Create directory/manager/cmd/debug/level
Create directory/manager/cmd/timeout
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/convert-user-base64-photos", line 117, in <module>
    run(args[0], verbose = options.verbose)
  File "/usr/share/univention-directory-manager-tools/convert-user-base64-photos", line 53, in run
    lo = univention.uldap.getAdminConnection()
  File "/usr/lib/pymodules/python2.6/univention/uldap.py", line 72, in getAdminConnection
    lo=access(host=ucr['ldap/master'], port=port, base=ucr['ldap/base'], binddn='cn=admin,'+ucr['ldap/base'], bindpw=bindpw, start_tls=start_tls, decode_ignorelist=decode_ignorelist)
  File "/usr/lib/pymodules/python2.6/univention/uldap.py", line 168, in __init__
    self.__open(ca_certfile)
  File "/usr/lib/pymodules/python2.6/univention/uldap.py", line 202, in __open
    self.lo.start_tls_s()
  File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 526, in start_tls_s
    return self._ldap_call(self._l.start_tls_s)
  File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 96, in _ldap_call
    result = func(*args,**kwargs)
ldap.SERVER_DOWN: {'desc': "Can't contact LDAP server"}
Comment 2 Alexander Kläser univentionstaff 2012-08-07 13:19:18 CEST
Ja, das Tool convert-user-base64-photos sollte korrekterweise einen LDAP-Verbindungsfehler abfangen und dann mit einem Hinweis abbrechen.
Comment 3 Lukas Walter univentionstaff 2012-09-25 11:25:56 CEST
univention-directory-manager-modules (8.0.36-1) unstable; urgency=low

  * scripts/convert-user-base64-photos: replaced traceback when
    LDAP server is unreacheable by error message (Bug #27961)

svn 35841


Der Traceback wird jetzt abgefangen und eine entsprechende Fehlermeldung ausgegeben.
Comment 4 Stefan Gohmann univentionstaff 2012-10-19 07:51:35 CEST
OK, es wird jetzt eine Meldung ausgegeben. Changelog ganz leicht vereinfacht.
Comment 5 Stefan Gohmann univentionstaff 2012-12-12 21:11:17 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".