Univention Bugzilla – Bug 34519
univention-s4-position-sync computes wrong DN if DNS domain name doesn't match LDAP base
Last modified: 2020-07-03 20:52:05 CEST
Created attachment 5863 [details] Fixes LDAP base replacement Reported at Ticket #2014040821001626 On a UCS system with the LDAP dc=yy,dc=zz and the DNS domain name xx.yy.zz the S4 migration script univention-s4-position-sync computes the new position for UCS DCs as follows: cn=ucsdc,ou=domain controllers,dc=xx,DC=XX,DC=YY,DC=ZZ It duplicates the first LDAP base component (dc=xx) and computes a wrong position. The attached patch tries to solve the issue running the LDAP base replacement just once. There might be untested corner cases.
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have 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 it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.