|
46 |
name = "well-known-sid-name-mapping" |
46 |
name = "well-known-sid-name-mapping" |
47 |
description = "map user and group names for well known sids" |
47 |
description = "map user and group names for well known sids" |
48 |
filter = "(|(objectClass=sambaSamAccount)(objectClass=sambaGroupMapping))" |
48 |
filter = "(|(objectClass=sambaSamAccount)(objectClass=sambaGroupMapping))" |
49 |
attributes = ["cn", "sambaSid"] |
49 |
attributes = ["uid", "cn", "sambaSid"] |
50 |
FN_CACHE = '/var/cache/univention-directory-listener/well-known-sid-name-mapping_modrdn.pickle' |
50 |
FN_CACHE = '/var/cache/univention-directory-listener/well-known-sid-name-mapping_modrdn.pickle' |
51 |
modrdn = '1' |
51 |
modrdn = '1' |
52 |
|
52 |
|
Lines 130-147
def no_relevant_change(new, old):
|
Link Here
|
---|
|
130 |
else: |
130 |
else: |
131 |
name_attr = 'cn' |
131 |
name_attr = 'cn' |
132 |
|
132 |
|
133 |
old_name = old.get(name_attr, [None])[0] |
133 |
old_name = old.get(name_attr, []) |
134 |
new_name = new.get(name_attr, [None])[0] |
134 |
new_name = new.get(name_attr, []) |
135 |
|
135 |
|
136 |
if old_name == new_name: |
136 |
univention.debug.debug( |
137 |
return True |
137 |
univention.debug.LISTENER, |
138 |
else: |
138 |
univention.debug.INFO, |
139 |
univention.debug.debug( |
139 |
"%s: mod sid=%s new=%r old=%r" % (name, new.get("sambaSID"), new_name, old_name) |
140 |
univention.debug.LISTENER, |
140 |
) |
141 |
univention.debug.INFO, |
141 |
|
142 |
"%s: mod %s %s %s" % (name, new.get("sambaSID"), new_name, old_name) |
142 |
return set(old_name) == set(new_name) |
143 |
) |
|
|
144 |
return False |
145 |
|
143 |
|
146 |
def handler(dn, new, old, command): |
144 |
def handler(dn, new, old, command): |
147 |
global modified_default_names |
145 |
global modified_default_names |