View | Details | Raw Unified | Return to bug 41688
Collapse All | Expand All

(-)a/services/univention-s4-connector/modules/univention/admin/handlers/settings/mswmifilter.py (-17 / +2 lines)
Lines 57-63 Link Here
57
			options=[],
57
			options=[],
58
			required=1,
58
			required=1,
59
			may_change=1,
59
			may_change=1,
60
			identifies=1
60
			identifies=0,
61
		),
61
		),
62
	'description': univention.admin.property(
62
	'description': univention.admin.property(
63
			short_description=_('Description'),
63
			short_description=_('Description'),
Lines 85-91 Link Here
85
			syntax=univention.admin.syntax.string,
85
			syntax=univention.admin.syntax.string,
86
			multivalue=0,
86
			multivalue=0,
87
			options=[],
87
			options=[],
88
			required=0,
88
			required=1,
89
			may_change=1,
89
			may_change=1,
90
			identifies=1
90
			identifies=1
91
		),
91
		),
Lines 258-278 Link Here
258
class object(univention.admin.handlers.simpleLdap):
258
class object(univention.admin.handlers.simpleLdap):
259
	module=module
259
	module=module
260
260
261
	def __init__(self, co, lo, position, dn='', superordinate=None, attributes = [] ):
262
		global mapping
263
		global property_descriptions
264
265
		self.mapping=mapping
266
		self.descriptions=property_descriptions
267
		self.default_dn=''
268
269
		univention.admin.handlers.simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes = attributes )
270
271
		self.save()
272
273
	def _ldap_pre_create(self):
274
		self.dn='cn=%s,%s' % (mapping.mapValue('id', self.info['id']), self.position.getDn())
275
276
	def _ldap_pre_modify(self):
261
	def _ldap_pre_modify(self):
277
		if self.hasChanged('id'):
262
		if self.hasChanged('id'):
278
			newdn = string.replace(self.dn, 'cn=%s,' % self.oldinfo['id'], 'cn=%s,' % self.info['id'], 1)
263
			newdn = string.replace(self.dn, 'cn=%s,' % self.oldinfo['id'], 'cn=%s,' % self.info['id'], 1)

Return to bug 41688