Univention Bugzilla – Attachment 9780 Details for
Bug 48362
Synchronization fails after move in UCS if ldap/base and samba4/ldap/base are different
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
here_be_dragons.diff
here_be_dragons.diff (text/plain), 992 bytes, created by
Arvid Requate
on 2018-12-17 21:44:10 CET
(
hide
)
Description:
here_be_dragons.diff
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2018-12-17 21:44:10 CET
Size:
992 bytes
patch
obsolete
>diff --git a/services/univention-s4-connector/modules/univention/s4connector/s4/__init__.py b/services/univention-s4-connector/modules/univention/s4connector/s4/__init__.py >index 6d5fb6c4d2..0194614d25 100644 >--- a/services/univention-s4-connector/modules/univention/s4connector/s4/__init__.py >+++ b/services/univention-s4-connector/modules/univention/s4connector/s4/__init__.py >@@ -355,7 +355,8 @@ def samaccountname_dn_mapping(s4connector, given_object, dn_mapping_stored, ucso > s4_rdn = ldap.dn.str2dn(result[0][0])[0] > new_s4_dn = unicode(ldap.dn.dn2str([s4_rdn] + exploded_dn[1:]), 'utf8') > pos = new_s4_dn.lower().rfind(s4connector.lo_s4.base.lower()) >- newdn = new_s4_dn[:pos] + s4connector.lo.base >+ if pos != -1: >+ newdn = new_s4_dn[:pos] + s4connector.lo.base > else: > newdn_rdn = [('cn', fst_rdn_value_utf8, ldap.AVA_STRING)] > newdn = unicode(ldap.dn.dn2str([newdn_rdn] + exploded_dn[1:]), 'utf8') # new object, don't need to change
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 48362
:
9780
|
9781