Bug 33623 - license import error message when uploading valid license with different ldap base case
license import error message when uploading valid license with different ldap...
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - Domain management (Generic)
UCS 3.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on: 30156
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-02 08:56 CET by Florian Best
Modified: 2017-08-08 07:10 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 Florian Best univentionstaff 2013-12-02 08:56:00 CET
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'
Comment 1 Dirk Wiesenthal univentionstaff 2013-12-02 10:43:45 CET
(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.
Comment 2 Stefan Gohmann univentionstaff 2017-06-16 20:40:24 CEST
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.
Comment 3 Stefan Gohmann univentionstaff 2017-08-08 07:10:58 CEST
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.