Univention Bugzilla – Bug 33623
license import error message when uploading valid license with different ldap base case
Last modified: 2017-08-08 07:10:58 CEST
When importing a valid license with differences in the case sensitivity of the LDAP base a error message is displayed: [{'message': u'Die LDAP-Basis der Lizenz stimmt nicht mit der LDAP-Basis der UCS-Dom\xe4ne (dc=ucs,dc=School) \xfcberein.', 'success': False}] (In reply to Dirk Wiesenthal from comment #9) > I do not see the reason why LDAP_Connection is used at all. The only purpose > seems to be returning ldap_position and this is only used for getBase(). > This is roughly ucr.get('ldap/base') → It is there to also create the LDAP connection if it was not created before (or timed out)… +++ This bug was initially created as a clone of Bug #30156 +++ Die Ausführung des Kommandos udm/license/import ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py", line 204, in execute func( request ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 175, in wrapper_func ret = func( *args, **kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line 237, in license_import importer = LicenseImport( open( filename, 'rb' ) ) IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/tmp/univention-management-console-frontend/135892704881303-24661LqLt9l'
(In reply to Florian Best from comment #0) > When importing a valid license with differences in the case sensitivity of > the LDAP base a error message is displayed: > > [{'message': u'Die LDAP-Basis der Lizenz stimmt nicht mit der LDAP-Basis der > UCS-Dom\xe4ne (dc=ucs,dc=School) \xfcberein.', 'success': False}] > Does this really happen? I mean are there license files out there with a different "dn:" than their ldap/base in terms of capitalization? > (In reply to Dirk Wiesenthal from comment #9) > > I do not see the reason why LDAP_Connection is used at all. The only purpose > > seems to be returning ldap_position and this is only used for getBase(). > > This is roughly ucr.get('ldap/base') > → It is there to also create the LDAP connection if it was not created > before (or timed out)… > But the LDAP connection is not used. And LicenseImport.write() creates its own new connection.
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4. If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
This issue has been filed against UCS 3.2. UCS 3.2 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.