Univention Bugzilla – Bug 34451
Import new license fails on DC Backup
Last modified: 2015-11-20 11:48:25 CET
With error message: No write access to parent. The test whether this list item is shown is simply this.getModule('udm'). Apperently, this is not strict enough.
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 ***
*** Bug 29592 has been marked as a duplicate of this bug. ***