Lines 46-53
import univention.s4connector.s4.user
|
Link Here
|
---|
|
46 |
|
46 |
|
47 |
from univention.s4connector.s4.mapping import ignore_filter_from_tmpl, ignore_filter_from_attr, configRegistry |
47 |
from univention.s4connector.s4.mapping import ignore_filter_from_tmpl, ignore_filter_from_attr, configRegistry |
48 |
|
48 |
|
49 |
from six import text_type as _text_type |
|
|
50 |
|
51 |
global_ignore_subtree = [ |
49 |
global_ignore_subtree = [ |
52 |
'cn=univention,@%@ldap/base@%@', |
50 |
'cn=univention,@%@ldap/base@%@', |
53 |
'cn=policies,@%@ldap/base@%@', |
51 |
'cn=policies,@%@ldap/base@%@', |
Lines 105-111
if configRegistry.is_false('connector/s4/mapping/group/grouptype', False):
|
Link Here
|
---|
|
105 |
|
103 |
|
106 |
key_prefix = "connector/s4/mapping/group/table/" |
104 |
key_prefix = "connector/s4/mapping/group/table/" |
107 |
group_mapping_table = { |
105 |
group_mapping_table = { |
108 |
'cn': [(_text_type(key[len(key_prefix):]), _text_type(value)) for key, value in configRegistry.items() if key.startswith(key_prefix)] |
106 |
'cn': [(key[len(key_prefix):].encode('UTF-8'), value.encode('UTF-8')) for key, value in configRegistry.items() if key.startswith(key_prefix)] |
109 |
} |
107 |
} |
110 |
if not group_mapping_table['cn']: |
108 |
if not group_mapping_table['cn']: |
111 |
group_mapping_table = {} |
109 |
group_mapping_table = {} |