예제 #1
0
    'emptyAttributes':
    univention.admin.property(short_description=_('Empty attributes'),
                              long_description='',
                              syntax=ldapServerFixedAttributes,
                              multivalue=1,
                              options=[],
                              required=0,
                              may_change=1,
                              identifies=0),
}

layout = [
    Tab(_('General'),
        _('Update'),
        layout=[
            Group(_('General'), layout=['name', 'repositoryServer']),
        ]),
    Tab(_('Object'),
        _('Object'),
        advanced=True,
        layout=[['requiredObjectClasses', 'prohibitedObjectClasses'],
                ['fixedAttributes', 'emptyAttributes']]),
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('repositoryServer', 'univentionRepositoryServer', None,
                 univention.admin.mapping.ListToString)
mapping.register('requiredObjectClasses', 'requiredObjectClasses')
mapping.register('prohibitedObjectClasses', 'prohibitedObjectClasses')
mapping.register('fixedAttributes', 'fixedAttributes')
예제 #2
0
			short_description=_('Empty attributes'),
			long_description='',
			syntax=masterPackagesFixedAttributes,
			multivalue=1,
			options=[],
			required=0,
			may_change=1,
			identifies=0
		),
}

layout = [
	Tab(_('General'), policy_short_description, layout = [
		Group( _( 'General' ), layout = [
			'name',
			'masterPackages',
			'masterPackagesRemove'
		] ),
	] ),
	Tab(_('Object'),_('Object'), advanced = True, layout = [
		[ 'requiredObjectClasses' , 'prohibitedObjectClasses' ],
		[ 'fixedAttributes' , 'emptyAttributes' ]
	] ),
]

mapping=univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('masterPackages', 'univentionMasterPackages')
mapping.register('masterPackagesRemove', 'univentionMasterPackagesRemove')
mapping.register('requiredObjectClasses', 'requiredObjectClasses')
mapping.register('prohibitedObjectClasses', 'prohibitedObjectClasses')
예제 #3
0
        syntax=univention.admin.syntax.DebianPackageVersion,
        multivalue=False,
        options=[],
        required=False,
        may_change=True,
        identifies=False),
}

layout = [
    Tab(_('General'),
        _('Category options'),
        layout=[
            Group(_('General settings'),
                  layout=[
                      ["name"],
                      ["description"],
                      ["filename"],
                      ["data_type"],
                      ["data"],
                  ]),
            Group(_('Metadata'),
                  layout=[
                      ["ucsversionstart"],
                      ["ucsversionend"],
                      ["meta"],
                      ["package"],
                      ["packageversion"],
                  ]),
        ]),
]

mapping = univention.admin.mapping.mapping()
    'dhcpEntryZone':
    univention.admin.property(
        short_description=_('DHCP service'),
        long_description='',
        syntax=univention.admin.syntax.dhcpService,
        dontsearch=True,
    ),
}

layout = [
    Tab(_('General'),
        _('Basic settings'),
        layout=[
            Group(_('General network settings'),
                  layout=[
                      'name',
                      ['network', 'netmask'],
                      'ipRange',
                  ]),
            Group(_('DNS preferences'),
                  layout=[
                      'dnsEntryZoneForward',
                      'dnsEntryZoneReverse',
                  ]),
            Group(_('DHCP preferences'), layout=[
                'dhcpEntryZone',
            ]),
        ]),
]


def rangeMap(value, encoding=()):
    dict([
        requiredObjectClassesProperty(),
        prohibitedObjectClassesProperty(),
        fixedAttributesProperty(syntax=desktopFixedAttributes),
        emptyAttributesProperty(syntax=desktopFixedAttributes),
        ldapFilterProperty(),
    ]))

layout = [
    Tab(_('General'),
        _('Desktop settings'),
        layout=[
            Group(_('General desktop settings'),
                  layout=[
                      'name',
                      'language',
                      'profile',
                      ['logonScripts', "logoutScripts"],
                  ]),
        ]),
    policy_object_tab(),
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('language', 'univentionDesktopLanguage', None,
                 univention.admin.mapping.ListToString)
mapping.register('profile', 'univentionDesktopProfile')
mapping.register('logonScripts', 'univentionDesktopLogonScripts')
mapping.register('logoutScripts', 'univentionDesktopLogoutScripts')
register_policy_mapping(mapping)
예제 #6
0
    ),
}
property_descriptions.update(
    dict([
        requiredObjectClassesProperty(),
        prohibitedObjectClassesProperty(),
        fixedAttributesProperty(syntax=sharePrintQuotaFixedAttributes),
        emptyAttributesProperty(syntax=sharePrintQuotaFixedAttributes),
        ldapFilterProperty(),
    ]))

layout = [
    Tab(_('General'),
        _('Print quota'),
        layout=[
            Group(_('General print quota settings'), layout=['name']),
            Group(_('Print quota for users'), layout=['quotaUsers']),
            Group(_('Print quota for groups per user'),
                  layout=['quotaGroupsPerUsers']),
            Group(_('Print quota for groups'), layout=['quotaGroups']),
        ]),
    policy_object_tab(),
]


def unmapQuotaEntries(old, encoding=()):
    new = []
    for i in old:
        new.append(i.decode(*encoding).split(u' ', 2))
    return new
        size='Two',
    ),
    'ms-net-ieee-80211-GP-PolicyGUID':
    univention.admin.property(
        short_description=_('Policy GUID'),
        long_description='',
        syntax=univention.admin.syntax.string,
    ),
}

layout = [
    Tab(_('General'),
        _('Basic settings'),
        layout=[
            Group(_('General'), layout=[
                ["name", "description"],
            ]),
            Group(_('Policy settings'),
                  layout=[
                      'ms-net-ieee-80211-GP-PolicyGUID',
                      'ms-net-ieee-80211-GP-PolicyData',
                      'ms-net-ieee-80211-GP-PolicyReserved',
                  ]),
        ]),
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('description', 'description', None,
                 univention.admin.mapping.ListToString)
mapping.register('ms-net-ieee-80211-GP-PolicyReserved',
    ),
}
property_descriptions.update(
    dict([
        requiredObjectClassesProperty(),
        prohibitedObjectClassesProperty(),
        fixedAttributesProperty(syntax=masterPackagesFixedAttributes),
        emptyAttributesProperty(syntax=masterPackagesFixedAttributes),
        ldapFilterProperty(),
    ]))

layout = [
    Tab(_('General'),
        policy_short_description,
        layout=[
            Group(_('General master packages settings'),
                  layout=['name', 'masterPackages', 'masterPackagesRemove']),
        ]),
    policy_object_tab()
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('masterPackages', 'univentionMasterPackages')
mapping.register('masterPackagesRemove', 'univentionMasterPackagesRemove')
register_policy_mapping(mapping)


class object(univention.admin.handlers.simplePolicy):
    module = module

예제 #9
0
property_descriptions.update(
    dict([
        requiredObjectClassesProperty(),
        prohibitedObjectClassesProperty(),
        fixedAttributesProperty(syntax=maintenanceFixedAttributes),
        emptyAttributesProperty(syntax=maintenanceFixedAttributes),
        ldapFilterProperty(),
    ]))

layout = [
    Tab(_('General'),
        _('Maintenance settings'),
        layout=[
            Group(_('General maintenance settings'),
                  layout=[
                      'name', 'startup', 'shutdown', 'cron', 'reboot',
                      ['month', 'weekday'], ['day', 'hour'], 'minute'
                  ]),
        ]),
    policy_object_tab()
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('startup', 'univentionInstallationStartup', None,
                 univention.admin.mapping.ListToString)
mapping.register('shutdown', 'univentionInstallationShutdown', None,
                 univention.admin.mapping.ListToString)
mapping.register('reboot', 'univentionInstallationReboot', None,
                 univention.admin.mapping.ListToString)
mapping.register('cron', 'univentionCronActive', None,
예제 #10
0
    'domainPwdProperties':
    univention.admin.property(
        short_description=_('Password properties'),
        long_description=_(
            'A bitfield to indicate complexity and storage restrictions.'),
        syntax=univention.admin.syntax.integer,
    ),
}

layout = [
    Tab(_('General'),
        _('Basic values'),
        layout=[
            Group(_('General Samba domain settings'),
                  layout=[
                      ["name", "SID"],
                      ["NextRid", "NextUserRid", "NextGroupRid"],
                  ]),
            Group(
                _('Password'),
                layout=[
                    ["passwordLength", "passwordHistory"],
                    ["minPasswordAge"],
                    ["maxPasswordAge"],
                    ["logonToChangePW", "refuseMachinePWChange"],
                    ["domainPasswordComplex", "domainPasswordStoreCleartext"],
                ]),
            Group(_('Connection'),
                  layout=[
                      ["badLockoutAttempts"],
                      ["resetCountMinutes"],
예제 #11
0
		include_in_default_search=True,
	),

}
property_descriptions.update(dict([
	requiredObjectClassesProperty(),
	prohibitedObjectClassesProperty(),
	fixedAttributesProperty(syntax=printServerFixedAttributes),
	emptyAttributesProperty(syntax=printServerFixedAttributes),
	ldapFilterProperty(),
]))

layout = [
	Tab(_('General'), _('Basic settings'), layout=[
		Group(_('General print server settings'), layout=[
			'name',
			'printServer'
		]),
	]),
	policy_object_tab()
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('printServer', 'univentionPrintServer', None, univention.admin.mapping.ListToString)
register_policy_mapping(mapping)


class object(univention.admin.handlers.simplePolicy):
	module = module

예제 #12
0
		include_in_default_search=True,
	),
	'ptr_record': univention.admin.property(
		short_description=_('Pointer record'),
		long_description=_("FQDNs must end with a dot."),
		syntax=univention.admin.syntax.dnsName,
		multivalue=True,
		include_in_default_search=True,
		required=True,
	),
}

layout = [
	Tab(_('General'), _('Basic settings'), layout=[
		Group(_('General pointer record settings'), layout=[
			['ip', 'ptr_record'],
		]),
	]),
]

mapping = univention.admin.mapping.mapping()
mapping.register('address', 'relativeDomainName', None, univention.admin.mapping.ListToString, encoding='ASCII')
mapping.register('ptr_record', 'pTRRecord', encoding='ASCII')


def ipv6(string):
	"""
	>>> ipv6('0123456789abcdef0123456789abcdef')
	'0123:4567:89ab:cdef:0123:4567:89ab:cdef'
	"""
	assert len(string) == 32, string
    'txt':
    univention.admin.property(
        short_description=_('Text Record'),
        long_description=_('One or more arbitrary text strings.'),
        syntax=univention.admin.syntax.string,
        multivalue=True,
        required=True,
        size='Two',
    )
}

layout = [
    Tab(_('General'),
        _('Basic values'),
        layout=[
            Group(_('General TXT record settings'),
                  layout=['name', 'txt', 'zonettl']),
        ]),
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'relativeDomainName', None,
                 univention.admin.mapping.ListToString)
mapping.register('txt', 'tXTRecord')
mapping.register('zonettl', 'dNSTTL',
                 univention.admin.mapping.mapUNIX_TimeInterval,
                 univention.admin.mapping.unmapUNIX_TimeInterval)


class object(univention.admin.handlers.simpleLdap):
    module = module
        identifies=False),
}
property_descriptions.update(
    dict([
        requiredObjectClassesProperty(),
        prohibitedObjectClassesProperty(),
        fixedAttributesProperty(syntax=dhcp_bootFixedAttributes),
        emptyAttributesProperty(syntax=dhcp_bootFixedAttributes),
        ldapFilterProperty(),
    ]))

layout = [
    Tab(_('Boot'),
        _('Boot settings'),
        layout=[
            Group(_('General DHCP boot settings'),
                  layout=['name', ['boot_server', 'boot_filename']]),
        ]),
    policy_object_tab()
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('boot_server', 'univentionDhcpBootServer', None,
                 univention.admin.mapping.ListToString)
mapping.register('boot_filename', 'univentionDhcpBootFilename', None,
                 univention.admin.mapping.ListToString)
register_policy_mapping(mapping)


class object(univention.admin.handlers.simplePolicy):
    module = module
    ),
    'packageversion':
    univention.admin.property(
        short_description=_('Software package version'),
        long_description='',
        syntax=univention.admin.syntax.DebianPackageVersion,
    ),
}

layout = [
    Tab(_('General'),
        _('Basic values'),
        layout=[
            Group(_('General LDAP schema extension settings'),
                  layout=[
                      ["name"],
                      ["filename"],
                      ["data"],
                  ]),
            Group(_('Metadata'),
                  layout=[
                      ["package"],
                      ["packageversion"],
                      ["appidentifier"],
                  ]),
            Group(_('Activated'), layout=[
                ["active"],
            ]),
        ]),
]

mapping = univention.admin.mapping.mapping()
                              multivalue=True,
                              options=[],
                              required=False,
                              may_change=True,
                              identifies=False),
}

layout = [
    Tab(_('General'),
        _('X Configuration Choices'),
        layout=[
            Group(_('General X configuration choices settings'),
                  layout=[
                      'name',
                      ['resolution', 'colorDepth'],
                      ['mouseProtocol', 'mouseDevice'],
                      ['keyboardLayout', 'keyboardVariant'],
                      ['hSync', 'vRefresh'],
                      'displaySize',
                  ]),
        ]),
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('xModule', 'univentionXModuleChoices')
mapping.register('resolution', 'univentionXResolutionChoices')
mapping.register('colorDepth', 'univentionXColorDepthChoices')
mapping.register('mouseProtocol', 'univentionXMouseProtocolChoices')
mapping.register('mouseDevice', 'univentionXMouseDeviceChoices')
mapping.register('keyboardLayout', 'univentionXKeyboardLayoutChoices')
            'For the given groups printing is explicitly allowed or denied.'),
        syntax=univention.admin.syntax.GroupDN,
        multivalue=True,
    ),
}

layout = [
    Tab(_('General'),
        _('General settings'),
        layout=[
            Group(_('General printer share settings'),
                  layout=[
                      ['name', 'sambaName'],
                      'spoolHost',
                      'uri',
                      ['producer', 'model'],
                      ['location', 'description'],
                      [
                          'setQuota',
                      ],
                      ['pagePrice', 'jobPrice'],
                  ]),
        ],
        help_text=
        _('For information about how to manage Windows printer drivers and troubleshooting, see <a href="https://help.univention.com/t/overview-windows-printer-driver-distribution-known-issues-and-workarounds/13387" target="_blank" rel="noreferrer noopener">here</a>.'
          )),
    Tab(_('Access control'),
        _('Access control for users and groups'),
        layout=[
            Group(_('Access control'),
                  layout=[
                      'ACLtype',
예제 #18
0
		long_description='',
		syntax=univention.admin.syntax.emailAddressValidDomain,
		multivalue=False,
		include_in_default_search=True,
		required=False,
		dontsearch=False,
		may_change=True,
		identifies=False,
	),
}

layout = [
	Tab(_('General'), _('Basic settings'), layout=[
		Group(_('General IMAP mail folder settings'), layout=[
			["name", "mailDomain"],
			["mailHomeServer"],
			["cyrus-userquota"],
			["mailPrimaryAddress"],
		]),
	]),
	Tab(_('Access Rights'), _('Access rights for shared folder'), layout=[
		Group(_('Access Rights'), layout=[
			"sharedFolderUserACL",
			"sharedFolderGroupACL",
		]),
	])
]

mapping = univention.admin.mapping.mapping()
mapping.register('cyrus-userquota', 'univentionMailUserQuota', None, univention.admin.mapping.ListToString)
mapping.register('mailHomeServer', 'univentionMailHomeServer', None, univention.admin.mapping.ListToString)
mapping.register('mailPrimaryAddress', 'mailPrimaryAddress', None, univention.admin.mapping.ListToString)
        options=[],
        required=False,
        may_change=True,
        identifies=False,
    ),
}

layout = [
    Tab(_(u'General'),
        _(u'Settings'),
        layout=[
            Group(_('SAML identity provider settings'),
                  layout=[
                      [
                          "id",
                      ],
                      [
                          "LdapGetAttributes",
                      ],
                  ]),
        ]),
]

mapping = univention.admin.mapping.mapping()
mapping.register('id', 'id', None, univention.admin.mapping.ListToString)
mapping.register('LdapGetAttributes', 'LdapGetAttributes', None, None)


class object(univention.admin.handlers.simpleLdap):
    module = module
예제 #20
0
        syntax=univention.admin.syntax.string,
        multivalue=False,
        include_in_default_search=True,
        options=[],
        required=False,
        may_change=True,
        identifies=False,
        readonly_when_synced=True,
    ),
}

layout = [
    Tab(_('General'),
        _('Basic settings'),
        layout=[
            Group(_('Organisational unit description'),
                  layout=[["name", "description"]]),
        ]),
    Tab(_('Container settings'),
        _('Default position when adding objects'),
        advanced=True,
        layout=[
            ["userPath", "groupPath"],
            ["computerPath", "policyPath"],
            ["dnsPath", "dhcpPath"],
            ["networkPath", "sharePath"],
            ["printerPath", "mailPath"],
            "licensePath",
        ])
]

mapping = univention.admin.mapping.mapping()
    'categoryId':
    univention.admin.property(
        short_description=_('category ID'),
        long_description='',
        syntax=univention.admin.syntax.TextArea,
    ),
}

layout = [
    Tab(_('General'),
        _('Basic settings'),
        layout=[
            Group(_('General'),
                  layout=[
                      ["name", "description"],
                      'managedBy',
                      'localizedDescription',
                      'localeID',
                      'categoryId',
                  ]),
        ]),
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('description', 'description', None,
                 univention.admin.mapping.ListToString)
mapping.register('managedBy', 'managedBy', None,
                 univention.admin.mapping.ListToString)
mapping.register('localizedDescription', 'localizedDescription')
mapping.register('localeID', 'localeID')
mapping.register('categoryId', 'categoryId',
예제 #22
0
파일: cn.py 프로젝트: bopopescu/smart-1
                              long_description='',
                              syntax=univention.admin.syntax.string,
                              multivalue=0,
                              include_in_default_search=1,
                              options=[],
                              required=0,
                              may_change=1,
                              identifies=0),
}

layout = [
    Tab(_('General'),
        _('Basic settings'),
        layout=[
            Group(_('General'), layout=[
                ["name", "description"],
            ]),
        ]),
    Tab(_('Container settings'),
        _('Default position when adding objects'),
        advanced=True,
        layout=[
            ["userPath", "groupPath"],
            ["computerPath", "policyPath"],
            ["dnsPath", "dhcpPath"],
            ["networkPath", "sharePath"],
            ["printerPath", "mailPath"],
            "licensePath",
        ])
]
예제 #23
0
			long_description = _('Check services on these hosts'),
			syntax=univention.admin.syntax.nagiosHostsEnabledDn,
			multivalue=1,
			options=[],
			required=0,
			may_change=1,
			identifies=0
		)
}


layout = [
	Tab( _('General'), _('Basic settings'), layout = [
		Group( _( 'General' ), layout = [
			[ "name", "description" ],
			[ "checkCommand" ,  "checkArgs" ],
			"useNRPE"
		] ),
	] ),
	Tab( _('Interval'), _('Check settings'), advanced = True, layout = [
		[ "normalCheckInterval", "retryCheckInterval" ],
		[ "maxCheckAttempts", "checkPeriod" ]
	] ),
	Tab( _('Notification'), _('Notification settings'), advanced = True, layout = [
		[ "notificationInterval", "notificationPeriod" ],
		[ "notificationOptionWarning", "notificationOptionCritical" ],
		[ "notificationOptionUnreachable", "notificationOptionRecovered" ]
	] ),
	Tab( _('Hosts'), _('Assigned hosts'), layout = [
		Group( _( 'Assigned hosts' ), layout = [
			"assignedHosts" 
예제 #24
0
                              identifies=False),
}
property_descriptions.update(
    dict([
        requiredObjectClassesProperty(),
        prohibitedObjectClassesProperty(),
        fixedAttributesProperty(syntax=ldapServerFixedAttributes),
        emptyAttributesProperty(syntax=ldapServerFixedAttributes),
        ldapFilterProperty(),
    ]))

layout = [
    Tab(_('General'),
        _('Update'),
        layout=[
            Group(_('General repository server settings'),
                  layout=['name', 'repositoryServer']),
        ]),
    policy_object_tab()
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('repositoryServer', 'univentionRepositoryServer', None,
                 univention.admin.mapping.ListToString)
register_policy_mapping(mapping)


class object(univention.admin.handlers.simplePolicy):
    module = module

    @classmethod
예제 #25
0
        short_description=_('UMC icon'),
        long_description='UMC icon (syntax: Base64 encoded jpeg, png or svgz)',
        syntax=univention.admin.syntax.Base64UMCIcon,
        multivalue=True,
    ),
}

layout = [
    Tab(_('General'),
        _('Basic values'),
        layout=[
            Group(_('General UDM module settings'),
                  layout=[
                      ["name"],
                      ["filename"],
                      ["data"],
                      ["messagecatalog"],
                      ["umcregistration"],
                      ["icon"],
                  ]),
            Group(_('Metadata'),
                  layout=[
                      ["package"],
                      ["packageversion"],
                      ["appidentifier"],
                  ]),
            Group(_('UCS Version Dependencies'),
                  layout=[
                      ["ucsversionstart"],
                      ["ucsversionend"],
                  ]),
    'allowedEmailGroups':
    univention.admin.property(
        short_description=_(
            'Groups that are allowed to send e-mails to the list'),
        long_description='',
        syntax=univention.admin.syntax.GroupDN,
        multivalue=True,
        dontsearch=True,
    )
}

layout = [
    Tab(_('General'),
        _('Basic settings'),
        layout=[
            Group(_('General mailing list settings'),
                  layout=[["name", "description"], "mailAddress", "members"]),
        ]),
    Tab(_('Authorized users'),
        _('Users that are allowed to send e-mails to the list'),
        advanced=True,
        layout=["allowedEmailUsers"]),
    Tab(_('Authorized groups'),
        _('Groups that are allowed to send e-mails to the list'),
        advanced=True,
        layout=["allowedEmailGroups"])
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('description', 'description', None,
                 univention.admin.mapping.ListToString)
예제 #27
0
        short_description=_('Printer URI'),
        long_description=_('Printer URI'),
        syntax=univention.admin.syntax.string,
        multivalue=True,
        include_in_default_search=True,
        dontsearch=True,
    ),
}

layout = [
    Tab(_('General'),
        _('Printer URI'),
        layout=[
            Group(_('General printer URI list settings'),
                  layout=[
                      'name',
                      'printeruri',
                  ]),
        ]),
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('printeruri', 'printerURI')


class object(univention.admin.handlers.simpleLdap):
    module = module


lookup = object.lookup
    'name':
    univention.admin.property(
        short_description=_('Shared network name'),
        long_description=_('A unique name for this shared network.'),
        syntax=univention.admin.syntax.uid,
        include_in_default_search=True,
        required=True,
        may_change=False,
        identifies=True)
}

layout = [
    Tab(_('General'),
        _('Basic settings'),
        layout=[
            Group(_('DHCP shared network description'), layout=['name']),
        ]),
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)

add_dhcp_options(__name__)


class object(DHCPBase):
    module = module


lookup_filter = object.lookup_filter
lookup = object.lookup
		may_change=True,
		identifies=False
	),
}
property_descriptions.update(dict([
	requiredObjectClassesProperty(),
	prohibitedObjectClassesProperty(),
	fixedAttributesProperty(syntax=adminFixedAttributes),
	emptyAttributesProperty(syntax=adminFixedAttributes),
	ldapFilterProperty(),
]))

layout = [
	Tab(_('General'), _('Univention Directory Manager settings'), layout=[
		Group(_('General Univention Directory Manager container settings'), layout=[
			'name',
			'listModules',
		]),
	]),
	policy_object_tab(),
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)
mapping.register('listModules', 'univentionAdminListModules')
register_policy_mapping(mapping)


class object(univention.admin.handlers.simplePolicy):
	module = module

	@classmethod
예제 #30
0
		short_description=_('Service Name'),
		long_description='',
		syntax=univention.admin.syntax.string,
		multivalue=False,
		include_in_default_search=True,
		options=[],
		required=True,
		may_change=True,
		identifies=True
	),
}

layout = [
	Tab(_('General'), _('Basic values'), layout=[
		Group(_('General service settings'), layout=[
			"name",
		]),
	]),
]

mapping = univention.admin.mapping.mapping()
mapping.register('name', 'cn', None, univention.admin.mapping.ListToString)


class object(univention.admin.handlers.simpleLdap):
	module = module

	@classmethod
	def unmapped_lookup_filter(cls):
		return univention.admin.filter.conjunction('&', [
			univention.admin.filter.expression('objectClass', 'univentionServiceObject'),