Пример #1
0
	def _ldap_pre_create(self):
		super(object, self)._ldap_pre_create()
		if configRegistry.is_false('directory/manager/child/cn/ou', True):
			if not self.lo.compare_dn(self.position.getDn(), configRegistry.get('ldap/base')):
				# it is possible to have a basedn with cn=foo
				# in this case it is allowed to create a ou
				# under a cn.
				if any(m and m.module == 'container/cn' for m in univention.admin.modules.identify(self.position.getDn(), self.lo.get(self.position.getDn()))):
					raise univention.admin.uexceptions.invalidChild(_('It is not allowed to create a container/ou as child object of a container/cn.'))
Пример #2
0
	def _ldap_pre_create(self):
		self.dn='%s=%s,%s' % (mapping.mapName('name'), mapping.mapValue('name', self.info['name']), self.position.getDn())
		if configRegistry.is_false('directory/manager/child/cn/ou', True):
			if self.position.getDn() != configRegistry.get('ldap/base'):
				# it is possible to have a basedn with cn=foo
				# in this case it is allowed to create a ou 
				# under a cn.
				m = univention.admin.modules.identifyOne(self.position.getDn(), self.lo.get(self.position.getDn()))
				if m.module == 'container/cn':
					raise univention.admin.uexceptions.invalidChild(_('It is not allowed to create a container/ou as child object of a container/cn.'))
Пример #3
0
}

childs = 0
short_description = _('Group')
long_description = ''
options = {
    'posix': univention.admin.option(short_description=_('Posix group'),
                                     default=1),
    'samba': univention.admin.option(short_description=_('Samba group'),
                                     default=1)
}

# global caching variable
if configRegistry.is_true('directory/manager/samba3/legacy', False):
    s4connector_present = False
elif configRegistry.is_false('directory/manager/samba3/legacy', False):
    s4connector_present = True
else:
    s4connector_present = None

module_search_filter = univention.admin.filter.conjunction(
    '&', [
        univention.admin.filter.expression('objectClass', 'univentionGroup'),
    ])

property_descriptions = {
    'name':
    univention.admin.property(short_description=_('Name'),
                              long_description='',
                              syntax=univention.admin.syntax.gid,
                              multivalue=0,
Пример #4
0
long_description=''
options={
	'posix': univention.admin.option(
			short_description=_('Posix group'),
			default=1
		),
	'samba': univention.admin.option(
			short_description=_('Samba group'),
			default=1
		)
}

# global caching variable
if configRegistry.is_true('directory/manager/samba3/legacy', False):
	s4connector_present = False
elif configRegistry.is_false('directory/manager/samba3/legacy', False):
	s4connector_present = True
else:
	s4connector_present = None


module_search_filter=univention.admin.filter.conjunction('&', [
	univention.admin.filter.expression('objectClass', 'univentionGroup'),
	])

property_descriptions={
	'name': univention.admin.property(
			short_description=_('Name'),
			long_description='',
			syntax=univention.admin.syntax.gid,
			multivalue=0,