Univention Bugzilla – Full Text Bug Listing |
Summary: | Import new license fails on DC Backup | ||
---|---|---|---|
Product: | UCS | Reporter: | Dirk Wiesenthal <wiesenthal> |
Component: | UMC (Generic) | Assignee: | UMC maintainers <umc-maintainers> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P5 | CC: | best, galkin, gohmann, klaeser, steuwer |
Version: | UCS 3.2 | Flags: | best:
Patch_Available+
|
Target Milestone: | UCS 3.x | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=39675 | ||
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: | patch |
Description
Dirk Wiesenthal
2014-04-03 14:08:19 CEST
Or the LDAP Connection used for writing the license in LDAP is not initiated correctly... In this case it is a bug against UDM. The license is imported via the class umc.modules.udm.tools.LicenseImport. LicenseImport.write() builds up a connection against the localhost LDAP server (explicitely "localhost"), however, the correct LDAP server should be read from UCR variables (should be the master). (In reply to Alexander Kläser from comment #2) > The license is imported via the class umc.modules.udm.tools.LicenseImport. > LicenseImport.write() builds up a connection against the localhost LDAP > server (explicitely "localhost"), however, the correct LDAP server should be > read from UCR variables (should be the master). Does it use uldap.py? If so, it could use follow_referral=True. (In reply to Stefan Gohmann from comment #3) > Does it use uldap.py? If so, it could use follow_referral=True. No, I quote from the source code: > … > ldap_con = ldap.open( "localhost", port = int( ucr.get( 'ldap/server/port', 7389 ) ) ) > ldap_con.simple_bind_s( user_dn, passwd ) > … Would it break something to change it using univention.admin.uldap.getMachineConnection(follow_referral=True/user_master=True) ? Created attachment 6591 [details]
patch
use univention.uldap with a connection from the current user to the LDAP master.
Fixed along with Bug #39675. *** This bug has been marked as a duplicate of bug 39675 *** |