Univention Bugzilla – Attachment 8189 Details for
Bug 42855
Samba 4.5 uses CN for the computer attribute
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
42855.patch (text/plain), 2.98 KB, created by
Florian Best
on 2016-11-04 17:57:02 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-11-04 17:57:02 CET
Size:
2.98 KB
patch
obsolete
>diff --git a/services/univention-s4-connector/modules/univention/s4connector/__init__.py b/services/univention-s4-connector/modules/univention/s4connector/__init__.py >index eb3049f..7d9ee43 100644 >--- a/services/univention-s4-connector/modules/univention/s4connector/__init__.py >+++ b/services/univention-s4-connector/modules/univention/s4connector/__init__.py >@@ -1802,7 +1802,7 @@ def _object_mapping(self, key, old_object, object_type='con'): > for attribute, values in object['attributes'].items(): > if self.property[key].attributes: > for attr_key in self.property[key].attributes.keys(): >- if attribute == self.property[key].attributes[attr_key].ldap_attribute: >+ if attribute.lower() == self.property[key].attributes[attr_key].ldap_attribute.lower(): > # mapping function > if hasattr(self.property[key].attributes[attr_key], 'mapping'): > if self.property[key].attributes[attr_key].mapping[0]: >@@ -1830,7 +1830,7 @@ def _object_mapping(self, key, old_object, object_type='con'): > > if hasattr(self.property[key], 'post_attributes') and self.property[key].post_attributes is not None: > for attr_key in self.property[key].post_attributes.keys(): >- if attribute == self.property[key].post_attributes[attr_key].ldap_attribute: >+ if attribute.lower() == self.property[key].post_attributes[attr_key].ldap_attribute.lower(): > if hasattr(self.property[key].post_attributes[attr_key], 'mapping'): > if self.property[key].post_attributes[attr_key].mapping[0]: > object_out['attributes'][self.property[key].post_attributes[attr_key].con_attribute] = self.property[key].post_attributes[attr_key].mapping[0](self, key, object) >@@ -1848,7 +1848,7 @@ def _object_mapping(self, key, old_object, object_type='con'): > for attribute, values in object['attributes'].items(): > if self.property[key].attributes: > for attr_key in self.property[key].attributes.keys(): >- if attribute == self.property[key].attributes[attr_key].con_attribute: >+ if attribute.lower() == self.property[key].attributes[attr_key].con_attribute.lower(): > # mapping function > if hasattr(self.property[key].attributes[attr_key], 'mapping'): > # direct mapping >@@ -1876,7 +1876,7 @@ def _object_mapping(self, key, old_object, object_type='con'): > > if hasattr(self.property[key], 'post_attributes') and self.property[key].post_attributes is not None: > for attr_key in self.property[key].post_attributes.keys(): >- if attribute == self.property[key].post_attributes[attr_key].con_attribute: >+ if attribute.lower() == self.property[key].post_attributes[attr_key].con_attribute.lower(): > if hasattr(self.property[key].post_attributes[attr_key], 'mapping'): > if self.property[key].post_attributes[attr_key].mapping[1]: > object_out['attributes'][self.property[key].post_attributes[attr_key].ldap_attribute] = self.property[key].post_attributes[attr_key].mapping[1](self, key, object)
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 42855
: 8189